mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Added UI for allowing external access, stop server listening on the old port when changing ports. Config migration bug fixes.
This commit is contained in:
@@ -103,12 +103,27 @@ namespace Jackett.Indexers
|
||||
var searchString = query.SanitizedSearchTerm + " " + query.GetEpisodeSearchString();
|
||||
var episodeSearchUrl = SearchUrl + HttpUtility.UrlEncode(searchString);
|
||||
|
||||
var response = await webclient.GetString(new Utils.Clients.WebRequest()
|
||||
WebClientStringResult response = null;
|
||||
|
||||
// Their web server is fairly flakey - try up to three times.
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Url = episodeSearchUrl,
|
||||
Referer = SiteLink.ToString(),
|
||||
Cookies = cookieHeader
|
||||
});
|
||||
try
|
||||
{
|
||||
response = await webclient.GetString(new Utils.Clients.WebRequest()
|
||||
{
|
||||
Url = episodeSearchUrl,
|
||||
Referer = SiteLink.ToString(),
|
||||
Cookies = cookieHeader
|
||||
});
|
||||
|
||||
break;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.Error("On attempt " + (i + 1) + " checking for results from IPTorrents: " + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
var results = response.Content;
|
||||
try
|
||||
|
Reference in New Issue
Block a user