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()