From 2dda2d47df5a8e57cb56b3b7b379f3e54fbbabf5 Mon Sep 17 00:00:00 2001 From: seeyabye Date: Sat, 17 Oct 2020 09:37:55 +0900 Subject: [PATCH] ahd: fixed an issue caused by invalid uri (#9871) resolves #9861 --- src/Jackett.Common/Indexers/AwesomeHD.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Indexers/AwesomeHD.cs b/src/Jackett.Common/Indexers/AwesomeHD.cs index 2e524874b..dbc7c46e5 100644 --- a/src/Jackett.Common/Indexers/AwesomeHD.cs +++ b/src/Jackett.Common/Indexers/AwesomeHD.cs @@ -171,9 +171,11 @@ namespace Jackett.Common.Indexers if (!isAudio) // audio tracks don't have banner either description { // small cover only for movies - if (!isSerie && !string.IsNullOrWhiteSpace(torrent.Element("smallcover")?.Value)) + var smallCover = torrent.Element("smallcover"); + var normalCover = torrent.Element("cover"); + if (!isSerie && !string.IsNullOrWhiteSpace(smallCover?.Value) && smallCover.Value.StartsWith("https://")) banner = new Uri(torrent.FirstValue("smallcover")); - else if (!string.IsNullOrWhiteSpace(torrent.Element("cover")?.Value)) + else if (!string.IsNullOrWhiteSpace(normalCover?.Value) && normalCover.Value.StartsWith("https://")) banner = new Uri(torrent.FirstValue("cover")); description = torrent.Element("encodestatus") != null ?