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:
@@ -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