diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs index 50b55f48f..3c311452f 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs @@ -269,10 +269,30 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent public override DownloadClientInfo GetStatus() { + var version = Proxy.GetApiVersion(Settings); var config = Proxy.GetConfig(Settings); var destDir = new OsPath(config.SavePath); + if (Settings.MusicCategory.IsNotNullOrWhiteSpace() && version >= Version.Parse("2.0")) + { + var label = Proxy.GetLabels(Settings)[Settings.MusicCategory]; + + if (label.SavePath.IsNotNullOrWhiteSpace()) + { + var labelDir = new OsPath(label.SavePath); + + if (labelDir.IsRooted) + { + destDir = labelDir; + } + else + { + destDir = destDir + labelDir; + } + } + } + return new DownloadClientInfo { IsLocalhost = Settings.Host == "127.0.0.1" || Settings.Host == "localhost",