mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fix group_torrent files parsding (#614)
This commit is contained in:
@@ -14,6 +14,7 @@ using AngleSharp.Dom;
|
|||||||
using AngleSharp.Parser.Html;
|
using AngleSharp.Parser.Html;
|
||||||
using CsQuery;
|
using CsQuery;
|
||||||
using Jackett.Models.IndexerConfig;
|
using Jackett.Models.IndexerConfig;
|
||||||
|
using Jackett.Utils;
|
||||||
|
|
||||||
namespace Jackett.Indexers
|
namespace Jackett.Indexers
|
||||||
{
|
{
|
||||||
@@ -203,7 +204,8 @@ namespace Jackett.Indexers
|
|||||||
// Parse required data
|
// Parse required data
|
||||||
var downloadAnchorHref = downloadAnchor.Attributes["href"].Value;
|
var downloadAnchorHref = downloadAnchor.Attributes["href"].Value;
|
||||||
var torrentId = downloadAnchorHref.Substring(downloadAnchorHref.LastIndexOf('=') + 1);
|
var torrentId = downloadAnchorHref.Substring(downloadAnchorHref.LastIndexOf('=') + 1);
|
||||||
var files = int.Parse(row.QuerySelector("td:nth-child(4)").TextContent);
|
var qFiles = row.QuerySelector("td:nth-last-child(6)");
|
||||||
|
var files = ParseUtil.CoerceLong(qFiles.TextContent);
|
||||||
var publishDate = DateTime.ParseExact(row.QuerySelector(".time.tooltip").Attributes["title"].Value, "MMM dd yyyy, HH:mm", CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal);
|
var publishDate = DateTime.ParseExact(row.QuerySelector(".time.tooltip").Attributes["title"].Value, "MMM dd yyyy, HH:mm", CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal);
|
||||||
var torrentData = row.QuerySelectorAll(".number_column"); // Size (xx.xx GB[ (Max)]) Snatches (xx) Seeders (xx) Leechers (xx)
|
var torrentData = row.QuerySelectorAll(".number_column"); // Size (xx.xx GB[ (Max)]) Snatches (xx) Seeders (xx) Leechers (xx)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user