1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-22 22:16:13 -04:00

Fixed: Processing of mixed newznab/torznab api such as the experimental animetosho api.

Ref #1384
This commit is contained in:
Taloth Saldono
2017-05-21 17:23:28 +02:00
parent a41b5723d4
commit 4fbc481780
18 changed files with 276 additions and 69 deletions
+11 -1
View File
@@ -166,7 +166,7 @@ namespace NzbDrone.Core.Indexers
}
}
releases.AddRange(pagedReleases);
releases.AddRange(pagedReleases.Where(IsValidRelease));
}
if (releases.Any())
@@ -268,6 +268,16 @@ namespace NzbDrone.Core.Indexers
return CleanupReleases(releases);
}
protected virtual bool IsValidRelease(ReleaseInfo release)
{
if (release.DownloadUrl.IsNullOrWhiteSpace())
{
return false;
}
return true;
}
protected virtual bool IsFullPage(IList<ReleaseInfo> page)
{
return PageSize != 0 && page.Count >= PageSize;