New: Add PosterUrl to ReleaseInfo for parsing

This commit is contained in:
Qstick
2021-07-18 21:33:17 -04:00
parent a127e5a30f
commit e304461dfb
11 changed files with 29 additions and 17 deletions
@@ -255,7 +255,7 @@ namespace NzbDrone.Core.Indexers.Definitions
var details = new Uri(_settings.BaseUrl + mainLink.GetAttribute("href"));
var posterMatch = _posterRegex.Match(mainLink.GetAttribute("onmouseover"));
var poster = posterMatch.Success ? new Uri(_settings.BaseUrl + posterMatch.Groups[1].Value.Replace("\\", "/")) : null;
var poster = posterMatch.Success ? _settings.BaseUrl + posterMatch.Groups[1].Value.Replace("\\", "/") : null;
var link = new Uri(_settings.BaseUrl + row.Children[4].FirstElementChild.GetAttribute("href"));
var description = row.Children[2].QuerySelector("span").TextContent;
@@ -331,6 +331,7 @@ namespace NzbDrone.Core.Indexers.Definitions
Guid = details.AbsoluteUri,
DownloadUrl = link.AbsoluteUri,
InfoUrl = details.AbsoluteUri,
PosterUrl = poster,
PublishDate = publishDate,
Categories = cat,
ImdbId = imdb ?? 0,