mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fix AnimeBytes caps, Change to 4.5 #117, change all trackers to retry failed requests
This commit is contained in:
@@ -72,22 +72,7 @@ namespace Jackett.Indexers
|
||||
var releases = new List<ReleaseInfo>();
|
||||
var searchString = query.SanitizedSearchTerm + " " + query.GetEpisodeSearchString();
|
||||
var episodeSearchUrl = SearchUrl + HttpUtility.UrlEncode(searchString);
|
||||
|
||||
WebClientStringResult response = null;
|
||||
|
||||
// Their web server is fairly flakey - try up to three times.
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
response = await RequestStringWithCookies(episodeSearchUrl, null, SearchUrl);
|
||||
break;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.Error("On attempt " + (i + 1) + " checking for results from IPTorrents: " + e.Message);
|
||||
}
|
||||
}
|
||||
var response = await RequestStringWithCookiesAndRetry(episodeSearchUrl, null, SearchUrl);
|
||||
|
||||
var results = response.Content;
|
||||
try
|
||||
|
Reference in New Issue
Block a user