GazelleGames: improve parser

This commit is contained in:
kaso17
2018-02-07 16:53:24 +01:00
parent 6d09f67adc
commit da51c070d0

View File

@@ -267,10 +267,11 @@ namespace Jackett.Indexers
var qDescription = qDetailsLink.QuerySelector("span.torrent_info_tags"); var qDescription = qDetailsLink.QuerySelector("span.torrent_info_tags");
var qDLLink = Row.QuerySelector("a[href^=\"torrents.php?action=download\"]"); var qDLLink = Row.QuerySelector("a[href^=\"torrents.php?action=download\"]");
var qTime = Row.QuerySelector("span.time"); var qTime = Row.QuerySelector("span.time");
var qSize = Row.QuerySelector("td:nth-last-child(4)"); // some users have an extra colum (8), we can't use nth-last-child
var qGrabs = Row.QuerySelector("td:nth-last-child(3)"); var qSize = Row.QuerySelector("td:nth-child(4)");
var qSeeders = Row.QuerySelector("td:nth-last-child(2)"); var qGrabs = Row.QuerySelector("td:nth-child(5)");
var qLeechers = Row.QuerySelector("td:nth-last-child(1)"); var qSeeders = Row.QuerySelector("td:nth-child(6)");
var qLeechers = Row.QuerySelector("td:nth-child(7)");
var qFreeLeech = Row.QuerySelector("strong.freeleech_label"); var qFreeLeech = Row.QuerySelector("strong.freeleech_label");
var qNeutralLeech = Row.QuerySelector("strong.neutralleech_label"); var qNeutralLeech = Row.QuerySelector("strong.neutralleech_label");
var RowTitle = Row.GetAttribute("title"); var RowTitle = Row.GetAttribute("title");