From 33de7ca7ab2429b5512245098c236f10c2593a25 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 10 Sep 2022 12:49:59 -0500 Subject: [PATCH] Fixed: (MoreThanTv) Parsing issue when download url is null Fixes #1047 --- src/NzbDrone.Core/Indexers/Definitions/MoreThanTV.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NzbDrone.Core/Indexers/Definitions/MoreThanTV.cs b/src/NzbDrone.Core/Indexers/Definitions/MoreThanTV.cs index 2db6042c5..0ede86e38 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/MoreThanTV.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/MoreThanTV.cs @@ -190,6 +190,12 @@ public class MoreThanTVParser : IParseIndexerResponse { // Parse required data var downloadAnchor = torrent.QuerySelector("span a[href^=\"/torrents.php?action=download\"]"); + + if (downloadAnchor == null) + { + continue; + } + var title = downloadAnchor.ParentElement.ParentElement.ParentElement.QuerySelector("a[class=\"overlay_torrent\"]").TextContent.Trim(); title = CleanUpTitle(title);