Youtube - downloading a playlist - youtube-dl

后端 未结 7 1904
囚心锁ツ
囚心锁ツ 2021-01-29 17:31

I am trying to download all the videos from the playlist:

I am using youtube-dl for this and the command is:

youtube-dl -citk –format mp4 –yes-playlist          


        
7条回答
  •  借酒劲吻你
    2021-01-29 18:09

    In a shell, & is a special character, advising the shell to start everything up to the & as a process in the background. To avoid this behavior, you can put the URL in quotes. See the youtube-dl FAQ for more information.

    Also beware of -citk. With the exception of -i, these options make little sense. See the youtube-dl FAQ for more information. Even -f mp4 looks very strange.

    So what you want is:

    youtube-dl -i -f mp4 --yes-playlist 'https://www.youtube.com/watch?v=7Vy8970q0Xc&list=PLwJ2VKmefmxpUJEGB1ff6yUZ5Zd7Gegn2'
    

    Alternatively, you can just use the playlist ID:

    youtube-dl -i PLwJ2VKmefmxpUJEGB1ff6yUZ5Zd7Gegn2
    

提交回复
热议问题