Update ytdlp-i.py for non-Youtube URLs

Signed-off-by: Soap <soaibkhan38@gmail.com>
This commit is contained in:
Soap 2025-10-11 02:15:26 +05:30 committed by GitHub
parent e85e09360d
commit f138813ce7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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