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.
playlist_index ignores playlist-items #10591
Comments
|
I think I have found the bug. It is in a loop over all
this works well when as far as I understand an ideal solution would be something like this:
the idea is that the best place to add the information about the position of an entry in the playlist is implicit by the index of the entry in the iterable object which represents the playlist. once the entries are extracted from the playlist that implicit information is lost. so the second best place to add |
When using
--playlist-itemsand-o '...%(playlist_index)s...'thenplaylist_indexwill not take the numbers from--playlist-items. It will always start from 1 instead. I expectplaylist_indexto take over the numbers from--playlist_items.In contrast: when using
--playlist-startand--playlist-endthenplaylist_indexwill correctly take over the numbers.Example for
--playlist-items:This will download item 5 and 7 from playlist but will name the files
1-$id.extand2-$id.ext. I expect the files to be named5-$id.extand7-$id.ext.Example for
--playlist-startand--playlist-end:This will download item 5,6 and 7 from playlist and will name the files
5-$id.extand6-$id.extand7-$id.extI have only tested this on youtube.
The verbose output for an actual download using
--playlist-items:The verbose output for an actual download using
--playlist-startand--playlist-end: