mirror of
https://github.com/Jackett/Jackett
synced 2025-01-01 12:46:23 +00:00
showrss: keep cloudflare cookie (#8675)
This commit is contained in:
parent
7b9aea89cb
commit
e00861b9ec
1 changed files with 6 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue