From f138813ce74d28380fe6aa2d7dbd11041f7b03eb Mon Sep 17 00:00:00 2001 From: Soap Date: Sat, 11 Oct 2025 02:15:26 +0530 Subject: [PATCH] Update ytdlp-i.py for non-Youtube URLs Signed-off-by: Soap --- bin/hooks/ytdlp-i.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hooks/ytdlp-i.py b/bin/hooks/ytdlp-i.py index 78b6c01c..14c96c4e 100644 --- a/bin/hooks/ytdlp-i.py +++ b/bin/hooks/ytdlp-i.py @@ -84,7 +84,7 @@ def helper(ka: dict[str, Any]) -> dict[str, str]: path = ka["ap"] - name = url.split("?")[0].split("/")[-1] + name = url.split("?")[0].split("/")[-1] if '?' in url else "file" tfn = "ytdlp_hook: DOWNLOADING " + name logger(f"{tfn}\n", 2) open(tfn, "wb").close()