fix(api): add rate limiter to TMDb requests to hopefully deal with 429s (#2881)
fixes #2853
This commit is contained in:
@@ -92,6 +92,10 @@ class TheMovieDb extends ExternalAPI {
|
||||
},
|
||||
{
|
||||
nodeCache: cacheManager.getCache('tmdb').data,
|
||||
rateLimit: {
|
||||
maxRequests: 20,
|
||||
maxRPS: 1,
|
||||
},
|
||||
}
|
||||
);
|
||||
this.region = region;
|
||||
|
||||
Reference in New Issue
Block a user