* lower request limits to specification
This commit is contained in:
parent
e4e2c2e336
commit
a616577ab9
|
@ -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";
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue