mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-08 06:00:50 -07:00
Fixed #1083
This commit is contained in:
parent
972f1cea3c
commit
0145c116f1
1 changed files with 12 additions and 2 deletions
|
@ -299,8 +299,18 @@ namespace Ombi.UI.Modules
|
|||
return r.path;
|
||||
}
|
||||
|
||||
// Return default path
|
||||
return rootFoldersResult.FirstOrDefault(x => x.id.Equals(int.Parse(sonarrSettings.RootPath)))?.path ?? string.Empty;
|
||||
int outRoot;
|
||||
var defaultPath = int.TryParse(sonarrSettings.RootPath, out outRoot);
|
||||
|
||||
if (defaultPath)
|
||||
{
|
||||
// Return default path
|
||||
return rootFoldersResult.FirstOrDefault(x => x.id.Equals(outRoot)?.path ?? string.Empty;
|
||||
}
|
||||
else
|
||||
{
|
||||
return rootFoldersResult.FirstOrDefault()?.path ?? string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
private async Task<Response> GetAlbumRequests()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue