elitetracker: fix parsing error. resolves #7675 (#7684)

This commit is contained in:
Diego Heras
2020-03-15 23:26:18 +01:00
committed by GitHub
parent 63f1870319
commit 461594e336

View File

@@ -40,6 +40,7 @@ namespace Jackett.Common.Indexers
Type = "private"; Type = "private";
TorznabCaps.SupportsImdbMovieSearch = true; TorznabCaps.SupportsImdbMovieSearch = true;
TorznabCaps.SupportsImdbTVSearch = true;
AddCategoryMapping(27, TorznabCatType.TVAnime, "Animation/Animes"); AddCategoryMapping(27, TorznabCatType.TVAnime, "Animation/Animes");
AddCategoryMapping(90, TorznabCatType.TVAnime, "Animes - 3D"); AddCategoryMapping(90, TorznabCatType.TVAnime, "Animes - 3D");
@@ -187,8 +188,7 @@ namespace Jackett.Common.Indexers
foreach (var row in rows.Skip(1)) foreach (var row in rows.Skip(1))
{ {
var qTags = row.Children[1].QuerySelector("div:has(span[style=\"float: right;\"])"); if (row.Children.Length != 9)
if (qTags == null)
continue; // not a torrent line continue; // not a torrent line
var cat = row.Children[0].QuerySelector("a").GetAttribute("href").Split('=')[1]; var cat = row.Children[0].QuerySelector("a").GetAttribute("href").Split('=')[1];
@@ -201,6 +201,7 @@ namespace Jackett.Common.Indexers
var seeders = row.Children[6].QuerySelector("a").TextContent; var seeders = row.Children[6].QuerySelector("a").TextContent;
var leechers = row.Children[7].QuerySelector("a").TextContent; var leechers = row.Children[7].QuerySelector("a").TextContent;
var qTags = row.Children[1].QuerySelector("div:has(span[style=\"float: right;\"])");
var dlVolumeFactor = 1.0; var dlVolumeFactor = 1.0;
if (qTags.QuerySelector("img[alt^=\"TORRENT GRATUIT\"]") != null) if (qTags.QuerySelector("img[alt^=\"TORRENT GRATUIT\"]") != null)
dlVolumeFactor = 0.0; dlVolumeFactor = 0.0;