rarbg: set request delay based on query mode (#14057)

This commit is contained in:
Bogdan 2023-02-20 22:48:15 +02:00 committed by GitHub
parent ad626d688a
commit 2543ebdcac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -301,6 +301,8 @@ namespace Jackett.Common.Indexers
var cats = string.Join(";", querycats);
qc.Add("category", cats);
webclient.requestDelay = qc.Get("mode") == "list" ? 31 : 5;
return ApiEndpoint + "?" + qc.GetQueryString();
}