Fix AnimeBytes caps, Change to 4.5 #117, change all trackers to retry failed requests

This commit is contained in:
KZ
2015-07-29 18:47:51 +01:00
parent 70b9ecee1b
commit 37cf3e569c
51 changed files with 191 additions and 126 deletions

View File

@@ -77,21 +77,10 @@ namespace Jackett.Indexers
var releases = new List<ReleaseInfo>();
var searchString = query.SanitizedSearchTerm + " " + query.GetEpisodeSearchString();
var episodeSearchUrl = SearchUrl + HttpUtility.UrlEncode(searchString);
WebClientStringResult response = null;
WebClientStringResult response = null;
response = await RequestStringWithCookiesAndRetry(episodeSearchUrl);
// Their web server is fairly flakey - try up to three times.
for(int i = 0; i < 3; i++)
{
try
{
response = await RequestStringWithCookies(episodeSearchUrl);
break;
}
catch (Exception e){
logger.Error("On attempt " + (i+1) + " checking for results from MoreThanTv: " + e.Message );
}
}
try
{
var json = JObject.Parse(response.Content);