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

youtube-dl not using the correct year metadata (release date) from music.youtube.com #21919

Open
jimbob88 opened this issue Jul 28, 2019 · 0 comments

Comments

@jimbob88
Copy link

@jimbob88 jimbob88 commented Jul 28, 2019

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2019.07.27
  • 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 bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--add-metadata', '-i', '-x', '--audio-format', 'mp3', '--embed-thumbnail', 'https://music.youtube.com/watch?v=J52O3pbT6kk']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.07.27
[debug] Python version 3.6.8 (CPython) - Linux-4.15.0-55-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 4.1.3-0ppa1, ffprobe 4.1.3-0ppa1
[debug] Proxy map: {}
[youtube] J52O3pbT6kk: Downloading webpage
[youtube] J52O3pbT6kk: Downloading video info webpage
[youtube] {18} signature length 103, html5 player vfl7A19HM
[youtube] {137} signature length 107, html5 player vfl7A19HM
[youtube] {248} signature length 107, html5 player vfl7A19HM
[youtube] {136} signature length 103, html5 player vfl7A19HM
[youtube] {247} signature length 103, html5 player vfl7A19HM
[youtube] {135} signature length 107, html5 player vfl7A19HM
[youtube] {244} signature length 107, html5 player vfl7A19HM
[youtube] {134} signature length 107, html5 player vfl7A19HM
[youtube] {243} signature length 107, html5 player vfl7A19HM
[youtube] {133} signature length 103, html5 player vfl7A19HM
[youtube] {242} signature length 107, html5 player vfl7A19HM
[youtube] {160} signature length 103, html5 player vfl7A19HM
[youtube] {278} signature length 107, html5 player vfl7A19HM
[youtube] {140} signature length 107, html5 player vfl7A19HM
[youtube] {249} signature length 107, html5 player vfl7A19HM
[youtube] {250} signature length 103, html5 player vfl7A19HM
[youtube] {251} signature length 103, html5 player vfl7A19HM
[youtube] J52O3pbT6kk: Downloading thumbnail ...
[youtube] J52O3pbT6kk: Writing thumbnail to: i can't breathe-J52O3pbT6kk.jpg
[debug] Invoking downloader on 'https://r5---sn-cu-ajtel.googlevideo.com/videoplayback?expire=1564347501&ei=Dbg9XaGDEJGw1gaM-7Jo&ip=2.31.254.181&id=o-AH-r3mqXiHO7G1DP1VLbh--IZ2E8h-yquKCyN9RLuNpT&itag=251&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-cu-ajtel%2Csn-5hnekn7d&ms=au%2Conr&mv=m&mvi=4&pl=25&pcm2=no&gcr=gb&initcwndbps=913750&mime=audio%2Fwebm&gir=yes&clen=3639211&dur=213.081&lmt=1538370741065878&mt=1564325778&fvip=5&keepalive=yes&c=WEB&txp=5411222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cpcm2%2Cgcr%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRAIgXGfVCZiCAk2XQgfddGQjdjTGE9-G6Ac-5dvZE5ZTIZYCIBSODh0G90QliAF5EmzfZuRm7H4BfoIqMNd7fGDorkBt&sig=ALgxI2wwRAIgU_XRpyGOiuN8OpLVhCCYYHIxQaq4VA1WKs7HaYSxMLMCIEJMCsJ4yDUqwrXMljh0J-X58jxKjbee9j3kkGgXkQvF&ratebypass=yes'
[download] Destination: i can't breathe-J52O3pbT6kk.webm
[download] 100% of 3.47MiB in 00:00
[debug] ffmpeg command line: ffprobe -show_streams 'file:i can'"'"'t breathe-J52O3pbT6kk.webm'
[ffmpeg] Destination: i can't breathe-J52O3pbT6kk.mp3
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:i can'"'"'t breathe-J52O3pbT6kk.webm' -vn -acodec libmp3lame -q:a 5 'file:i can'"'"'t breathe-J52O3pbT6kk.mp3'
Deleting original file i can't breathe-J52O3pbT6kk.webm (pass -k to keep)
[ffmpeg] Adding metadata to 'i can't breathe-J52O3pbT6kk.mp3'
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:i can'"'"'t breathe-J52O3pbT6kk.mp3' -c copy -metadata 'title=i can'"'"'t breathe' -metadata date=20180604 -metadata 'description=Provided to YouTube by Universal Music Group

i can'"'"'t breathe · Bea Miller

chapter one: blue

℗ 2017 Hollywood Records, Inc.

Released on: 2017-02-24

Producer, Associated  Performer, Background  Vocalist, Piano, Programming: Gladius James
Studio  Personnel, Asst.  Recording  Engineer: Jorge Gutierrez
Studio  Personnel, Mixer: Erik Madrid
Unknown, Other: Chris Gehringer
Composer  Lyricist: Julia Michaels
Composer  Lyricist: Beatrice Miller
Composer  Lyricist: James Wong

Auto-generated by YouTube.' -metadata 'comment=Provided to YouTube by Universal Music Group

i can'"'"'t breathe · Bea Miller

chapter one: blue

℗ 2017 Hollywood Records, Inc.

Released on: 2017-02-24

Producer, Associated  Performer, Background  Vocalist, Piano, Programming: Gladius James
Studio  Personnel, Asst.  Recording  Engineer: Jorge Gutierrez
Studio  Personnel, Mixer: Erik Madrid
Unknown, Other: Chris Gehringer
Composer  Lyricist: Julia Michaels
Composer  Lyricist: Beatrice Miller
Composer  Lyricist: James Wong

Auto-generated by YouTube.' -metadata 'purl=https://www.youtube.com/watch?v=J52O3pbT6kk' -metadata 'artist=Bea Miller' -metadata 'album=chapter one: blue' 'file:i can'"'"'t breathe-J52O3pbT6kk.temp.mp3'
[ffmpeg] Adding thumbnail to "i can't breathe-J52O3pbT6kk.mp3"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:i can'"'"'t breathe-J52O3pbT6kk.mp3' -i 'file:i can'"'"'t breathe-J52O3pbT6kk.jpg' -c copy -map 0 -map 1 -metadata:s:v 'title="Album cover"' -metadata:s:v 'comment="Cover (Front)"' 'file:i can'"'"'t breathe-J52O3pbT6kk.temp.mp3'

Description

When downloading music from YouTube Music, it writes to the mp3 metadata year tag the published date Published on 4 Jun 2018 - therefore 2018 instead of the release date found YouTube Music:
showcase

I believe this:
showcase 2
Should become this:
showcase 3

OR the option for this metadata to be either publish date or release date.

Thanks in advance,
Jim

@jimbob88 jimbob88 changed the title youtube-dl not grabbing the correct year metadata from music.youtube.com youtube-dl not using the correct year metadata (release date) from music.youtube.com Jul 28, 2019
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.