mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Allow Redirects on Newznab Search Requests (Fixes DS)
This commit is contained in:
@@ -17,6 +17,7 @@ namespace NzbDrone.Core.Indexers.Newznab
|
|||||||
|
|
||||||
public override string Name => "Newznab";
|
public override string Name => "Newznab";
|
||||||
public override string BaseUrl => Settings.BaseUrl;
|
public override string BaseUrl => Settings.BaseUrl;
|
||||||
|
public override bool FollowRedirect => true;
|
||||||
|
|
||||||
public override DownloadProtocol Protocol => DownloadProtocol.Usenet;
|
public override DownloadProtocol Protocol => DownloadProtocol.Usenet;
|
||||||
public override IndexerPrivacy Privacy => IndexerPrivacy.Private;
|
public override IndexerPrivacy Privacy => IndexerPrivacy.Private;
|
||||||
|
@@ -28,6 +28,8 @@ namespace NzbDrone.Core.Indexers
|
|||||||
|
|
||||||
public override bool SupportsRss => true;
|
public override bool SupportsRss => true;
|
||||||
public override bool SupportsSearch => true;
|
public override bool SupportsSearch => true;
|
||||||
|
|
||||||
|
public override bool FollowRedirect => false;
|
||||||
public override IndexerCapabilities Capabilities { get; protected set; }
|
public override IndexerCapabilities Capabilities { get; protected set; }
|
||||||
public virtual int PageSize => 0;
|
public virtual int PageSize => 0;
|
||||||
public virtual TimeSpan RateLimit => TimeSpan.FromSeconds(2);
|
public virtual TimeSpan RateLimit => TimeSpan.FromSeconds(2);
|
||||||
@@ -397,7 +399,7 @@ namespace NzbDrone.Core.Indexers
|
|||||||
request.HttpRequest.RateLimit = RateLimit;
|
request.HttpRequest.RateLimit = RateLimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
request.HttpRequest.AllowAutoRedirect = false;
|
request.HttpRequest.AllowAutoRedirect = FollowRedirect;
|
||||||
|
|
||||||
Cookies = GetCookies();
|
Cookies = GetCookies();
|
||||||
|
|
||||||
|
@@ -22,6 +22,7 @@ namespace NzbDrone.Core.Indexers
|
|||||||
|
|
||||||
public abstract string Name { get; }
|
public abstract string Name { get; }
|
||||||
public abstract string BaseUrl { get; }
|
public abstract string BaseUrl { get; }
|
||||||
|
public abstract bool FollowRedirect { get; }
|
||||||
public abstract DownloadProtocol Protocol { get; }
|
public abstract DownloadProtocol Protocol { get; }
|
||||||
public abstract IndexerPrivacy Privacy { get; }
|
public abstract IndexerPrivacy Privacy { get; }
|
||||||
public int Priority { get; set; }
|
public int Priority { get; set; }
|
||||||
|
Reference in New Issue
Block a user