Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate metadata files created when using output params based on video format #15517

Closed
mariomadproductions opened this issue Feb 7, 2018 · 2 comments

Comments

@mariomadproductions
Copy link

@mariomadproductions mariomadproductions commented Feb 7, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.02.04. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.02.04

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

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=PRjzqc2l6Yw it 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

@mariomadproductions mariomadproductions changed the title youtube-dl creates unnecessary metadata files when using params based on format unnecessary metadata files created when using output params based on format Feb 7, 2018
@mariomadproductions mariomadproductions changed the title unnecessary metadata files created when using output params based on format duplicate metadata files created when using output params based on video format Feb 7, 2018
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 7, 2018

This is expected behavior. If you don't want metadata to be written for each format don't request it in the same run.

@dstftw dstftw closed this Feb 7, 2018
@mariomadproductions
Copy link
Author

@mariomadproductions mariomadproductions commented Feb 7, 2018

It was pretty stupid of me that I didn't think of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.