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
|
||||
{
|
||||
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/",
|
||||
};
|
||||
|
||||
private new ConfigurationData configData
|
||||
{
|
||||
get => base.configData;
|
||||
set => base.configData = value;
|
||||
}
|
||||
private new ConfigurationData configData => base.configData;
|
||||
|
||||
public ShowRSS(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps)
|
||||
: base(id: "showrss",
|
||||
@@ -64,7 +60,7 @@ namespace Jackett.Common.Indexers
|
||||
{
|
||||
var releases = new List<ReleaseInfo>();
|
||||
var episodeSearchUrl = string.Format(SearchAllUrl);
|
||||
var result = await RequestStringWithCookiesAndRetry(episodeSearchUrl, string.Empty);
|
||||
var result = await RequestStringWithCookiesAndRetry(episodeSearchUrl);
|
||||
var xmlDoc = new XmlDocument();
|
||||
|
||||
try
|
||||
@@ -97,13 +93,12 @@ namespace Jackett.Common.Indexers
|
||||
PublishDate = publishDate,
|
||||
Description = infoHash,
|
||||
InfoHash = infoHash,
|
||||
MagnetUri = magnetUri,
|
||||
Size = 0,
|
||||
//TODO fix seeder/peer counts if available
|
||||
Seeders = 1,
|
||||
Peers = 1,
|
||||
Peers = 2,
|
||||
DownloadVolumeFactor = 0,
|
||||
UploadVolumeFactor = 1,
|
||||
MagnetUri = magnetUri
|
||||
UploadVolumeFactor = 1
|
||||
};
|
||||
releases.Add(release);
|
||||
}
|
||||
|
Reference in New Issue
Block a user