Fuzer: Fix parse error (#7521) resolves #7502

This commit is contained in:
Cory 2020-03-05 22:21:28 -06:00 committed by GitHub
parent 6252c73cf2
commit d080c4a2ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 7 deletions

View File

@ -12,7 +12,6 @@ using Jackett.Common.Models;
using Jackett.Common.Models.IndexerConfig;
using Jackett.Common.Services.Interfaces;
using Jackett.Common.Utils;
using Jackett.Common.Utils.Clients;
using Newtonsoft.Json.Linq;
using NLog;
@ -215,7 +214,6 @@ namespace Jackett.Common.Indexers
release.Title = mainTitleLink.TextContent;
release.MinimumRatio = 1;
release.MinimumSeedTime = 172800; // 48 hours
release.Grabs = ParseUtil.CoerceLong(row.QuerySelector("td:nth-child(5)").TextContent.Replace(",", ""));
release.Seeders = ParseUtil.CoerceInt(row.QuerySelector("td:nth-child(6)").TextContent.Replace(",", ""));
release.Peers = ParseUtil.CoerceInt(row.QuerySelector("td:nth-child(7)").TextContent.Replace(",", "")) +
@ -229,7 +227,7 @@ namespace Jackett.Common.Indexers
if (Uri.TryCreate(row.QuerySelector("a[imgsrc]").GetAttribute("imgsrc"),
UriKind.Absolute, out var banner))
release.BannerUrl = banner;
var dateStringAll = row.QuerySelector("div.up_info2").ChildNodes.Last().ToString();
var dateStringAll = row.QuerySelector("div.up_info2").ChildNodes.Last().TextContent;
var dateParts = dateStringAll.Split(' ');
var dateString = dateParts[dateParts.Length - 2] + " " + dateParts[dateParts.Length - 1];
release.PublishDate = DateTime.ParseExact(dateString, "dd/MM/yy HH:mm", CultureInfo.InvariantCulture);
@ -262,9 +260,9 @@ namespace Jackett.Common.Indexers
var queryString = new NameValueCollection
{
{"searchseriesid", ""},
{"tab", "listseries" },
{ "function", "Search"},
{"string", searchTerm }, // eretz + nehedert
{"tab", "listseries"},
{"function", "Search"},
{"string", searchTerm}, // eretz + nehedert
};
var site = new UriBuilder
{
@ -279,7 +277,6 @@ namespace Jackett.Common.Indexers
var rows = dom.QuerySelectorAll("#listtable > tbody > tr");
foreach (var row in rows.Skip(1))
{
var link = row.QuerySelector("td:nth-child(1) > a");
if (string.Equals(link.TextContent.Trim(), searchTerm.Trim(), StringComparison.CurrentCultureIgnoreCase))
{