mirror of https://github.com/Jackett/Jackett
rarbg: set request delay based on query mode (#14057)
This commit is contained in:
parent
ad626d688a
commit
2543ebdcac
|
@ -301,6 +301,8 @@ namespace Jackett.Common.Indexers
|
||||||
var cats = string.Join(";", querycats);
|
var cats = string.Join(";", querycats);
|
||||||
qc.Add("category", cats);
|
qc.Add("category", cats);
|
||||||
|
|
||||||
|
webclient.requestDelay = qc.Get("mode") == "list" ? 31 : 5;
|
||||||
|
|
||||||
return ApiEndpoint + "?" + qc.GetQueryString();
|
return ApiEndpoint + "?" + qc.GetQueryString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue