mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
showrss: keep cloudflare cookie (#8675)
This commit is contained in:
@@ -20,15 +20,11 @@ namespace Jackett.Common.Indexers
|
|||||||
public class ShowRSS : BaseWebIndexer
|
public class ShowRSS : BaseWebIndexer
|
||||||
{
|
{
|
||||||
private string SearchAllUrl => SiteLink + "other/all.rss";
|
private string SearchAllUrl => SiteLink + "other/all.rss";
|
||||||
public override string[] LegacySiteLinks { get; protected set; } = new string[] {
|
public override string[] LegacySiteLinks { get; protected set; } = {
|
||||||
"http://showrss.info/",
|
"http://showrss.info/",
|
||||||
};
|
};
|
||||||
|
|
||||||
private new ConfigurationData configData
|
private new ConfigurationData configData => base.configData;
|
||||||
{
|
|
||||||
get => base.configData;
|
|
||||||
set => base.configData = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ShowRSS(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps)
|
public ShowRSS(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps)
|
||||||
: base(id: "showrss",
|
: base(id: "showrss",
|
||||||
@@ -64,7 +60,7 @@ namespace Jackett.Common.Indexers
|
|||||||
{
|
{
|
||||||
var releases = new List<ReleaseInfo>();
|
var releases = new List<ReleaseInfo>();
|
||||||
var episodeSearchUrl = string.Format(SearchAllUrl);
|
var episodeSearchUrl = string.Format(SearchAllUrl);
|
||||||
var result = await RequestStringWithCookiesAndRetry(episodeSearchUrl, string.Empty);
|
var result = await RequestStringWithCookiesAndRetry(episodeSearchUrl);
|
||||||
var xmlDoc = new XmlDocument();
|
var xmlDoc = new XmlDocument();
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -97,13 +93,12 @@ namespace Jackett.Common.Indexers
|
|||||||
PublishDate = publishDate,
|
PublishDate = publishDate,
|
||||||
Description = infoHash,
|
Description = infoHash,
|
||||||
InfoHash = infoHash,
|
InfoHash = infoHash,
|
||||||
|
MagnetUri = magnetUri,
|
||||||
Size = 0,
|
Size = 0,
|
||||||
//TODO fix seeder/peer counts if available
|
|
||||||
Seeders = 1,
|
Seeders = 1,
|
||||||
Peers = 1,
|
Peers = 2,
|
||||||
DownloadVolumeFactor = 0,
|
DownloadVolumeFactor = 0,
|
||||||
UploadVolumeFactor = 1,
|
UploadVolumeFactor = 1
|
||||||
MagnetUri = magnetUri
|
|
||||||
};
|
};
|
||||||
releases.Add(release);
|
releases.Add(release);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user