Jeeaaasus / youtube-dl

Automated yt-dlp Docker image
https://hub.docker.com/r/jeeaaasustest/youtube-dl/
MIT License
258 stars 33 forks source link

WebUI: (option for) automatic file renaming to prevent overwriting existing file #61

Closed JulesCornelissen closed 2 years ago

JulesCornelissen commented 2 years ago

First of all thank you for this project :)

Sometimes videos have identical names, especially on non-YouTube sites (such as past broadcasts on Twitch). Current behaviour is that whatever file was added last is the one that remains (i.e. the previous files get overwritten). An option to have it automatically rename would resolve this issue. Alternatively, an option to include the video ID in the filename would also solve this issue and would be my preferred solution.

Jeeaaasus commented 2 years ago

Hello @JulesCornelissen! :)

I understand your issue and different options/toggles within the webui downloader are definitely needed yes but this particular problem I realistically don't see how it could be fixed.

Instead I'm going to recommend to you, that you change your --output argument to include video ID, inside of your args.conf file. When changed to something like: --output '/downloads/%(uploader)s/%(title)s - %(id)s.%(ext)s' (documentation here) Now every file name will include the ID, yes might not be a perfect solution, but I think it's the best one.

Let me know if you run into problems. :)