Fixed: (RetroFlix) Urls built with double slash

Fixes #1188
Closes #1192
pull/946/head
Qstick 2 years ago
parent 2805c4f18b
commit 9e37f69224

@ -9,7 +9,7 @@ namespace NzbDrone.Core.Indexers.Definitions
{ {
public override string Name => "SpeedApp.io"; public override string Name => "SpeedApp.io";
public override string[] IndexerUrls => new string[] { "https://speedapp.io" }; public override string[] IndexerUrls => new string[] { "https://speedapp.io/" };
public override string Description => "SpeedApp is a ROMANIAN Private Torrent Tracker for MOVIES / TV / GENERAL"; public override string Description => "SpeedApp is a ROMANIAN Private Torrent Tracker for MOVIES / TV / GENERAL";

@ -28,9 +28,7 @@ namespace NzbDrone.Core.Indexers.Definitions
{ {
public abstract class SpeedAppBase : TorrentIndexerBase<SpeedAppSettings> public abstract class SpeedAppBase : TorrentIndexerBase<SpeedAppSettings>
{ {
private string ApiUrl => $"{Settings.BaseUrl}/api"; private string LoginUrl => Settings.BaseUrl + "api/login";
private string LoginUrl => $"{ApiUrl}/login";
public override Encoding Encoding => Encoding.UTF8; public override Encoding Encoding => Encoding.UTF8;
@ -262,7 +260,7 @@ namespace NzbDrone.Core.Indexers.Definitions
} }
} }
var searchUrl = Settings.BaseUrl + "/api/torrent?" + qc.GetQueryString(duplicateKeysIfMulti: true); var searchUrl = Settings.BaseUrl + "api/torrent?" + qc.GetQueryString(duplicateKeysIfMulti: true);
var request = new IndexerRequest(searchUrl, HttpAccept.Json); var request = new IndexerRequest(searchUrl, HttpAccept.Json);

Loading…
Cancel
Save