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.
A small correction to the docs #26194
Comments
|
|
@remitamine Sorry I didn't paste the verbose log. This is how it looks for me:
|
|
@lkintact use |
|
@s104346 Thank you, with I think it's "playlist_index (numeric)" in the documentation that confused me. Maybe since "playlist_index" only works as described if formatted as a string, it should listed as "playlist_index (string)"? |
|
@remitamine What do you think about the suggestion in my post above? |
|
no, the data type of the value is an integer/numeric not a string. all the examples already use the syntax that I showed you here. |
At https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template the template name
playlist_indexis said to be "padded with leading zeros according to the total length of the playlist". This doesn't happen however (perhaps was the case in the past, then changed and not reflected in the documentation?)To check execute
youtube-dl --get-filename -o "[index %(playlist_index)d] %(title)s.%(ext)s" "https://www.youtube.com/watch?v=a0ul-BghOAs&list=OLAK5uy_kC4d8eCdL3QzEXEAoF97MMxJLP3f6M0n0", notice the indexes 1-9 aren't padded with zeroes.