Fixed: (Orpheus) Use default Gazelle download links

pull/270/head
Qstick 4 years ago
parent ae00c3aa6b
commit b6238f469c

@ -2,7 +2,6 @@ using System.Collections.Generic;
using NLog;
using NzbDrone.Common.Http;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.Indexers.Gazelle;
using NzbDrone.Core.Messaging.Events;
namespace NzbDrone.Core.Indexers.Definitions
@ -50,29 +49,5 @@ namespace NzbDrone.Core.Indexers.Definitions
return caps;
}
public override IParseIndexerResponse GetParser()
{
return new OrpheusParser(Settings, Capabilities, BaseUrl);
}
}
public class OrpheusParser : GazelleParser
{
public OrpheusParser(GazelleSettings settings, IndexerCapabilities capabilities, string baseUrl)
: base(settings, capabilities, baseUrl)
{
}
protected override string GetDownloadUrl(int torrentId)
{
var url = new HttpUri(_baseUrl)
.CombinePath("/ajax.php")
.AddQueryParam("action", "download")
.AddQueryParam("useToken", _settings.UseFreeleechToken ? "1" : "0")
.AddQueryParam("id", torrentId);
return url.FullUri;
}
}
}

Loading…
Cancel
Save