mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Show releases with issues in the interactive search
This commit is contained in:
@@ -467,6 +467,11 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
|
||||
// Ignore these categories as they'll cause hell with the matcher
|
||||
// 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")
|
||||
{
|
||||
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())
|
||||
@@ -503,7 +503,7 @@ namespace NzbDrone.Core.Indexers
|
||||
return Capabilities ?? ((IndexerDefinition)Definition).Capabilities;
|
||||
}
|
||||
|
||||
protected virtual bool IsValidRelease(ReleaseInfo release)
|
||||
protected virtual bool IsValidRelease(ReleaseInfo release, bool interactiveSearch = false)
|
||||
{
|
||||
if (release.Title.IsNullOrWhiteSpace())
|
||||
{
|
||||
@@ -512,6 +512,12 @@ namespace NzbDrone.Core.Indexers
|
||||
return false;
|
||||
}
|
||||
|
||||
if (interactiveSearch)
|
||||
{
|
||||
// Show releases with issues in the interactive search
|
||||
return true;
|
||||
}
|
||||
|
||||
if (release.Size == null)
|
||||
{
|
||||
_logger.Warn("Invalid Release: '{0}' from indexer: {1}. No size provided.", release.Title, Definition.Name);
|
||||
|
Reference in New Issue
Block a user