summaryrefslogtreecommitdiff
path: root/glide
diff options
context:
space:
mode:
Diffstat (limited to 'glide')
-rw-r--r--glide/glide.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/glide/glide.ts b/glide/glide.ts
index 0562564..54048c6 100644
--- a/glide/glide.ts
+++ b/glide/glide.ts
@@ -24,7 +24,7 @@ glide.keymaps.set("normal", "L", "forward");
glide.keymaps.set("normal", "gp", async () => {
const cur_url = new URL(glide.ctx.url).toString();
const url = cur_url.replace("inv.nadeko.net", "youtube.com").replace(
- /watch\?.*v=([a-zA-Z0-9\-]*).*/, 'watch?v=$1'
+ /watch\?.*v=([a-zA-Z0-9\-_]*).*/, 'watch?v=$1'
);
if (!url.includes("youtube")) {
console.log("refused to open url with mpv: ", url);