mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 08:34:28 +01:00
Fixed: Allow Redirects on Newznab Search Requests (Fixes DS)
This commit is contained in:
parent
dd1ced2d5e
commit
9d06a29062
3 changed files with 5 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ public class Newznab : HttpIndexerBase<NewznabSettings>
|
|||
|
||||
public override string Name => "Newznab";
|
||||
public override string BaseUrl => Settings.BaseUrl;
|
||||
public override bool FollowRedirect => true;
|
||||
|
||||
public override DownloadProtocol Protocol => DownloadProtocol.Usenet;
|
||||
public override IndexerPrivacy Privacy => IndexerPrivacy.Private;
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ public abstract class HttpIndexerBase<TSettings> : IndexerBase<TSettings>
|
|||
|
||||
public override bool SupportsRss => true;
|
||||
public override bool SupportsSearch => true;
|
||||
|
||||
public override bool FollowRedirect => false;
|
||||
public override IndexerCapabilities Capabilities { get; protected set; }
|
||||
public virtual int PageSize => 0;
|
||||
public virtual TimeSpan RateLimit => TimeSpan.FromSeconds(2);
|
||||
|
|
@ -397,7 +399,7 @@ protected virtual IndexerResponse FetchIndexerResponse(IndexerRequest request)
|
|||
request.HttpRequest.RateLimit = RateLimit;
|
||||
}
|
||||
|
||||
request.HttpRequest.AllowAutoRedirect = false;
|
||||
request.HttpRequest.AllowAutoRedirect = FollowRedirect;
|
||||
|
||||
Cookies = GetCookies();
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ public abstract class IndexerBase<TSettings> : IIndexer
|
|||
|
||||
public abstract string Name { get; }
|
||||
public abstract string BaseUrl { get; }
|
||||
public abstract bool FollowRedirect { get; }
|
||||
public abstract DownloadProtocol Protocol { get; }
|
||||
public abstract IndexerPrivacy Privacy { get; }
|
||||
public int Priority { get; set; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue