kalanakt / All-Url-Uploader

A simple telegram Bot, Upload Media File| video To telegram using the direct download link. (youtube, Mediafire, google drive, mega drive, etc)
https://urluploader.vercel.app
MIT License
365 stars 911 forks source link

Youtube downloads seems to be file-conflicting between extensions #100

Open Sphirye opened 1 year ago

Sphirye commented 1 year ago

I locally mounted this bot to test it before pushing to a VPS, it seems like the bot is not successfully getting files as the wanted extension.

For instance, i've tried dowloading this video [ https://www.youtube.com/watch?v=snTo1SZC4l4 ] as a .mp3 in the hightest quality, this happened:

https://pastebin.com/KFY51ed2

These logs shows how theres isnt a .mp3 in the given directory (line 52):

FileNotFoundError: [Errno 2] No such file or directory: './DOWNLOADS/1188403504RGxuJ/New Serena - Yakuza 4 (Extended)_320k.mp3'

However, when entering into the docker container and looking for it, the given folder actually contains a .webm:

root@82a07730ecbb:/DOWNLOADS/1188403504RGxuJ# ls
'New Serena - Yakuza 4 (Extended)_320k.webm'

(Plus: It successfully downloads as a video when choosing a .webm option, but after trying with other videos it seems to varies like this other one https://www.youtube.com/watch?v=dILwncYeLzs who downloads a .mkv)

kalanakt commented 1 year ago

Hi Sphirye,

Thank you for reporting this issue. It seems like there is an issue with the bot not successfully downloading files with the desired extension.

Based on the logs provided, it looks like the bot is attempting to download a .mp3 file, but it is not able to find it in the specified directory. Instead, it finds a .webm file in the directory. This issue seems to vary for different videos and sometimes downloads a different file type than what was specified.

I'm Looking forward to fixing that issue. If you need further assistance, please let me know.