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

Request rate limits #645

Open
vasi opened this issue Jan 21, 2013 · 0 comments
Open

Request rate limits #645

vasi opened this issue Jan 21, 2013 · 0 comments
Labels

Comments

@vasi
Copy link
Contributor

@vasi vasi commented Jan 21, 2013

Another minor issue with the Justin.tv/Twitch.tv support. It seems the Justin.tv API has a rate limit, but it's not limited to a certain bandwidth, rather to a certain number of requests.

This creates a problem with huge channels. Eg, if I add a line to print the requested URLs:

$ youtube-dl -v http://www.twitch.tv/manvsgame
http://api.justin.tv/channel/archives/manvsgame.json?offset=0&limit=100
http://api.justin.tv/channel/archives/manvsgame.json?offset=100&limit=100
[snip]
http://api.justin.tv/channel/archives/manvsgame.json?offset=1600&limit=100
http://api.justin.tv/channel/archives/manvsgame.json?offset=1700&limit=100
ERROR: unable to download video info JSON: HTTP Error 400: Bad Request

Here's a simple sort-of-fix, that at least allows youtube-dl's --ignore-errors option to work: https://github.com/vasi/youtube-dl/compare/justintv-ratelimit . Ideally though, there should be some functionality within youtube-dl to allow limiting the request rate.

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.