From 3ecf5c616684c9376dea651a3af9bfa1ad81792e Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 19 Aug 2024 15:30:45 +0300 Subject: [PATCH] Fixed: (AnimeBytes) Improve filtering of old releases --- src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs | 2 +- src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs b/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs index b966c3c7a..10dc2e3bb 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs @@ -93,7 +93,7 @@ namespace NzbDrone.Core.Indexers.Definitions if (searchCriteria.IsRssSearch) { - cleanReleases = cleanReleases.Where(r => r.PublishDate > DateTime.Now.AddDays(-1)).ToList(); + cleanReleases = cleanReleases.Where((r, index) => r.PublishDate > DateTime.Now.AddDays(-1) || index < 20).ToList(); } return cleanReleases.Select(r => (ReleaseInfo)r.Clone()).ToList(); diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs index 46443503f..80c70c068 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs @@ -84,7 +84,7 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann if (_definitionService.GetCachedDefinition(Settings.DefinitionFile).Search?.Rows?.Filters?.Any(x => x.Name == "andmatch") ?? false) { - cleanReleases = FilterReleasesByQuery(releases, searchCriteria).ToList(); + cleanReleases = FilterReleasesByQuery(cleanReleases, searchCriteria).ToList(); } return cleanReleases;