mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fixed: Handle missing category when getting Qbittorrent download path
Fixes LIDARR-24B Fixes LIDARR-2PM Fixes LIDARR-55T (cherry picked from commit 6f97ca9a55471386454457ca52b93733e18e85e4) Co-authored-by: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
parent
6883356e28
commit
68bfc51116
1 changed files with 1 additions and 3 deletions
|
@ -366,9 +366,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
|
||||||
|
|
||||||
if (Settings.MusicCategory.IsNotNullOrWhiteSpace() && version >= Version.Parse("2.0"))
|
if (Settings.MusicCategory.IsNotNullOrWhiteSpace() && version >= Version.Parse("2.0"))
|
||||||
{
|
{
|
||||||
var label = Proxy.GetLabels(Settings)[Settings.MusicCategory];
|
if (Proxy.GetLabels(Settings).TryGetValue(Settings.MusicCategory, out var label) && label.SavePath.IsNotNullOrWhiteSpace())
|
||||||
|
|
||||||
if (label.SavePath.IsNotNullOrWhiteSpace())
|
|
||||||
{
|
{
|
||||||
var labelDir = new OsPath(label.SavePath);
|
var labelDir = new OsPath(label.SavePath);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue