From f1b3a4fcf3dcbb786ab704bf7176f0d660f6e144 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 18 Jul 2024 19:59:07 +0300 Subject: [PATCH] fixup! Fixed: Assume category path from qBittorent starting with '//' is a Windows UNC path --- .../DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs | 2 +- src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs index 9c2ff8bb4..fe6abc535 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs @@ -578,7 +578,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.QBittorrentTests Mocker.GetMock() .Setup(s => s.GetLabels(It.IsAny())) .Returns(new Dictionary - { { "tv", new QBittorrentLabel { Name = "tv", SavePath = "//server/store/downloads" } } }); + { { "music", new QBittorrentLabel { Name = "music", SavePath = "//server/store/downloads" } } }); var result = Subject.GetStatus(); diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs index de21e021d..b6c56f6d8 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs @@ -379,7 +379,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent if (savePath.StartsWith("//")) { - _logger.Trace("Replacing double forward slashes in path '{0}'. If this is not meant to be a Windows UNC path fix the 'Save Path' in qBittorrent's {1} category", savePath, Settings.TvCategory); + _logger.Trace("Replacing double forward slashes in path '{0}'. If this is not meant to be a Windows UNC path fix the 'Save Path' in qBittorrent's {1} category", savePath, Settings.MusicCategory); savePath = savePath.Replace('/', '\\'); }