|
|
@ -11,6 +11,7 @@ namespace NzbDrone.Core.Indexers.FileList
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public string BaseUrl { get; set; }
|
|
|
|
public string BaseUrl { get; set; }
|
|
|
|
public FileListSettings Settings { get; set; }
|
|
|
|
public FileListSettings Settings { get; set; }
|
|
|
|
|
|
|
|
public IndexerCapabilities Capabilities { get; set; }
|
|
|
|
public Func<IDictionary<string, string>> GetCookies { get; set; }
|
|
|
|
public Func<IDictionary<string, string>> GetCookies { get; set; }
|
|
|
|
public Action<IDictionary<string, string>, DateTime?> CookiesUpdater { get; set; }
|
|
|
|
public Action<IDictionary<string, string>, DateTime?> CookiesUpdater { get; set; }
|
|
|
|
|
|
|
|
|
|
|
@ -106,7 +107,7 @@ namespace NzbDrone.Core.Indexers.FileList
|
|
|
|
|
|
|
|
|
|
|
|
private IEnumerable<IndexerRequest> GetRequest(string searchType, int[] categories, string parameters)
|
|
|
|
private IEnumerable<IndexerRequest> GetRequest(string searchType, int[] categories, string parameters)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var categoriesQuery = string.Join(",", categories.Distinct());
|
|
|
|
var categoriesQuery = string.Join(",", Capabilities.Categories.MapTorznabCapsToTrackers(categories));
|
|
|
|
|
|
|
|
|
|
|
|
var baseUrl = string.Format("{0}/api.php?action={1}&category={2}&username={3}&passkey={4}{5}", BaseUrl.TrimEnd('/'), searchType, categoriesQuery, Settings.Username.Trim(), Settings.Passkey.Trim(), parameters);
|
|
|
|
var baseUrl = string.Format("{0}/api.php?action={1}&category={2}&username={3}&passkey={4}{5}", BaseUrl.TrimEnd('/'), searchType, categoriesQuery, Settings.Username.Trim(), Settings.Passkey.Trim(), parameters);
|
|
|
|
|
|
|
|
|
|
|
|