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.
duplicate metadata files created when using output params based on video format #15517
Comments
|
This is expected behavior. If you don't want metadata to be written for each format don't request it in the same run. |
|
It was pretty stupid of me that I didn't think of that. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.02.04. 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?
When I use
youtube-dl --write-info-json --write-description --write-thumbnail --write-annotations --all-subs --all-formats -o %(title)s-%(id)s/%(title)s-%(id)s-%(format_id)s.%(ext)s https://www.youtube.com/watch?v=PRjzqc2l6Ywit creates the metadata files (description, thumbnail etc) for each format, even though those things don't differ between video formats.Here is a (possibly not very good) solution: Have a (option for) a separate, metadata-only, output parameter.
Example usage (
-ov= output for video,-om= output for metadata):youtube-dl --write-info-json --write-description --write-thumbnail --write-annotations --all-subs -- --all-formats -ov %(title)s-%(id)s/%(title)s-%(id)s-%(format_id)s.%(ext)s -om %(title)s-%(id)s/%(title)s-%(id)s.%(ext)s https://www.youtube.com/watch?v=PRjzqc2l6Yw