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

Alternative Output format for missing Metadata "NA" #17623

Closed
wolfred24 opened this issue Sep 20, 2018 · 1 comment
Closed

Alternative Output format for missing Metadata "NA" #17623

wolfred24 opened this issue Sep 20, 2018 · 1 comment
Labels

Comments

@wolfred24
Copy link

@wolfred24 wolfred24 commented Sep 20, 2018

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

Description of your issue, suggested solution and other information

Hi, I'm using Youtube-DL for a while and it's amazing, thanks to all of you for your hard work. I explain what is my request:

MY COMMAND
youtube-dl -i --extract-audio --audio-format mp3 --yes-playlist --embed-thumbnail --add-metadata --download-archive "/home/cesar/youtube-dl/downloads.txt" --output "/ home / cesar / youtube-dl /% (artist) s -% (tracking) s.% (ext) s" https://www.youtube.com/playlist?list=PLIB5Es9YVSMyH-euQKtfanO9qTP57Bg9H

CONFLICTIVE AREA:
--output "/ home / cesar / youtube-dl /% (artist) s -% (track) s.% (ext) s"

PROBLEM:
Each time you download a video that does not have metadata of% (track) or% (artist) s, the file is called NA - NA.mp3, so when you download another video without musical metadata, replace the previous file NA - NA .mp3
This problem is caused by the fact that although there are many music videos on YouTube, some do not have musical metadata.

REQUEST:
My request is that you can add a function similar to "if" to validate the -output in case a metadata does not exist in that way that can be replaced by another name, for example, if the name% (track) does not exist then it will be replaced by% (title).

EXAMPLE
--output "if (% track == 'NA') {"% (artist) s -% (track) s.% (ext) s "} else {"% (title) s.% (ext) s " }

@dstftw dstftw closed this Sep 20, 2018
@dstftw dstftw added the duplicate label Sep 20, 2018
@wolfred24
Copy link
Author

@wolfred24 wolfred24 commented Oct 29, 2018

Someone can tell me where the link of the duplicated post? @dstftw

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.