mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-29 08:10:51 +02:00
New: (AnimeBytes) Filter old releases on RSS
This commit is contained in:
parent
28004dfae1
commit
3130fac106
1 changed files with 5 additions and 0 deletions
|
|
@ -91,6 +91,11 @@ protected override IList<ReleaseInfo> CleanupReleases(IEnumerable<ReleaseInfo> r
|
|||
{
|
||||
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…
Reference in a new issue