Fixed: (MoreThanTv) Parsing issue when download url is null

Fixes #1047
This commit is contained in:
Qstick
2022-09-10 12:49:59 -05:00
parent ae2d9b795b
commit 33de7ca7ab

View File

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