Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[youtube] Retry requests for page listings after temporary errors #27564

Closed
5 tasks done
Zirro opened this issue Dec 28, 2020 · 0 comments
Closed
5 tasks done

[youtube] Retry requests for page listings after temporary errors #27564

Zirro opened this issue Dec 28, 2020 · 0 comments

Comments

@Zirro
Copy link

Zirro commented Dec 28, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.12.26
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

[youtube:tab] CNN: Downloading webpage
[download] Downloading playlist: CNN - Videos
[youtube:tab] Downloading page 1
[youtube:tab] Downloading page 2
[youtube:tab] Downloading page 3
[youtube:tab] Downloading page 4
[youtube:tab] Downloading page 5
...more pages here...
[youtube:tab] Downloading page 1215
[youtube:tab] Downloading page 1216
[youtube:tab] Downloading page 1217
[youtube:tab] Downloading page 1218
[youtube:tab] Downloading page 1219
WARNING: Unable to download JSON metadata: HTTP Error 500: Internal Server Error
[youtube:tab] playlist CNN - Videos: Downloading 36570 videos
[download] Downloading video 1 of 36570

Description

URL: https://www.youtube.com/user/CNN/videos

YouTube will occasionally return an Error 500: Internal Server Error while downloading the pages of a playlist. This currently causes youtube-dl to proceed to the next step of downloading videos without having received the complete list.

These particular errors seem to be temporary one-offs that quickly resolve themselves with a retry, so it would probably be preferable for youtube-dl to reattempt the same request again to be able to continue retrieving the remaining pages from the list. This would be particularly helpful when downloading large playlists like the one above, as the alternative of restarting it from the beginning risks running into issues with rate limiting instead.

@dstftw dstftw closed this as completed in f1bc56c Dec 28, 2020
ThirumalaiK pushed a commit to ThirumalaiK/youtube-dl that referenced this issue Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant