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.
--extract-audio and skipping video file download #333
Comments
|
This is entirely untested, but you could try changing the lines starting from line 4220 (a0432a1e80 revision) to
For it to be implemented as an actual feature a decision would need to be made if the default behavior for youtube-dl should be to overwrite existing files or rather skip them and how to optionally tell it to do one thing or the other. |
|
Thanks for your suggestion. I changed the code but it still downloads the video. Steps to reproduce.
First time it downloads the video and uses ffmpeg to create the file Again I run which gives me |
|
Any new comments on this? |
|
rename the downloaded and converted files to have .m4a extension and youtube-dl will skip them. |
Hello,
By default --extract-audio erases the video file. That is, the next time using youtube-dl with --extract-audio again grabs the video file to convert it although it already exists as audio file.
Can you think of a way to implement a check procedure that skips to download the video file if the corresponding audio file already exists without actually keeping the corresponding video file?
Regards
Robert