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.
youtube-dl repeats thumbnail embedding if file already exists #6948
Comments
It's not that simple, you can quit youtube-dl after the video is downloaded but before the thumbnail is embedded. I guess we should check with ffmpeg if the file already has a thumbnail |
|
I am running youtube-dl through a batch file so I don't think I have a way to quit youtube-dl when the file is already downloaded. |
Using latest version (2015-09-22) as of this post. As you can see from the code, the thumbnail is downloaded before youtube-dl checks the video and sees it has already been downloaded. Then the thumbnail logic embeds the thumbnail file since it is there. This results in a video with duplicate thumbnails.
If the video already exists maybe youtube-dl should assume a thumbnail was already embedded and discard the downloaded one.