[BUG] Downloaded file name from direct link
Opened this issue · 0 comments
Itz-fork commented
Describe the bug
ddl cannot download file with it's original name, instead bot uses os.path.basename
function and pass url
to it to get the file name. Since not all direct links have file name at the end of the url, sometimes it downloads the file with some gibberish name like: "download.aspx?file=1344566666....
Expected behavior
Download the file from direct link with original file name.
Server details
- OS:
any
- Python version:
3.10+