nebulance: fix poster url parsing. resolves #10691 (#10710)

This commit is contained in:
Diego Heras
2021-01-02 13:39:30 +01:00
committed by GitHub
parent dae3248719
commit 5fe45780bb

View File

@@ -127,8 +127,8 @@ namespace Jackett.Common.Indexers
title = title.Remove(title.LastIndexOf(".", StringComparison.Ordinal));
}
var posterStr = row.QuerySelector("img:nth-child(2)")?.GetAttribute("src");
var poster = !string.IsNullOrWhiteSpace(posterStr) ? new Uri(posterStr) : null;
var posterStr = row.QuerySelector("img")?.GetAttribute("src");
Uri.TryCreate(posterStr, UriKind.Absolute, out var poster);
var details = new Uri(SiteLink + row.QuerySelector("a[data-src]").GetAttribute("href"));
var link = new Uri(SiteLink + row.QuerySelector("a[href*='action=download']").GetAttribute("href"));