Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start youtube-dl autonumber from a different number than 1?

I was downloading a playlist from youtube using youtube-dl. I used autonumbering feature to number the videos which could be achieved by formatting the name of output file as follows -o "%(autonumber)s-%(title)s.%(ext)s". The download failed in between. Now I wish to start the autonumber from the video next to failed video and not 1. But autonumber resets itself to 1 everytime. How can I set it to a different number greater than 1 ?

like image 399
Mohit Mittal Avatar asked Sep 30 '15 09:09

Mohit Mittal


2 Answers

For playlists you should use playlist_index instead: -o '%(playlist_index)s-%(title)s.%(ext)s'

like image 95
jaimeMF Avatar answered Nov 09 '22 14:11

jaimeMF


Instead of %(playlist_index)s, you should use youtube-dl --autonumber-start 5 $URL -o "%(autonumber)s_stuff" It will start %(autonumber)s at 5 in this case.

like image 1
dilavasso Avatar answered Nov 09 '22 14:11

dilavasso