New: (AnimeBytes) Filter old releases on RSS

pull/1925/head
Bogdan 1 year ago
parent 28004dfae1
commit 3130fac106

@ -91,6 +91,11 @@ namespace NzbDrone.Core.Indexers.Definitions
{
var cleanReleases = base.CleanupReleases(releases, searchCriteria);
if (searchCriteria.IsRssSearch)
{
cleanReleases = cleanReleases.Where(r => r.PublishDate > DateTime.Now.AddDays(-1)).ToList();
}
return cleanReleases.Select(r => (ReleaseInfo)r.Clone()).ToList();
}

Loading…
Cancel
Save