Skip to content

Instantly share code, notes, and snippets.

@kazemihabib
Created February 25, 2017 12:49
Show Gist options
  • Save kazemihabib/39c79ac731ddde86b3210cae55bb0e47 to your computer and use it in GitHub Desktop.
Save kazemihabib/39c79ac731ddde86b3210cae55bb0e47 to your computer and use it in GitHub Desktop.
download with youtube-dl and aria2 with autoincrement number
youtube-dl -o "%(playlist_index)s-%(title)s.%(ext)s" --external-downloader "aria2c" --external-downloader-args "-x 16" <youtube_play_list_link>
@kazemihabib
Copy link
Author

adding -m 0 for aria2 causes unlimited try if fail (-m "number of times" and 0 means unlimited).

@kazemihabib
Copy link
Author

youtube-dl --external-downloader "aria2c" --external-downloader-args "-x 16" --write-sub --no-playlist -a ./links

Download videos from the links file the --no-playlist prevent from downloading the whole list when the link of video is taken from a list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment