mirror of
https://github.com/Jackett/Jackett
synced 2024-12-28 02:39:26 +00:00
parent
6252c73cf2
commit
d080c4a2ac
1 changed files with 4 additions and 7 deletions
|
@ -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);
|
||||||
|
@ -262,9 +260,9 @@ namespace Jackett.Common.Indexers
|
||||||
var queryString = new NameValueCollection
|
var queryString = new NameValueCollection
|
||||||
{
|
{
|
||||||
{"searchseriesid", ""},
|
{"searchseriesid", ""},
|
||||||
{"tab", "listseries" },
|
{"tab", "listseries"},
|
||||||
{ "function", "Search"},
|
{"function", "Search"},
|
||||||
{"string", searchTerm }, // eretz + nehedert
|
{"string", searchTerm}, // eretz + nehedert
|
||||||
};
|
};
|
||||||
var site = new UriBuilder
|
var site = new UriBuilder
|
||||||
{
|
{
|
||||||
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue