When Downloading Channel, Error in Any Vid Stops Entire Channel Download Even If Other Vids Are Okay
See original GitHub issueFor example, do
youtube-dl http://www.youtube.com/user/gabtibette/videos
This will start out downloading just fine:
[youtube:user] gabtibette: Downloading video ids from 1 to 51
[youtube:user] gabtibette: Downloading video ids from 51 to 101
[download] Downloading playlist: gabtibette
[youtube:user] playlist 'gabtibette': Collected 70 video ids (downloading 70 of them)
[download] Downloading video #1 of 70
[youtube] Setting language
[youtube] JcHCabHsvi0: Downloading video webpage
[youtube] JcHCabHsvi0: Downloading video info webpage
[youtube] JcHCabHsvi0: Extracting video information
[download] Destination: [path]\[file].mp4
[download] 100% of 48.98MiB in 00:2304MiB/s ETA 00:005
[download] Downloading video #2 of 70
[youtube] 9WbuQG3J6Ao: Downloading video webpage
[youtube] 9WbuQG3J6Ao: Downloading video info webpage
[youtube] 9WbuQG3J6Ao: Extracting video information
[download] Destination: [path]\[file].mp4
[download] 100% of 35.64MiB in 00:1700MiB/s ETA 00:001
[...]
etc. until it hits a problematic video:
[...]
[download] Downloading video #21 of 70
[youtube] 8pn13U6-Fxc: Downloading video webpage
[youtube] 8pn13U6-Fxc: Downloading video info webpage
ERROR: YouTube said: This video contains content from WMG and EMI Music Publishing, one or more of whom have blocked it in your country on copyright grounds.
…at which point, the ENTIRE channel-downloading operation just stops, which defeats the purpose of using one command to download an entire channel. It doesn’t prompt the user for whether to retry or to continue on to the next video; it doesn’t continue on to the next video; it just stops entirely, even though later videos in the channel are downloadable.
You can work around this first error by using --playlist-start
:
youtube-dl --playlist-start 22 http://www.youtube.com/user/gabtibette/videos
But then the operation chokes on the next video after that with a copyright error, basically requiring the entire channel to be downloaded in many segments, with the user having to respond to each copyright error with another modified command.
Suggested fix:
When YouTube-DL encounters an error in just one video, it should instead prompt the user to abort, retry, or ignore: that is, give the user the choice to:
- abort the entire channel-downloading operation OR
- try to download the video with the error again OR
- just ignore the video with the error and continue on to the next video
There should also be a
--noprompt
command-line option, or even a
--noprompt [choice]
command-line option to make it so that instead of prompting for what to do, YouTube-DL simply ignores the video with the error and continues on to the next video (unless [choice] is specified, in which case YouTube-DL always makes that choice by default). However, in this case, whenever the --noprompt option is used, when the entire channel has been downloaded, YouTube-DL should display some sort of error summary (such as “Downloading succeeded for 63 videos and failed for 7 videos”) because otherwise it would be easy to overlook that errors did occur will downloading some videos.
Issue Analytics
- State:
- Created 10 years ago
- Comments:5 (1 by maintainers)
Same issue here, is there any way to bypass that kind of “error”??
Is there a way to ignore downloading copyrighted videos and continue downloading rest videos for now?