mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
New: Added support for limited retention. Reports older than the configured retention are skipped.
This commit is contained in:
parent
0dcbe11a41
commit
9d126e54c9
7 changed files with 7 additions and 30 deletions
|
@ -81,13 +81,8 @@ namespace NzbDrone.Core.Providers.Indexer
|
|||
{
|
||||
var sizeString = Regex.Match(item.Summary.Text, @">\d+\.\d{1,2} \w{2}</a>", RegexOptions.IgnoreCase).Value;
|
||||
currentResult.Size = Parser.GetReportSize(sizeString);
|
||||
|
||||
var dateString = Regex.Match(item.Summary.Text,
|
||||
@"(?:\<pubDate\>)(?<date>.+?)(?:\<\/pubDate\>)",
|
||||
RegexOptions.IgnoreCase | RegexOptions.Compiled).Groups["date"].Value;
|
||||
|
||||
currentResult.Age = DateTime.Today.Subtract(DateTime.Parse(dateString)).Days;
|
||||
}
|
||||
|
||||
return currentResult;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue