From a512ea37c351cd6125eda587e469d8886944db61 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Mon, 2 Mar 2020 20:33:21 +1300 Subject: [PATCH] hdtorrents: imdb can be missing. fix #7373 --- src/Jackett.Common/Indexers/HDTorrents.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Indexers/HDTorrents.cs b/src/Jackett.Common/Indexers/HDTorrents.cs index 2d7cd8682..1c44ecee1 100644 --- a/src/Jackett.Common/Indexers/HDTorrents.cs +++ b/src/Jackett.Common/Indexers/HDTorrents.cs @@ -211,8 +211,9 @@ namespace Jackett.Common.Indexers else release.DownloadVolumeFactor = 1; - var imdblink = row.QuerySelector("a[href*=\"www.imdb.com/title/\"]").GetAttribute("href"); - release.Imdb = ParseUtil.GetLongFromString(imdblink); + var imdblink = row.QuerySelector("a[href*=\"www.imdb.com/title/\"]")?.GetAttribute("href"); + if (!string.IsNullOrWhiteSpace(imdblink)) + release.Imdb = ParseUtil.GetLongFromString(imdblink); releases.Add(release); }