Merge pull request #1087 from tidusjar/dev

Fixed #1083
pull/1186/head
Jamie 8 years ago committed by GitHub
commit 4ce93d3fe0

@ -299,8 +299,18 @@ namespace Ombi.UI.Modules
return r.path;
}
int outRoot;
var defaultPath = int.TryParse(sonarrSettings.RootPath, out outRoot);
if (defaultPath)
{
// Return default path
return rootFoldersResult.FirstOrDefault(x => x.id.Equals(int.Parse(sonarrSettings.RootPath)))?.path ?? string.Empty;
return rootFoldersResult.FirstOrDefault(x => x.id.Equals(outRoot)?.path ?? string.Empty;
}
else
{
return rootFoldersResult.FirstOrDefault()?.path ?? string.Empty;
}
}
private async Task<Response> GetAlbumRequests()

Loading…
Cancel
Save