Show releases with issues in the interactive search

pull/2006/head
Bogdan 1 month ago
parent 9cc150b105
commit a48d6029d9

@ -467,6 +467,11 @@ namespace NzbDrone.Core.Indexers.Definitions
// Ignore these categories as they'll cause hell with the matcher // Ignore these categories as they'll cause hell with the matcher
// TV Special, DVD Special, BD Special // TV Special, DVD Special, BD Special
if (groupName is "TV Special" or "DVD Special" or "BD Special")
{
continue;
}
if (groupName is "TV Series" or "OVA" or "ONA") if (groupName is "TV Series" or "OVA" or "ONA")
{ {
categories = new List<IndexerCategory> { NewznabStandardCategory.TVAnime }; categories = new List<IndexerCategory> { NewznabStandardCategory.TVAnime };

@ -397,7 +397,7 @@ namespace NzbDrone.Core.Indexers
} }
} }
releases.AddRange(pagedReleases.Where(IsValidRelease)); releases.AddRange(pagedReleases.Where(r => IsValidRelease(r, searchCriteria.InteractiveSearch)));
} }
if (releases.Any()) if (releases.Any())
@ -503,7 +503,7 @@ namespace NzbDrone.Core.Indexers
return Capabilities ?? ((IndexerDefinition)Definition).Capabilities; return Capabilities ?? ((IndexerDefinition)Definition).Capabilities;
} }
protected virtual bool IsValidRelease(ReleaseInfo release) protected virtual bool IsValidRelease(ReleaseInfo release, bool interactiveSearch = false)
{ {
if (release.Title.IsNullOrWhiteSpace()) if (release.Title.IsNullOrWhiteSpace())
{ {
@ -512,6 +512,12 @@ namespace NzbDrone.Core.Indexers
return false; return false;
} }
if (interactiveSearch)
{
// Show releases with issues in the interactive search
return true;
}
if (release.Size == null) if (release.Size == null)
{ {
_logger.Warn("Invalid Release: '{0}' from indexer: {1}. No size provided.", release.Title, Definition.Name); _logger.Warn("Invalid Release: '{0}' from indexer: {1}. No size provided.", release.Title, Definition.Name);

Loading…
Cancel
Save