ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.72k stars 10.07k forks source link

question about metadata #14775

Closed Drytak closed 7 years ago

Drytak commented 7 years ago

Please follow the guide below


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


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Davides-MBP:~ davide$ youtube-dl https://www.youtube.com/watch?v=dLvPBfo6ll4 -v
[debug] System config: [u'-x', u'--hls-prefer-ffmpeg', u'--prefer-ffmpeg', u'--audio-quality', u'0', u'--audio-format', u'mp3', u'--add-metadata', u'--metadata-from-title', u'%(artist)s - %(title)s', u'--add-metadata', u'--metadata-from-title', u'%(album)s', u'--embed-thumbnail', u'-o', u'~/Desktop/%(playlist_title)s/%(title)s/%(title)s.%(ext)s']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.youtube.com/watch?v=dLvPBfo6ll4', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.11.15
[debug] Python version 2.7.10 - Darwin-17.2.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.4, ffprobe 3.4
[debug] Proxy map: {}
[youtube] dLvPBfo6ll4: Downloading webpage
[youtube] dLvPBfo6ll4: Downloading video info webpage
[youtube] dLvPBfo6ll4: Extracting video information
[youtube] {22} signature length 43.45, html5 player vflg_prv_
[youtube] {43} signature length 43.45, html5 player vflg_prv_
[youtube] {18} signature length 43.45, html5 player vflg_prv_
[youtube] {36} signature length 43.45, html5 player vflg_prv_
[youtube] {17} signature length 43.45, html5 player vflg_prv_
[youtube] {137} signature length 43.45, html5 player vflg_prv_
[youtube] {248} signature length 43.45, html5 player vflg_prv_
[youtube] {136} signature length 43.45, html5 player vflg_prv_
[youtube] {247} signature length 43.45, html5 player vflg_prv_
[youtube] {135} signature length 43.45, html5 player vflg_prv_
[youtube] {244} signature length 43.45, html5 player vflg_prv_
[youtube] {134} signature length 43.45, html5 player vflg_prv_
[youtube] {243} signature length 43.45, html5 player vflg_prv_
[youtube] {133} signature length 43.45, html5 player vflg_prv_
[youtube] {242} signature length 43.45, html5 player vflg_prv_
[youtube] {160} signature length 43.45, html5 player vflg_prv_
[youtube] {278} signature length 43.45, html5 player vflg_prv_
[youtube] {140} signature length 43.45, html5 player vflg_prv_
[youtube] {171} signature length 43.45, html5 player vflg_prv_
[youtube] {249} signature length 43.45, html5 player vflg_prv_
[youtube] {250} signature length 43.45, html5 player vflg_prv_
[youtube] {251} signature length 43.45, html5 player vflg_prv_
[youtube] dLvPBfo6ll4: Downloading MPD manifest
[youtube] dLvPBfo6ll4: Downloading thumbnail ...
[youtube] dLvPBfo6ll4: Writing thumbnail to: /Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.jpg
[debug] Invoking downloader on u'https://r6---sn-8vq54voxpu-ca9e.googlevideo.com/videoplayback?clen=5300083&ipbits=0&initcwndbps=497500&expire=1510889129&mime=audio%2Fwebm&itag=251&pl=20&dur=314.981&source=youtube&keepalive=yes&usequic=no&requiressl=yes&lmt=1510029695705817&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cusequic%2Cexpire&gir=yes&ei=SQIOWszuLYH-VKuUuugP&mn=sn-8vq54voxpu-ca9e&mm=31&id=o-AJUNxGbr-AlrWmd8btkf1idHxwulEj9mu4m9xzxMGXwu&ip=93.65.64.206&key=yt6&mv=m&mt=1510867434&ms=au&signature=34052FC0A153F19EBEA0FCB32CD51C31197D4FBA.05C62ED8BAB3A2E923FED9120DBE073C6884304D&ratebypass=yes'
[download] Destination: /Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.webm
[download] 100% of 5.05MiB in 00:00
[fromtitle] parsed album: Said The Sky & Kwesi - All I Got
[debug] ffmpeg command line: ffprobe -show_streams 'file:/Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.webm'
[ffmpeg] Destination: /Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.mp3
[debug] ffmpeg command line: ffmpeg -y -i 'file:/Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.webm' -vn -acodec libmp3lame '-q:a' 0 'file:/Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.mp3'
Deleting original file /Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.webm (pass -k to keep)
[ffmpeg] Adding metadata to '/Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.mp3'
[debug] ffmpeg command line: ffmpeg -y -i 'file:/Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.mp3' -c copy -metadata 'comment=Feeling Sheepish'"'"'...http://bit.ly/SuicideSheepSpotify

All I Got!
Download... https://fanlink.to/ALLIGOT

Said The Sky
https://soundcloud.com/said-the-sky
https://www.facebook.com/saidthesky
https://twitter.com/SaidTheSky
http://saidthesky.com/

Kwesi
https://soundcloud.com/kwesik
https://www.facebook.com/KwesiKMusic
http://www.instagram.com/_kwesik
http://twitter.com/kwesi_kankam

Artwork by Fedor Barkhatov
https://www.artstation.com/artwork/v3WoE
https://www.instagram.com/fedos.artstory/

Full channel playlist on Spotify!!!!
http://bit.ly/MrSuicideSheepSpotify

Insta Sheepy
http://bit.ly/2wFQNSb

Sheepy Shop
http://bit.ly/2uJA402

Sheepy News
http://bit.ly/2fhUNQB

Submit Tracks + Art
http://bit.ly/2aPHMvw</a' -metadata 'album=Said The Sky & Kwesi - All I Got' -metadata 'description=Feeling Sheepish'"'"'...http://bit.ly/SuicideSheepSpotify

All I Got!
Download... https://fanlink.to/ALLIGOT

Said The Sky
https://soundcloud.com/said-the-sky
https://www.facebook.com/saidthesky
https://twitter.com/SaidTheSky
http://saidthesky.com/

Kwesi
https://soundcloud.com/kwesik
https://www.facebook.com/KwesiKMusic
http://www.instagram.com/_kwesik
http://twitter.com/kwesi_kankam

Artwork by Fedor Barkhatov
https://www.artstation.com/artwork/v3WoE
https://www.instagram.com/fedos.artstory/

Full channel playlist on Spotify!!!!
http://bit.ly/MrSuicideSheepSpotify

Insta Sheepy
http://bit.ly/2wFQNSb

Sheepy Shop
http://bit.ly/2uJA402

Sheepy News
http://bit.ly/2fhUNQB

Submit Tracks + Art
http://bit.ly/2aPHMvw</a' -metadata 'artist=MrSuicideSheep' -metadata 'title=Said The Sky & Kwesi - All I Got' -metadata 'date=20171106' -metadata 'purl=https://www.youtube.com/watch?v=dLvPBfo6ll4' 'file:/Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.temp.mp3'
[ffmpeg] Adding thumbnail to "/Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.mp3"
[debug] ffmpeg command line: ffmpeg -y -i 'file:/Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.mp3' -i 'file:/Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.jpg' -c copy -map 0 -map 1 '-metadata:s:v' 'title="Album cover"' '-metadata:s:v' 'comment="Cover (Front)"' 'file:/Users/davide/Desktop/NA/Said The Sky & Kwesi - All I Got/Said The Sky & Kwesi - All I Got.temp.mp3'
Davides-MBP:~ davide$ 

Description of your issue, suggested solution and other information

Hello, I need some help with adding the metadata. I have no problem from a youtube video with Artist - SongName to add them to the metadata using

--add-metadata
--metadata-from-title "%(artist)s - %(title)s"

What I would like to do is also adding the whole video name as the album, but when I try to do

--add-metadata
--metadata-from-title "%(artist)s - %(title)s"
--add-metadata
--metadata-from-title "%(album)s"

or

--add-metadata
--metadata-from-title "%(artist)s - %(title)s"
--metadata-from-title "%(album)s"

it just add the album, and doesn't change the artist and title. Is it possible to do?

What I would like to have is

Song = All I Got Artist = Said The Sky & Kwes Album = Said The Sky & Kwesi - All I Got

Thanks a lot.

dstftw commented 7 years ago

Carefully read new issue template and provide all requested information.

Drytak commented 7 years ago

Do I miss anything now? sorry for the inconvenience.