From a6ba304a71a345c739863acf56f6a104f783fe7d Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Wed, 29 Oct 2025 10:32:18 -0700 Subject: underscore in youtube video id --- glide/glide.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3