1
0
Fork 0
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:
Diego Heras 2020-05-16 01:36:55 +02:00 committed by GitHub
parent 7b9aea89cb
commit e00861b9ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}