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.
Autonumber and --download-archive #9224
Comments
|
I've just encountered this myself. My download of the 00007 file failed while using the archive option. On rerun, it successfully skips the existing videos, but then starts the next one at 00000 again. Ideally it would still increment the numbering when skipping files. |
|
Hey glinkot, the issue obviously still hasn't been resolved, but a couple of suggestions that might be useful to you:
|
|
Thanks for that Jackson, much appreciated. I already have the -i flag in On Fri, Nov 11, 2016 at 11:06 AM, Jackson Edmonds notifications@github.com
|
|
there's an option to start the autonumbering at a value |
|
Fantastic! Thanks nilObject. |
|
I found the following apprach acceptable: TOTAL_TRACKS=$(wc -l < "$OUT_DIR/archive.txt")
NUM_START=$(($TOTAL_TRACKS + 1))
youtube-dl --autonumber-start $NUM_START --download-archive "$OUT_DIR/archive.txt" ...In this way new episodes get a number that is total_episodes_downloaded + 1 |
Autonumber doesn't work as expected with
--download-archive. Not sure whether this should be considered a bug or a feature request, but it is kind of similar to the issue described in #461.On each run of youtube-dl with
--download-archiveand%(autonumber)sset, youtube-dl will skip over all previously downloaded videos (as expected), but when it reaches a video it hasn't downloaded, it will starting numbering from 00001 again. Essentially this means autonumber is more-or-less useless when using download-archive as each time it is run the numbering will again start from 00001.Moreover, if
--download-archiveis used on a channel, youtube-dl will download videos from newest to oldest (as expected, nothing particularly wrong with downloading in this order), but it does mean that the latest video will be labelled 00001, while the oldest video will be labelled 00100 (for example, given a 100 video channel). This means if we run youtube-dl later when another video is added, there is no numbering that makes sense for this new video, labelling it as 00101 would put it after the oldest video, and obviously it can't be labelled higher than 00001, the newest video from the previous run. In order for this to be truly "fixed", autonumbering would also have to be reversed when--download-archiveis used on a channel.