mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
@@ -12,7 +12,6 @@ using Jackett.Common.Models;
|
|||||||
using Jackett.Common.Models.IndexerConfig;
|
using Jackett.Common.Models.IndexerConfig;
|
||||||
using Jackett.Common.Services.Interfaces;
|
using Jackett.Common.Services.Interfaces;
|
||||||
using Jackett.Common.Utils;
|
using Jackett.Common.Utils;
|
||||||
using Jackett.Common.Utils.Clients;
|
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using NLog;
|
using NLog;
|
||||||
|
|
||||||
@@ -215,7 +214,6 @@ namespace Jackett.Common.Indexers
|
|||||||
release.Title = mainTitleLink.TextContent;
|
release.Title = mainTitleLink.TextContent;
|
||||||
release.MinimumRatio = 1;
|
release.MinimumRatio = 1;
|
||||||
release.MinimumSeedTime = 172800; // 48 hours
|
release.MinimumSeedTime = 172800; // 48 hours
|
||||||
|
|
||||||
release.Grabs = ParseUtil.CoerceLong(row.QuerySelector("td:nth-child(5)").TextContent.Replace(",", ""));
|
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.Seeders = ParseUtil.CoerceInt(row.QuerySelector("td:nth-child(6)").TextContent.Replace(",", ""));
|
||||||
release.Peers = ParseUtil.CoerceInt(row.QuerySelector("td:nth-child(7)").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"),
|
if (Uri.TryCreate(row.QuerySelector("a[imgsrc]").GetAttribute("imgsrc"),
|
||||||
UriKind.Absolute, out var banner))
|
UriKind.Absolute, out var banner))
|
||||||
release.BannerUrl = 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 dateParts = dateStringAll.Split(' ');
|
||||||
var dateString = dateParts[dateParts.Length - 2] + " " + dateParts[dateParts.Length - 1];
|
var dateString = dateParts[dateParts.Length - 2] + " " + dateParts[dateParts.Length - 1];
|
||||||
release.PublishDate = DateTime.ParseExact(dateString, "dd/MM/yy HH:mm", CultureInfo.InvariantCulture);
|
release.PublishDate = DateTime.ParseExact(dateString, "dd/MM/yy HH:mm", CultureInfo.InvariantCulture);
|
||||||
@@ -279,7 +277,6 @@ namespace Jackett.Common.Indexers
|
|||||||
var rows = dom.QuerySelectorAll("#listtable > tbody > tr");
|
var rows = dom.QuerySelectorAll("#listtable > tbody > tr");
|
||||||
foreach (var row in rows.Skip(1))
|
foreach (var row in rows.Skip(1))
|
||||||
{
|
{
|
||||||
|
|
||||||
var link = row.QuerySelector("td:nth-child(1) > a");
|
var link = row.QuerySelector("td:nth-child(1) > a");
|
||||||
if (string.Equals(link.TextContent.Trim(), searchTerm.Trim(), StringComparison.CurrentCultureIgnoreCase))
|
if (string.Equals(link.TextContent.Trim(), searchTerm.Trim(), StringComparison.CurrentCultureIgnoreCase))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user