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.
Request: "artist"/"album" option in output template for Bandcamp #13197
Comments
|
Thank you! |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.05.23. 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
I'm building a wrapper for downloading a Bandcamp collection by loading the URLs from the page and iterating over them. I'd like to create subdirectories in the format "{artist} - {album}" but this information is not scraped. Example:
$ youtube-dl https://eeveebeats.bandcamp.com/track/lily -j | jq { "webpage_url": "https://eeveebeats.bandcamp.com/track/lily", "format_id": "mp3-128", "url": "<snip>", "extractor_key": "Bandcamp", "vcodec": "none", "http_headers": { "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)", "Accept-Language": "en-us,en;q=0.5", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Cookie": "<snip>", "Accept-Encoding": "gzip, deflate" }, "requested_subtitles": null, "abr": 128, "display_id": "344329267", "extractor": "Bandcamp", "formats": [ { "url": "<snip>", "protocol": "http", "format": "mp3-128 - audio only", "format_id": "mp3-128", "acodec": "mp3", "ext": "mp3", "http_headers": {"<snip>": ""} ], "_filename": "lily-344329267.mp3", "playlist": null, "acodec": "mp3", "fulltitle": "lily", "title": "lily", "webpage_url_basename": "lily", "thumbnail": "https://f4.bcbits.com/img/a0275924560_5.jpg", "playlist_index": null, "thumbnails": [ { "id": "0", "url": "https://f4.bcbits.com/img/a0275924560_5.jpg" } ], "id": "344329267", "protocol": "http", "duration": 198.857, "ext": "mp3", "format": "mp3-128 - audio only" }Retrieving the artist and album info is fairly easy, artist:
and album, where available:
Ideally, when fetching a whole album, the track numbers could be included as well, but that's not important :)