Use opensubtitles.com rate limits headers

4 votes

Hi,

When using opensubtitles.com It frequently receives an error due to rate limiting. It is then paused for a while and once the time expires it hits the rate limit again.

I reached out to opensubtitles.com and they responded with the below.

This feature requests bazarr to pause the provider for the time which is available in the headers making it more efficient.

====
if you get limitations it must be because you are running too many requests per minute or per second, the limit is 40 per 10 seconds, or 5 per second, or 240 per minute.

Sorry for the lack of documentation on the topic, we are actually still working on establishing the most appropriate limitations for the best results.

You can find headers starting with "x-ratelimit" on each requests, for example these 2

x-ratelimit-remaining-second 4
x-ratelimit-remaining-minute 238
===

Won't happen Suggested by: Steven Adams Upvoted: 22 Jul, '23 Comments: 1

Comments: 1