Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Option to NOT check file existence? #26594
Comments
|
Doesn't |
|
It's one step closer. However, youtube-dl always adds
|
|
A bug with internal handler for aria2c then? It's better to rename this issue. |
|
I created PR #26607 . I'll close this. |
Checklist
Question
Is there a way to tell youtube-dl NOT to check file existence and always tries to download? My scenario is this. I setup youtube-dl so that
C:/%(title)s.%(ext)s, which is convenient but prone to duplicate.To test, I create an empty file
test.mp4(imagine it as a completely unrelated video). Then invoke youtube-dl to download a video titled "test" (not Youtube). Here's output:It seems youtube-dl checked the file existence by itself and never sent a request to aria2c. I see the "--no-overwrites" option, but I think what I need is the opposite of it. "--continue" also doesn't help. I know adding something like
%(epoch)sto the template will break the duplicate, but I don't want random number in the filename.Reading the code at https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/downloader/common.py#L348, I don't see any way to change the behavior. Or am I missing anything? Thanks.