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.
ability to use number of video in playlist in file format string #570
Comments
|
In the future, please submit issues with code as a pull request. That makes it far easier to comment and eventually merge the code. Thanks! Your code makes a lot of changes to unrelated methods. It also breaks on Python 3 because However, while I'm positive towards the feature, it should be the responsibility of the playlist IE to provide playlist indexes, shouldn't it? Precisely because they can do weird stuff with |
|
I haven't submitted my issue as pull request because I was sure that my commit wasn't good enough to include it in your master branch. It is just a random hack that works for me. Maybe later I will create pretty patch to implement this feature, but now consider this issue just as feature request. |
|
I just submitted a pull request which adds a sequence index, and allows -o %(seq_index)s in the output format. |
|
Fixed in dce9027, use |
Currently it is not possible to use number of video in playlist in format string. autonumber doesn't work because it starts from 1 even when --playlist-start is not 1.
Here is branch https://github.com/sorokin/youtube-dl/tree/playlist-number that implements this feature.