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

Request: "artist"/"album" option in output template for Bandcamp #13197

Closed
blha303 opened this issue May 24, 2017 · 1 comment
Closed

Request: "artist"/"album" option in output template for Bandcamp #13197

blha303 opened this issue May 24, 2017 · 1 comment

Comments

@blha303
Copy link

@blha303 blha303 commented May 24, 2017

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 that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.05.23. 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 2017.05.23

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Feature request (request for a new functionality)

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:

<span itemprop="byArtist"><a href="http://eeveebeats.bandcamp.com">Eevee</a></span>

and album, where available:

<span itemprop="inAlbum" itemscope itemtype="http://schema.org/MusicAlbum"><a href="/album/unexpected" itemprop="url"><span itemprop="name">Unexpected</span></a></span>

Ideally, when fetching a whole album, the track numbers could be included as well, but that's not important :)

@rr- rr- mentioned this issue Aug 30, 2017
4 of 8 tasks complete
@dstftw dstftw closed this in 4991e16 Aug 30, 2018
@blha303
Copy link
Author

@blha303 blha303 commented Sep 1, 2018

Thank you!

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
1 participant
You can’t perform that action at this time.