From 149c16abbb7dbbdceaf3e1ed138608a5f55c435f Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Tue, 12 Dec 2023 23:19:01 +0000 Subject: [PATCH] url: make youtu.be alias rule more lax --- src/modules/processing/url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/processing/url.js b/src/modules/processing/url.js index 86d45add..a58254a9 100644 --- a/src/modules/processing/url.js +++ b/src/modules/processing/url.js @@ -17,7 +17,7 @@ export function aliasURL(url) { } break; case "youtu": - if (url.hostname === 'youtu.be' && parts.length === 2) { + if (url.hostname === 'youtu.be' && parts.length >= 2) { /* youtu.be urls can be weird, e.g. https://youtu.be///asdasd// still works ** but we only care about the 1st segment of the path */ url = new URL(`https://youtube.com/watch?v=${