Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

youtube-dl download stops on playlist with video missing

Tags:

youtube-dl

I am using youtube-dl to download from a playlist for offline viewing. The operators of the playlist have started putting a scheduled video in the playlist that causes the downloads to fail. When trying to download the videos on the playlist, when it tries to download a video that isn't available (the scheduled video), it fails and the downloads abort.

How can I have the playlist download continue when there is a missing video?

My command:

/share/Multimedia/temp/youtube-dl -f 'best[ext=mp4]' -o "/share/Multimedia/YouTube/TheNational/%(upload_date)s.%(title)s.%(ext)s" --restrict-filenames --dateafter today-3day --no-mtime --download-archive "/share/Multimedia/temp/dllist-thenational.txt" --playlist-end 10 https://www.youtube.com/playlist?list=PLvntPLkd9IMcbAHH-x19G85v_RE-ScYjk

The download results from today:

[youtube:playlist] PLvntPLkd9IMcbAHH-x19G85v_RE-ScYjk: Downloading webpage
[download] Downloading playlist: The National | Full Show | Live Streaming Nightly at 9PM ET
[youtube:playlist] playlist The National | Full Show | Live Streaming Nightly at 9PM ET: Downloading 10 videos
[download] Downloading video 1 of 10
[youtube] pZ2AG5roG-A: Downloading webpage
[youtube] pZ2AG5roG-A: Downloading video info webpage
ERROR: This video is unavailable.

I want to playlist download to ignore the missing file and continue to the next available video.

Thanks.

like image 697
user3720435 Avatar asked Jan 16 '19 16:01

user3720435


People also ask

Why do my YouTube downloads keep failing?

Video downloads require a strong internet connection. Make sure that your device is connected to a 3mbps or faster Wi-Fi network, or a mobile network with a data plan that supports 3G, 4G, or LTE speeds. If you're not sure what your current internet speed is, you can test your speed online.

Can YouTube-dl download a playlist?

By default, Youtube-dl will download the best available quality video. However, it is also possible to download a video or playlist at a specific quality or format.

Does YouTube-dl skip already downloaded?

Running with the original youtube-dl skips the already downloaded videos and continues to download only the undownloaded ones.

Can YouTube-dl download part of a video?

Parts of videos can be downloaded by using the output of youtube-dl -g -f format URL as ffmpeg input with the -ss (for input), -t and -c copy options.


1 Answers

I would add these before -f

-i, --ignore-errors Continue on download errors, for example to skip unavailable videos in a playlist

-c, --continue Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible.

like image 52
1957classic Avatar answered Sep 29 '22 08:09

1957classic