1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-14 05:15:03 -05:00

Throttle AniDB to 1 request per 5 seconds, to strictly ensure "You should not request more than one page every two seconds."

https://wiki.anidb.net/w/HTTP_API_Definition#Anti_Leech_Protection
This commit is contained in:
Reinhard Pointner 2019-05-22 18:19:05 +07:00
parent e2992e9c09
commit ececb1e645

View File

@ -39,7 +39,7 @@ import net.filebot.ResourceManager;
public class AnidbClient extends AbstractEpisodeListProvider implements ArtworkProvider {
private static final FloodLimit REQUEST_LIMIT = new FloodLimit(2, 5, TimeUnit.SECONDS); // no more than 2 requests within a 5 second window
private static final FloodLimit REQUEST_LIMIT = new FloodLimit(1, 5, TimeUnit.SECONDS); // no more than 1 requests within a 5 second window
private final String client;
private final int clientver;