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

output template "release_year" and "release_date" misfunctioning for Bandcamp #25114

Open
Ekolide opened this issue May 3, 2020 · 0 comments
Open

Comments

@Ekolide
Copy link

@Ekolide Ekolide commented May 3, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.05.03
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-f', u'mp3', u'--write-thumbnail', u'--embed-thumbnail', u'--add-metadata', u'--no-mtime', u'-o', u'~/BandcampDownloads/%(artist)s/%(album)s (%(release_year)s)/%(track_number)02d %(title)s.%(ext)s', u'-v', u'https://khruangbin.bandcamp.com/album/a-calf-born-in-winter']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.05.03
[debug] Python version 2.7.10 (CPython) - Darwin-17.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg N-97508-g1cc3851b60-tessus, ffprobe N-97508-g1cc3851b60-tessus
[debug] Proxy map: {}
[Bandcamp:album] a-calf-born-in-winter: Downloading webpage
[download] Downloading playlist: A Calf Born In Winter
[Bandcamp:album] playlist A Calf Born In Winter: Collected 2 video ids (downloading 2 of them)
[download] Downloading video 1 of 2
[Bandcamp] a-calf-born-in-winter: Downloading webpage
[Bandcamp] 2652217723: Downloading thumbnail ...
[Bandcamp] 2652217723: Writing thumbnail to: /Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/01 Khruangbin - A Calf Born In Winter.jpg
[debug] Invoking downloader on u'https://t4.bcbits.com/stream/d873fb6ca4141bb4a74b4212cbaadb05/mp3-128/2652217723?p=0&ts=1588596051&t=c272f263e98c613c5b6f2f6f14a0179defac3425&token=1588596051_86371644a002be98f466bb1d7f593e0e66b97ab1'
[download] Destination: /Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/01 Khruangbin - A Calf Born In Winter.mp3
[download] 100% of 3.24MiB in 00:00
[ffmpeg] Adding metadata to '/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/01 Khruangbin - A Calf Born In Winter.mp3'
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/01 Khruangbin - A Calf Born In Winter.mp3' -c copy -metadata 'album=A Calf Born In Winter' -metadata 'artist=Khruangbin' -metadata 'track=1' -metadata 'title=A Calf Born In Winter' -metadata 'date=20141119' -metadata 'purl=https://khruangbin.bandcamp.com/track/a-calf-born-in-winter' 'file:/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/01 Khruangbin - A Calf Born In Winter.temp.mp3'
[ffmpeg] Adding thumbnail to "/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/01 Khruangbin - A Calf Born In Winter.mp3"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/01 Khruangbin - A Calf Born In Winter.mp3' -i 'file:/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/01 Khruangbin - A Calf Born In Winter.jpg' -c copy -map 0 -map 1 '-metadata:s:v' 'title="Album cover"' '-metadata:s:v' 'comment="Cover (Front)"' 'file:/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/01 Khruangbin - A Calf Born In Winter.temp.mp3'
[download] Downloading video 2 of 2
[Bandcamp] the-recital-that-never-happened: Downloading webpage
[Bandcamp] 1961964485: Downloading thumbnail ...
[Bandcamp] 1961964485: Writing thumbnail to: /Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/02 Khruangbin - The Recital That Never Happened.jpg
[debug] Invoking downloader on u'https://t4.bcbits.com/stream/7f3862d599525f1ce9774d1238cc0225/mp3-128/1961964485?p=0&ts=1588596055&t=355dfeb32956eb41de72d50166f7f1e17c6f47e5&token=1588596055_3d8a635736ed3fbd690b6500b6b0bac8c3cb889f'
[download] Destination: /Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/02 Khruangbin - The Recital That Never Happened.mp3
[download] 100% of 3.39MiB in 00:01
[ffmpeg] Adding metadata to '/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/02 Khruangbin - The Recital That Never Happened.mp3'
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/02 Khruangbin - The Recital That Never Happened.mp3' -c copy -metadata 'album=A Calf Born In Winter' -metadata 'artist=Khruangbin' -metadata 'track=2' -metadata 'title=The Recital That Never Happened' -metadata 'date=20141119' -metadata 'purl=https://khruangbin.bandcamp.com/track/the-recital-that-never-happened' 'file:/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/02 Khruangbin - The Recital That Never Happened.temp.mp3'
[ffmpeg] Adding thumbnail to "/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/02 Khruangbin - The Recital That Never Happened.mp3"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/02 Khruangbin - The Recital That Never Happened.mp3' -i 'file:/Users/ekolide/BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/02 Khruangbin - The Recital That Never Happened.jpg' -c copy -map 0 -map 1 '-metadata:s:v' 'title="Album cover"' '-metadata:s:v' 'comment="Cover (Front)"' 'file:/Users/ekolide /BandcampDownloads/Khruangbin/A Calf Born In Winter (NA)/02 Khruangbin - The Recital That Never Happened.temp.mp3'
[download] Finished downloading playlist: A Calf Born In Winter

Description

When using youtube-dl to download a playlist from Bandcamp using an output template with the term "release_year", it does not properly rename folders to the actual release year. I'm guessing this has to do with youtube-dl creating the folder, then downloading the file, then reading the metadata as you can see from the log, and not going back to rename.

Identical output if you change the -o template to be "release_date" instead of "release_year".

Since the Bandcamp extractor already gets a hold of the artist name and album name, could the album release year information be gathered from there? If not, the date metadata is available and is successfully written to the resulting files and could be gathered from there.

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.