mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
New: NzbInfoUrl added to history (link to NZB info at indexer) - Not supported for Womble's.
This commit is contained in:
parent
b314ff5e82
commit
5aff4ab240
12 changed files with 639 additions and 462 deletions
|
@ -103,7 +103,7 @@ namespace NzbDrone.Core.Providers.Indexer
|
|||
|
||||
protected override string NzbInfoUrl(SyndicationItem item)
|
||||
{
|
||||
return item.Links[0].Uri.ToString();
|
||||
return Regex.Match(item.Summary.Text, "(?<=\\<a\\shref\\=\").+nzb-details.+(?=\"\\>View\\<\\/a\\>)", RegexOptions.Compiled | RegexOptions.IgnoreCase).Value;
|
||||
}
|
||||
|
||||
protected override EpisodeParseResult CustomParser(SyndicationItem item, EpisodeParseResult currentResult)
|
||||
|
@ -114,7 +114,7 @@ namespace NzbDrone.Core.Providers.Indexer
|
|||
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;
|
||||
currentResult.Age = DateTime.Now.Subtract(DateTime.Parse(ageString)).Days;
|
||||
}
|
||||
|
||||
return currentResult;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue