summaryrefslogtreecommitdiff
path: root/glide
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2025-10-29 10:32:18 -0700
committerThomas Ulmer <thomasmulmer02@gmail.com>2025-10-29 10:32:18 -0700
commita6ba304a71a345c739863acf56f6a104f783fe7d (patch)
tree66715316e6dac97fd0a448c71584f10cf1d95a5e /glide
parent83dc3497489a5fb81353b544b6c979d05c743088 (diff)
underscore in youtube video id
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);