|
|
@ -70,21 +70,21 @@ namespace NzbDrone.Core.Indexers.HDBits
|
|
|
|
return torrentInfos.ToArray();
|
|
|
|
return torrentInfos.ToArray();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private string GetDownloadUrl(long torrentId)
|
|
|
|
private string GetDownloadUrl(string torrentId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var url = new HttpUri(_settings.BaseUrl)
|
|
|
|
var url = new HttpUri(_settings.BaseUrl)
|
|
|
|
.CombinePath("/download.php")
|
|
|
|
.CombinePath("/download.php")
|
|
|
|
.AddQueryParam("id", torrentId.ToString())
|
|
|
|
.AddQueryParam("id", torrentId)
|
|
|
|
.AddQueryParam("passkey", _settings.ApiKey);
|
|
|
|
.AddQueryParam("passkey", _settings.ApiKey);
|
|
|
|
|
|
|
|
|
|
|
|
return url.FullUri;
|
|
|
|
return url.FullUri;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private string GetInfoUrl(long torrentId)
|
|
|
|
private string GetInfoUrl(string torrentId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var url = new HttpUri(_settings.BaseUrl)
|
|
|
|
var url = new HttpUri(_settings.BaseUrl)
|
|
|
|
.CombinePath("/details.php")
|
|
|
|
.CombinePath("/details.php")
|
|
|
|
.AddQueryParam("id", torrentId.ToString());
|
|
|
|
.AddQueryParam("id", torrentId);
|
|
|
|
|
|
|
|
|
|
|
|
return url.FullUri;
|
|
|
|
return url.FullUri;
|
|
|
|
|
|
|
|
|
|
|
|