mirror of
https://github.com/Readarr/Readarr
synced 2025-12-28 19:22:57 +01:00
Fixed: Handle missing category when getting Qbittorrent download path
[common] Fixes READARR-2VR Fixes READARR-1GP
This commit is contained in:
parent
c0e193dd1f
commit
6f97ca9a55
1 changed files with 1 additions and 3 deletions
|
|
@ -366,9 +366,7 @@ public override DownloadClientInfo GetStatus()
|
|||
|
||||
if (Settings.MusicCategory.IsNotNullOrWhiteSpace() && version >= Version.Parse("2.0"))
|
||||
{
|
||||
var label = Proxy.GetLabels(Settings)[Settings.MusicCategory];
|
||||
|
||||
if (label.SavePath.IsNotNullOrWhiteSpace())
|
||||
if (Proxy.GetLabels(Settings).TryGetValue(Settings.MusicCategory, out var label) && label.SavePath.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
var labelDir = new OsPath(label.SavePath);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue