Download specific videos from playlist
This is yet another useful feature of Youtube-dl. It allows us to download a specific song(s) from a playlist that contains 100s of songs.
For example, to download the 10th file from a playlist, run:
$ youtube-dl --playlist-items 10 <playlist_url>
Similarly, to download multiple random files, just specify indices of the videos in the playlist separated by commas like below::
$ youtube-dl --playlist-items 2,3,7,10 <playlist_url>
You can also specify the range of songs. To download a video playlist starting from a certain video, say 10, to end:
$ youtube-dl --playlist-start 10 <playlist_url>
To download only the files starting from 2nd to 5th in a playlist, use:
$ youtube-dl --playlist-start 2 --playlist-end 5 <playlist_url>
You should do like this if it is a playlist with 200 videos and it stuck at the 127 also use the -ciw in the same order below to avoid it from stop during errors.
youtube-dl -ciw --playlist-start 127 <then past the playlist link after the 127>
To download only the audio from the video do this
youtube-dl -ciw -x --audio-format mp3 --playlist-start 127 <then past the playlist link after the 127>
for example:
youtube-dl -ciw -x --audio-format mp3 --playlist-start 127 https://www.youtube.com/playlist?list=PLjzdNLPsCsPeeO49mvhHP5uyKdYkAbON8