mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-20 18:02:44 +01:00
Fixed: Handle missing category when getting Qbittorrent download path
Fixes RADARR-7HC Fixes RADARR-V49 (cherry picked from commit 6f97ca9a55471386454457ca52b93733e18e85e4) Closes #6993
This commit is contained in:
parent
b8c92d23f4
commit
e7a8f6332c
@ -368,9 +368,7 @@ public override DownloadClientInfo GetStatus()
|
||||
|
||||
if (Settings.MovieCategory.IsNotNullOrWhiteSpace() && version >= Version.Parse("2.0"))
|
||||
{
|
||||
var label = Proxy.GetLabels(Settings)[Settings.MovieCategory];
|
||||
|
||||
if (label.SavePath.IsNotNullOrWhiteSpace())
|
||||
if (Proxy.GetLabels(Settings).TryGetValue(Settings.MovieCategory, out var label) && label.SavePath.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
var labelDir = new OsPath(label.SavePath);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user