mirror of
https://github.com/9001/copyparty.git
synced 2025-11-24 07:23:22 -07:00
Update ytdlp-i.py for non-Youtube URLs
Signed-off-by: Soap <soaibkhan38@gmail.com>
This commit is contained in:
parent
e85e09360d
commit
f138813ce7
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue