Youtube DL code template

Youtube DL code template

Postby kawstov » Wed Aug 16, 2017 2:29 pm

Code: Select all
youtube-dl -f 22 -a "cinema4d.txt"


youtube-dl -f 22 -a "cinema4d.txt"

Output template examples

Note that on Windows you may need to use double quotes instead of single.
# All kinds of weird characters
Code: Select all
youtube-dl --get-filename -o '%(title)s.%(ext)s' BaW_jenozKc
youtube-dl test video ''_<weird symbols>.mp4 


# A simple file name
Code: Select all
$ youtube-dl --get-filename -o '%(title)s.%(ext)s' BaW_jenozKc --restrict-filenames
youtube-dl_test_video_.mp4


# Download YouTube playlist videos in separate directory indexed by video order in a playlist
Code: Select all
$ youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re


# Download all playlists of YouTube channel/user keeping each playlist in separate directory:
Code: Select all
$ youtube-dl -f 140 -o "%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" https://www.youtube.com/channel/UCht8qITGkBvXKsR1Byln-wA



# Download Udemy course keeping each chapter in separate directory under MyVideos directory in your home
Code: Select all
$ 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/


# Download entire series season keeping each series and each season in separate directory under C:/MyVideos
Code: Select all
$ youtube-dl -o "C:/MyVideos/%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s" http://videomore.ru/kino_v_detalayah/5_sezon/367617


# Stream the video being downloaded to stdout
Code: Select all
$ youtube-dl -o - BaW_jenozKc
Cheers!
Kawstov
kawstov
Site Admin
 
Posts: 119
Joined: Tue May 28, 2013 10:51 pm

Return to Daily Scratch

Who is online

Users browsing this forum: No registered users and 1 guest

cron