mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Require ApiKey for all actions in SonarrImport
(cherry picked from commit 19b8fbe13bf584b915a05fe9fc87622adbaee0b7) Closes #3798
This commit is contained in:
parent
e4341a1b60
commit
75862028a2
1 changed files with 17 additions and 19 deletions
|
@ -128,13 +128,11 @@ namespace NzbDrone.Core.ImportLists.Lidarr
|
|||
|
||||
if (action == "getRootFolders")
|
||||
{
|
||||
Settings.Validate().Filter("ApiKey").ThrowOnError();
|
||||
|
||||
var remoteRootfolders = _lidarrV1Proxy.GetRootFolders(Settings);
|
||||
var remoteRootFolders = _lidarrV1Proxy.GetRootFolders(Settings);
|
||||
|
||||
return new
|
||||
{
|
||||
options = remoteRootfolders.OrderBy(d => d.Path, StringComparer.InvariantCultureIgnoreCase)
|
||||
options = remoteRootFolders.OrderBy(d => d.Path, StringComparer.InvariantCultureIgnoreCase)
|
||||
.Select(d => new
|
||||
{
|
||||
value = d.Path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue