mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: (MoreThanTv) Parsing issue when download url is null
Fixes #1047
This commit is contained in:
@@ -190,6 +190,12 @@ public class MoreThanTVParser : IParseIndexerResponse
|
|||||||
{
|
{
|
||||||
// Parse required data
|
// Parse required data
|
||||||
var downloadAnchor = torrent.QuerySelector("span a[href^=\"/torrents.php?action=download\"]");
|
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();
|
var title = downloadAnchor.ParentElement.ParentElement.ParentElement.QuerySelector("a[class=\"overlay_torrent\"]").TextContent.Trim();
|
||||||
title = CleanUpTitle(title);
|
title = CleanUpTitle(title);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user