This commit is contained in:
Dmitry Chepurovskiy 2022-06-09 18:45:18 +03:00
parent e7d2f8c081
commit e13b0b7a97
No known key found for this signature in database
GPG key ID: 5B3A5FDCBFF9B3A4

View file

@ -329,7 +329,6 @@ private IEnumerable<IndexerRequest> GetPagedRequests(string term, int[] categori
requestUrls.AddRange(GetSearchPageURLs(term, season, episode));
}
Logger.Info(requestUrls.Count());
foreach (var url in requestUrls)
{
yield return new IndexerRequest(url, HttpAccept.Html);
@ -651,10 +650,18 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
{
return ParseNewResponse(indexerResponse);
}
else
if (indexerResponse.Request.Url.Path.Contains("/episode_"))
{
return ParseSearchResponse(indexerResponse);
return ParseNewResponse(indexerResponse);
}
if (indexerResponse.Request.Url.Path == "/new")
{
return ParseNewResponse(indexerResponse);
}
return new List<ReleaseInfo>().ToArray();
}
public Action<IDictionary<string, string>, DateTime?> CookiesUpdater { get; set; }