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

Feature Request - Add playlist number to metadata #7393

Open
TwisX opened this issue Nov 7, 2015 · 12 comments
Open

Feature Request - Add playlist number to metadata #7393

TwisX opened this issue Nov 7, 2015 · 12 comments

Comments

@TwisX
Copy link

@TwisX TwisX commented Nov 7, 2015

I've been using youtube-dl to download audio playlists. Instead of having to go through and manually add all the track numbers, it would be nice if youtube-dl could automatically add them to the file metadata.

(Not sure if this is the correct place to make a feature request, I'm not sure where else to put it.)

@gaming-hacker
Copy link

@gaming-hacker gaming-hacker commented Nov 7, 2015

make a bash script, grep/find the data you want from the manifest, pipe it to key "--add-metadata"

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 7, 2015

Post an example url and explain what command you are using and what do you want it to do.

@TwisX
Copy link
Author

@TwisX TwisX commented Nov 7, 2015

Here's a URL of a YouTube playlist: https://www.youtube.com/watch?v=cgNXw8Qh67k&list=PLYwGqFKNm0YOgUAf9D-XpRAyDPripaXiB

What I would like is for the first track to have the number 1 set as it's track number with the --add-metadata option, 2 for the second track, 3 for the third, you get the idea.
So when I import them into iTunes or some other media player I won't have to manually add the track number to each one.

@mohsend
Copy link

@mohsend mohsend commented Apr 6, 2016

I came here for a similar feature request. I'm downloading entire video playlists and I would like to have the option to have the number of the video appended to the beginning of the file name. So I can have them sorted by the sequence in the playlist.
For example:
youtube-dl https://www.youtube.com/playlist?list=PL8dPuuaLjXtMczXZUmjb3mZSU1Roxnrey
Gets files like this:
The Big Bang - Crash Course Big History #1-tq6be-CZJ3w.mp4

What I have in mind:
youtube-dl --append-playlist-number https://www.youtube.com/playlist?list=PL8dPuuaLjXtMczXZUmjb3mZSU1Roxnrey
To save files like this:
001 - The Big Bang - Crash Course Big History #1-tq6be-CZJ3w.mp4

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 6, 2016

@mohsend your request is unrelated and already implemented: output template, playlist_index.

@dstftw dstftw mentioned this issue May 1, 2016
4 of 8 tasks complete
@TRox1972
Copy link
Contributor

@TRox1972 TRox1972 commented May 24, 2016

As @dsftw says, you can use playlist_index. Should this be closed?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 24, 2016

@mohsend's question is different from @M-W99's.

@TRox1972
Copy link
Contributor

@TRox1972 TRox1972 commented May 24, 2016

Sorry, didn't notice that. But what @M-W99 is asking for is still possible, if a extractor return a value for track_number it will be added as metadata to the file if using --add-metadata. But I guess that isn't possible with YouTube, even with the -x option.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 24, 2016

Whaat @M-W99 is not talking about is not track_number but the index of individual videos/audios in a playlist.

@mohsend
Copy link

@mohsend mohsend commented May 25, 2016

My question is answered and the feature I wanted is already present. So closing would depend on @M-W99 's opinion.

@playlistindex
Copy link

@playlistindex playlistindex commented Jun 3, 2017

As far as I can determine, the original issue remains unresolved and mohsend's question was a bit of a highjack: he wanted to add numbers to the filename, M-W99 and I wanted to add track numbers to the metadata for each file.

@br3wski3
Copy link

@br3wski3 br3wski3 commented Dec 15, 2017

Opened pull request #14991 which I believe may support the OP request

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