

If the multiple files are all on the same playlist, channel or user webpage in YouTube, you can generate a text file with a list that has all the links on that page by running the following command: sudo apt install jq Save the batch file with a name that is easy to remember like batch-file.txt. The URLs should be arranged in a list having only one URL and nothing else on each line, with a new line for each URL in the list. Videos not in the same playlist or channelįirst create a batch file which is a text file containing a list of URLs of videos from YouTube that you want to download.

where is replaced by the URL of the channel and replace FORMAT with any available video format, for example 18. Channel youtube-dl -f FORMAT -ciw -o "%(title)s.%(ext)s" -v where is replaced by the URL of the playlist, replace FORMAT with any available video format, for example 18, and NUMBER is the number of the video in the playlist to start/end downloading at.

You can use the -F option to see all valid formats like this: youtube-dl -F ''ĭownload part of a playlist from start of batch to end of batch youtube-dl -f FORMAT -ci -playlist-start NUMBER -playlist-end NUMBER where is replaced by the URL of the playlist and replace FORMAT with any available video format, for example 18. Playlist youtube-dl -f FORMAT -ciw -o "%(title)s.%(ext)s" -v If all of the videos are in the same playlist or the same channel, you can save time by using the following shortcuts.
