mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Fix: NzbMatrix report age is now parsed properly.
This commit is contained in:
parent
4d918ff683
commit
6375df058e
2 changed files with 21 additions and 0 deletions
|
@ -107,6 +107,9 @@ namespace NzbDrone.Core.Providers.Indexer
|
|||
{
|
||||
var sizeString = Regex.Match(item.Summary.Text, @"<b>Size:</b> \d+\.\d{1,2} \w{2}<br />", RegexOptions.IgnoreCase).Value;
|
||||
currentResult.Size = Parser.GetReportSize(sizeString);
|
||||
|
||||
var ageString = Regex.Match(item.Summary.Text, @"(?<=\<b\>Added\:\<\/b\>\s)(?<date>.+?)(?=\<br \/\>)", RegexOptions.Compiled | RegexOptions.IgnoreCase).Value;
|
||||
currentResult.Age = DateTime.Now.Subtract(DateTime.Parse(ageString)).Days;
|
||||
}
|
||||
|
||||
return currentResult;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue