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.
Multiple formats results in multiple thumbnails, info files #16220
Comments
|
This is expected behavior for now. |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.04.16. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Description of your issue, suggested solution and other information
When specifying multiple formats to download (comma-separated list in the --format option), youtube-dl executes all options multiple times. This results in multiple, duplicate thumbnail and information files.
For example,
youtube-dl hTGJfRPLe08with the following options:Will give you two thumbnails with names matching the format downloaded - in the above example, the files are:
However, they are duplicates of a 1280x720 thumbnail. The same is true for the .description and .info.json files.
I get why it happens - if you only had one thumbnail, which video would you use for values? But it makes no sense to include values that don't apply to the thumbnail... either the values should be consistent and taken from the thumbnail itself (e.g. 1280x720 regardless of the video size), or there needs to be a way to give the thumbnail and info files a different naming convention so they are not duplicated. Simply using the first or best-quality video format would be okay, though not ideal.
The --exec also executes multiple times for multiple video formats... I can see why it's done that way, but I'd argue that multiple --format entries is a directive to run youtube-dl and its options once with multiple results, while the need to manipulate multiple videos should be handled as multiple executions of youtube-dl in a script.