ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.65k stars 9.97k forks source link

How can I numerate Udemy chapter episodes? #13273

Closed nikola1970 closed 7 years ago

nikola1970 commented 7 years ago

This is a tamplate:

youtube-dl -u user -p password -o '~/MyVideos/%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s' https://www.udemy.com/java-tutorial/

So i need some kind of ID like we have %(chapter_number)s, but for every video in the chapter. Something like:

%(chapter)s/%(VIDEO_ID_HERE)s%(title)s.%(ext)s'

Is there an option for this? Thanks :)

dstftw commented 7 years ago

Choose any from https://github.com/rg3/youtube-dl#output-template.