mirror of https://github.com/Jackett/Jackett
parent
b87d78214f
commit
e3f15b92b8
|
@ -60,7 +60,6 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht
|
||||||
* E-Hentai
|
* E-Hentai
|
||||||
* elitetorrent
|
* elitetorrent
|
||||||
* EpubLibre
|
* EpubLibre
|
||||||
* Erai-Raws
|
|
||||||
* EXT Torrents
|
* EXT Torrents
|
||||||
* ExtraTorrent.st
|
* ExtraTorrent.st
|
||||||
* EZTV
|
* EZTV
|
||||||
|
@ -189,6 +188,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht
|
||||||
* DimeADozen (EzTorrent)
|
* DimeADozen (EzTorrent)
|
||||||
* DXP (Deaf Experts)
|
* DXP (Deaf Experts)
|
||||||
* EniaHD
|
* EniaHD
|
||||||
|
* Erai-Raws
|
||||||
* ExKinoRay
|
* ExKinoRay
|
||||||
* ExtremlymTorrents
|
* ExtremlymTorrents
|
||||||
* Fenyarnyek-Tracker
|
* Fenyarnyek-Tracker
|
||||||
|
|
|
@ -52,7 +52,11 @@ namespace Jackett.Common.Indexers
|
||||||
{
|
{
|
||||||
Encoding = Encoding.UTF8;
|
Encoding = Encoding.UTF8;
|
||||||
Language = "en-US";
|
Language = "en-US";
|
||||||
Type = "public";
|
Type = "semi-private";
|
||||||
|
|
||||||
|
var rssKey = new StringConfigurationItem("RSSKey") { Value = "" };
|
||||||
|
configData.AddDynamic("rssKey", rssKey);
|
||||||
|
configData.AddDynamic("rssKeyHelp", new DisplayInfoConfigurationItem(string.Empty, "Find the RSS Key by accessing <a href=\"https://www.erai-raws.info/rss-page/\" target =_blank>Erai-Raws RSS page</a> while you're logged in. Copy the <i>All RSS</i> URL, the RSS Key is the last part. Example: for the URL <b>.../feed/?type=torrent&0879fd62733b8db8535eb1be2333</b> the RSS Key is <b>0879fd62733b8db8535eb1be2333</b>"));
|
||||||
|
|
||||||
configData.AddDynamic(
|
configData.AddDynamic(
|
||||||
"DDoS-Guard",
|
"DDoS-Guard",
|
||||||
|
@ -61,7 +65,7 @@ namespace Jackett.Common.Indexers
|
||||||
// Add note that download stats are not available
|
// Add note that download stats are not available
|
||||||
configData.AddDynamic(
|
configData.AddDynamic(
|
||||||
"download-stats-unavailable",
|
"download-stats-unavailable",
|
||||||
new DisplayInfoConfigurationItem("", "<p>Please note that the following stats are not available for this indexer. Default values are used instead. </p><ul><li>Seeders</li><li>Leechers</li><li>Download Factor</li><li>Upload Factor</li></ul>")
|
new DisplayInfoConfigurationItem("", "<p>Please note that the following stats are not available for this indexer. Default values are used instead. </p><ul><li>Files</li><li>Seeders</li><li>Leechers</li></ul>")
|
||||||
);
|
);
|
||||||
|
|
||||||
// Config item for title detail parsing
|
// Config item for title detail parsing
|
||||||
|
@ -77,15 +81,10 @@ namespace Jackett.Common.Indexers
|
||||||
|
|
||||||
private TitleParser titleParser = new TitleParser();
|
private TitleParser titleParser = new TitleParser();
|
||||||
|
|
||||||
|
private string RSSKey => ((StringConfigurationItem)configData.GetDynamic("rssKey")).Value;
|
||||||
private bool IsTitleDetailParsingEnabled => ((BoolConfigurationItem)configData.GetDynamic("title-detail-parsing")).Value;
|
private bool IsTitleDetailParsingEnabled => ((BoolConfigurationItem)configData.GetDynamic("title-detail-parsing")).Value;
|
||||||
|
|
||||||
public string RssFeedUri
|
public string RssFeedUri => SiteLink + RSS_PATH + "&" + RSSKey;
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return string.Concat(SiteLink, RSS_PATH);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
||||||
{
|
{
|
||||||
|
@ -213,6 +212,7 @@ namespace Jackett.Common.Indexers
|
||||||
|
|
||||||
// Download stats are not available through scraping so set some mock values.
|
// Download stats are not available through scraping so set some mock values.
|
||||||
Size = fi.Size,
|
Size = fi.Size,
|
||||||
|
Files = 1,
|
||||||
Seeders = 1,
|
Seeders = 1,
|
||||||
Peers = 2,
|
Peers = 2,
|
||||||
DownloadVolumeFactor = 0,
|
DownloadVolumeFactor = 0,
|
||||||
|
@ -309,19 +309,15 @@ namespace Jackett.Common.Indexers
|
||||||
InfoHash = feedItem.InfoHash;
|
InfoHash = feedItem.InfoHash;
|
||||||
|
|
||||||
if (Uri.TryCreate(feedItem.Link, UriKind.Absolute, out Uri magnetUri))
|
if (Uri.TryCreate(feedItem.Link, UriKind.Absolute, out Uri magnetUri))
|
||||||
{
|
|
||||||
MagnetLink = magnetUri;
|
MagnetLink = magnetUri;
|
||||||
}
|
|
||||||
|
|
||||||
if (DateTimeOffset.TryParse(feedItem.PublishDate, out DateTimeOffset publishDate))
|
if (DateTimeOffset.TryParse(feedItem.PublishDate, out DateTimeOffset publishDate))
|
||||||
{
|
|
||||||
PublishDate = publishDate;
|
PublishDate = publishDate;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private string StripTitle(string rawTitle)
|
private string StripTitle(string rawTitle)
|
||||||
{
|
{
|
||||||
var prefixStripped = Regex.Replace(rawTitle, "^\\[.+?\\] ", "");
|
var prefixStripped = Regex.Replace(rawTitle, "^\\[.+?\\]", "");
|
||||||
var suffixStripped = Regex.Replace(prefixStripped, " \\[.+\\]", "");
|
var suffixStripped = Regex.Replace(prefixStripped, " \\[.+\\]", "");
|
||||||
return suffixStripped.Trim();
|
return suffixStripped.Trim();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
using System;
|
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using Jackett.Common.Indexers;
|
using Jackett.Common.Indexers;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Assert = NUnit.Framework.Assert;
|
|
||||||
|
|
||||||
namespace Jackett.Test.Common.Indexers
|
namespace Jackett.Test.Common.Indexers
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue