mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 05:47:22 -04:00
Fixed: (HDSpace) Auth failure and Name
This commit is contained in:
parent
7a5721bcee
commit
fe8247df8a
1 changed files with 4 additions and 2 deletions
|
@ -22,7 +22,7 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||
{
|
||||
public class HDSpace : TorrentIndexerBase<HDSpaceSettings>
|
||||
{
|
||||
public override string Name => "HDSpace";
|
||||
public override string Name => "HD-Space";
|
||||
public override string[] IndexerUrls => new string[] { "https://hd-space.org/" };
|
||||
private string LoginUrl => Settings.BaseUrl + "index.php?page=login";
|
||||
public override string Description => "Sharing The Universe";
|
||||
|
@ -53,7 +53,8 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||
|
||||
var requestBuilder = new HttpRequestBuilder(LoginUrl)
|
||||
{
|
||||
LogResponseContent = true
|
||||
LogResponseContent = true,
|
||||
AllowAutoRedirect = true
|
||||
};
|
||||
|
||||
requestBuilder.Method = HttpMethod.POST;
|
||||
|
@ -68,6 +69,7 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||
.AddFormParameter("pwd", Settings.Password)
|
||||
.SetCookies(loginPage.GetCookies())
|
||||
.SetHeader("Content-Type", "multipart/form-data")
|
||||
.SetHeader("Referer", LoginUrl)
|
||||
.Build();
|
||||
|
||||
var response = await ExecuteAuth(authLoginRequest);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue