1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-01 12:46:23 +00:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"));