1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 16:58:51 -05:00

* lower request limits to specification

This commit is contained in:
Reinhard Pointner 2014-08-07 21:38:55 +00:00
parent e4e2c2e336
commit a616577ab9
3 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ import org.w3c.dom.Node;
public class AnidbClient extends AbstractEpisodeListProvider { public class AnidbClient extends AbstractEpisodeListProvider {
private static final FloodLimit REQUEST_LIMIT = new FloodLimit(5, 12, TimeUnit.SECONDS); // no more than 5 requests within a 10 second window (+2 seconds for good measure) private static final FloodLimit REQUEST_LIMIT = new FloodLimit(5, 10, TimeUnit.SECONDS); // no more than 5 requests within a 10 second window
private final String host = "anidb.net"; private final String host = "anidb.net";

View File

@ -37,7 +37,7 @@ import com.cedarsoftware.util.io.JsonReader;
public class OMDbClient implements MovieIdentificationService { public class OMDbClient implements MovieIdentificationService {
private static final FloodLimit REQUEST_LIMIT = new FloodLimit(20, 12, TimeUnit.SECONDS); private static final FloodLimit REQUEST_LIMIT = new FloodLimit(20, 10, TimeUnit.SECONDS);
private final String protocol = "http"; private final String protocol = "http";
private final String host = "www.omdbapi.com"; private final String host = "www.omdbapi.com";

View File

@ -44,8 +44,8 @@ public class TMDbClient implements MovieIdentificationService {
private static final String host = "api.themoviedb.org"; private static final String host = "api.themoviedb.org";
private static final String version = "3"; private static final String version = "3";
private static final FloodLimit SEARCH_LIMIT = new FloodLimit(10, 12, TimeUnit.SECONDS); private static final FloodLimit SEARCH_LIMIT = new FloodLimit(10, 10, TimeUnit.SECONDS);
private static final FloodLimit REQUEST_LIMIT = new FloodLimit(20, 12, TimeUnit.SECONDS); private static final FloodLimit REQUEST_LIMIT = new FloodLimit(20, 10, TimeUnit.SECONDS);
private final String apikey; private final String apikey;