Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Pad %(playlist_index)s with zeroes #4157
Comments
|
Currently, the playlist index should be padded automatically to the size of the playlist. Unfortunately, that prevents the user from using custom format codes. Can you describe the context where you want a different padding than provided? |
|
Trying it again now, it seems to do what I was asking for. I thought I had run into a situation where it wasn't padding... if it happens again I'll re-visit this. Thanks. |
|
Here is a context where a padding would be useful: It might be useful to be able to give the format in the --playlist-start in the following way: It might also be useful to provide a switch --playlist-index-format NUMBER_OF_DIGITS |
|
I have a question related to this issue as I've run in to an issue where the original request applies. I use cron scripts to auto-download playlists on my Linux server every night. These playlists can be small to begin with, but grow with time, and new episodes will be downloaded via cron. For example, I just added a three-item playlist to the queue which was downloaded with playlist_index as 1, 2 and 3. However, I know that this playlist will grow, possibly to three digits long, so youtube-dl will switch to 01, 02, 03 and possibly 001, 002, 003 as it passes 10 and 100. It would be useful to specify a playlist_index padding (like in C where you use %05d) that I can force from youtube-dl.conf. For instance, like %(playlist_index)05d. In that way I don't have to worry about this, and Plex will not complain. |
|
Hi, Anyway, this tool is very GREAT !!! thanks |
|
|
It would be a useful feature to be able to pad the numbering in the output filenames like
--autonumber-size, but using the playlist index number instead. Currently there is no way to do this, unless it's undocumented. Perhaps an option--pad-playlist-indexor--playlist-index-size?