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 playlist download error #7990

Closed
Miladiir opened this issue Dec 23, 2015 · 1 comment
Closed

Youtube playlist download error #7990

Miladiir opened this issue Dec 23, 2015 · 1 comment

Comments

@Miladiir
Copy link

@Miladiir Miladiir commented Dec 23, 2015

➜  ~  date
Wed Dec 23 23:27:55 CET 2015
➜  ~  youtube-dl --id --no-part --write-info-json --no-cache-dir --ignore-errors --verbose https://www.youtube.com/playlist\?list\=PLCmJTO3UpKnf1B-8dipBEVxiWQ8Hz5-3W
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--id', u'--no-part', u'--write-info-json', u'--no-cache-dir', u'--ignore-errors', u'--verbose', u'https://www.youtube.com/playlist?list=PLCmJTO3UpKnf1B-8dipBEVxiWQ8Hz5-3W']
[debug] Encodings: locale ANSI_X3.4-1968, fs ANSI_X3.4-1968, out ANSI_X3.4-1968, pref ANSI_X3.4-1968
[debug] youtube-dl version 2015.12.23
[debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-Debian-8
[debug] exe versions: none
[debug] Proxy map: {}
[youtube:playlist] PLCmJTO3UpKnf1B-8dipBEVxiWQ8Hz5-3W: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/home/miladiir/bin/youtube-dl/youtube_dl/extractor/common.py", line 330, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/home/miladiir/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1886, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

This setup has worked before for a different playlist. I changed youtube accounts. The new one did not have a "native" Favorites playlist, so I created one myself. It is public and contains one video. This is all that has changed for the particular system. I updated just before creating this error above.

On another system however, it is working as expected:

➜  ~  date
Mi 23 Dez 2015 23:33:40 CET
➜  ~  youtube-dl --id --no-part --write-info-json --no-cache-dir --ignore-errors --verbose https://www.youtube.com/playlist\?list\=PLCmJTO3UpKnf1B-8dipBEVxiWQ8Hz5-3W
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--id', u'--no-part', u'--write-info-json', u'--no-cache-dir', u'--ignore-errors', u'--verbose', u'https://www.youtube.com/playlist?list=PLCmJTO3UpKnf1B-8dipBEVxiWQ8Hz5-3W']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.12.23
[debug] Python version 2.7.10 - Darwin-15.2.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube:playlist] PLCmJTO3UpKnf1B-8dipBEVxiWQ8Hz5-3W: Downloading webpage
[download] Downloading playlist: Favorites
[youtube:playlist] playlist Favorites: Downloading 1 videos
[download] Downloading video 1 of 1
[youtube] ZrcpS_msu-c: Downloading webpage
[youtube] ZrcpS_msu-c: Downloading video info webpage
[youtube] ZrcpS_msu-c: Extracting video information
[youtube] ZrcpS_msu-c: Downloading DASH manifest
[youtube] ZrcpS_msu-c: Downloading DASH manifest
[info] Writing video description metadata as JSON to: ZrcpS_msu-c.info.json
[debug] Invoking downloader on u'https://r17---sn-5hnedn7y.googlevideo.com/videoplayback?fexp=9413138%2C9416126%2C9418200%2C9420112%2C9420452%2C9420770%2C9421932%2C9422341%2C9422596%2C9423662%2C9423939%2C9424135%2C9424704%2C9425256%2C9425308%2C9425397%2C9425495%2C9426217&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mime=video%2Fmp4&upn=RebfKRhDdHg&nh=IgpwcjAyLmFtczE2KgkxMjcuMC4wLjE&source=youtube&pl=18&signature=45392C92689AF5417086F98E792DDF1FFB3EC786.9682883C0965F9BA38FF1D0832F4A7DEC4E079CC&ratebypass=yes&initcwndbps=432500&expire=1450931623&sver=3&mv=m&mt=1450909870&ms=au&mn=sn-5hnedn7y&mm=31&ipbits=0&requiressl=yes&itag=22&id=o-AI-S63OFpCanG9FDSwuKPgoLo-fJZgYJPyYcVqFVBnDD&lmt=1429964807205088&dur=86.749&ip=217.83.221.6&key=yt6'
[download] Destination: ZrcpS_msu-c.mp4
[download] 100% of 15.55MiB in 00:02
[download] Finished downloading playlist: Favorites

Can anyone point me into the right direction?

@Miladiir
Copy link
Author

@Miladiir Miladiir commented Dec 23, 2015

I am an idiot. The script ran on a server. It failed probably due to some sort of rate limiting like you might encounter when using a proxy or Tor.

@Miladiir Miladiir closed this Dec 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.