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

Playlist numbering control? #21422

Closed
mihalski opened this issue Jun 16, 2019 · 3 comments
Closed

Playlist numbering control? #21422

mihalski opened this issue Jun 16, 2019 · 3 comments
Labels

Comments

@mihalski
Copy link

@mihalski mihalski commented Jun 16, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

Is it possible to set the number of digits for playlist downloads?
For example a 112 video playlist on Udemy. You start the download and the videos are named 001, 002 and so on because youtube-dl detects that 112 is 3 digits. Resume after you've downloaded the first 12 videos and now the remained will be (for example) 13 to 112 which is 99 videos (2 digits) and they will now be numbered without the leading 0's.

Example of original download:
072. Powers of negative bases

Example of resumed download:
72. Powers of negative bases

Hopefully I've just overlooked some option.

Thank you for this wonderful program!

@mihalski mihalski added the question label Jun 16, 2019
@dstftw dstftw closed this Jun 17, 2019
@mihalski
Copy link
Author

@mihalski mihalski commented Jun 17, 2019

Sorry, I totally forgot to mention that I was using an output template.

youtube-dl -o '%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s' https://www.udemy.com/course_name/

playlist_index (numeric): Index of the video in the playlist padded with leading zeros according to the total length of the playlist

This does not appear to function as described. ie "padded with leading zeros according to the TOTAL length of the playlist". Instead it is padded with leading zeros according to the REMAINING length of the playlist when --playlist-start is used.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 17, 2019

Again: read the documentation on output template.

The special sequences may be formatted according to python string formatting operations.

@ytdl-org ytdl-org locked and limited conversation to collaborators Jun 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.