Fix group_torrent files parsding (#614)

This commit is contained in:
kaso17 2016-11-01 08:55:49 +01:00 committed by GitHub
parent a027bfae54
commit f0a302f7f4
1 changed files with 6 additions and 4 deletions

View File

@ -14,7 +14,8 @@ using AngleSharp.Dom;
using AngleSharp.Parser.Html;
using CsQuery;
using Jackett.Models.IndexerConfig;
using Jackett.Utils;
namespace Jackett.Indexers
{
public class MoreThanTV : BaseIndexer, IIndexer
@ -154,8 +155,8 @@ namespace Jackett.Indexers
qualityData[1].Trim(),
qualityEdition, // Audio quality should be after this one. Unobtainable at the moment.
$"{qualityData[0].Trim()}-MTV"
});
});
releases.Add(GetReleaseInfo(groupItem, downloadAnchor, title, TorznabCatType.TV.ID));
}
else
@ -203,7 +204,8 @@ namespace Jackett.Indexers
// Parse required data
var downloadAnchorHref = downloadAnchor.Attributes["href"].Value;
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 torrentData = row.QuerySelectorAll(".number_column"); // Size (xx.xx GB[ (Max)]) Snatches (xx) Seeders (xx) Leechers (xx)