Fix for Torznab/Jackett

pull/94/head
Qstick 7 years ago
parent 864549b1f3
commit 2938bfee2c

@ -55,6 +55,10 @@ namespace NzbDrone.Core.Indexers.Newznab
{ {
pageableRequests.Add(GetPagedRequests(MaxPages, Settings.Categories, "music", "")); pageableRequests.Add(GetPagedRequests(MaxPages, Settings.Categories, "music", ""));
} }
else if (capabilities.SupportedSearchParameters != null)
{
pageableRequests.Add(GetPagedRequests(MaxPages, Settings.Categories, "search", ""));
}
return pageableRequests; return pageableRequests;
} }

@ -94,9 +94,8 @@ namespace NzbDrone.Core.Indexers.Torznab
return null; return null;
} }
if (capabilities.SupportedTvSearchParameters != null && if (capabilities.SupportedAudioSearchParameters != null &&
new[] { "q", "tvdbid", "rid" }.Any(v => capabilities.SupportedTvSearchParameters.Contains(v)) && new[] { "artist", "album" }.All(v => capabilities.SupportedAudioSearchParameters.Contains(v)))
new[] { "season", "ep" }.All(v => capabilities.SupportedTvSearchParameters.Contains(v)))
{ {
return null; return null;
} }

Loading…
Cancel
Save