mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-12 11:15:43 +02:00
Fixed: Handle missing category when getting Qbittorrent download path
Fixes RADARR-7HC Fixes RADARR-V49 (cherry picked from commit 6f97ca9a55471386454457ca52b93733e18e85e4) (cherry picked from commit e7a8f6332c43f179d4c95b3a8a0253a235bb6eec)
This commit is contained in:
parent
68791ea98a
commit
8c68dfb8ce
@ -367,9 +367,7 @@ public override DownloadClientInfo GetStatus()
|
||||
|
||||
if (Settings.TvCategory.IsNotNullOrWhiteSpace() && version >= Version.Parse("2.0"))
|
||||
{
|
||||
var label = Proxy.GetLabels(Settings)[Settings.TvCategory];
|
||||
|
||||
if (label.SavePath.IsNotNullOrWhiteSpace())
|
||||
if (Proxy.GetLabels(Settings).TryGetValue(Settings.TvCategory, out var label) && label.SavePath.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
var labelDir = new OsPath(label.SavePath);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user