question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When Downloading Channel, Error in Any Vid Stops Entire Channel Download Even If Other Vids Are Okay

See original GitHub issue

For 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:closed
  • Created 10 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
stdevOzkarcommented, Feb 15, 2018

Same issue here, is there any way to bypass that kind of “error”??

3reactions
xDShotcommented, Feb 12, 2018

Is there a way to ignore downloading copyrighted videos and continue downloading rest videos for now?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot video errors, buffering, and freezing - Android
Many factors can cause video playback issues, such as internet or device connection. If a video is freezing, buffering, or you get one...
Read more >
How to Fix YouTube Downloaded Videos Not Playing? [2022]
Sometimes YouTube downloaded videos are not playing on the device. If you get this error, continue reading this article to find the solution....
Read more >
How to resolve a channel playback issue - Roku Support
If you experience poor video quality video or rebuffering on a regular basis across multiple streaming channels: It may be due to a...
Read more >
[Problem Solved!] Can't Download YouTube Videos Anymore
Try These Things If You Can't Download Videos from YouTube · Use a third-party YouTube video downloader · Make sure that you are...
Read more >
If you can't watch or stream movies and TV shows in the Apple ...
If the video quality is bad or it stops playing · If multiple people on your network are using the internet, your connection...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found