1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-25 07:32:38 +00:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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