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.
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.11.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?
What i want to achieve:
For example, if i want to download all Songs from this youtube channel: EMH Music
There are songs that have the following titles:
As you can see there ist different metadata in the title, like the artist, track, genre, alt_title.
I would like to read all of this metadata in a single run.
How it works (doesn't work) at the moment:
If i define a parse string like
--metadata-from-title "[%(genre)s] %(artist)s - %(title)s (%(alt_title)s)"the parsing only works on the Song 4 and fails on 1, 2 and 3.
Possible solutions:
Add a optional flag
There could be a character in the parse string that flags some part as optional.
For example:
"?[%(genre)s] ?%(artist)s - %(title)s? (%(alt_title)s)?"This string would still get the artist and title if the genre or alt_title is missing.
Allow multiple parse strings:
There could me multiple parse strings. If the first fails, the second one is parsed and so on. If it doesn't fail it doesn't parse the other strings.
For example:
--metadata-from-title "[%(genre)s] %(artist)s - %(title)s (%(alt_title)s)"--metadata-from-title "%(artist)s - %(title)s (%(alt_title)s)"--metadata-from-title "[%(genre)s] %(artist)s - %(title)s"--metadata-from-title "%(artist)s - %(title)s"