From d4de7f2ec3d21938cadb3cea151e49a3df724949 Mon Sep 17 00:00:00 2001 From: Flaminel Date: Fri, 27 Jun 2025 19:12:48 +0300 Subject: [PATCH] Fix old category being the same as the new category when handling unlinked downloads (#172) --- .../Features/DownloadClient/QBittorrent/QBitServiceDC.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/backend/Cleanuparr.Infrastructure/Features/DownloadClient/QBittorrent/QBitServiceDC.cs b/code/backend/Cleanuparr.Infrastructure/Features/DownloadClient/QBittorrent/QBitServiceDC.cs index eb929b17..6bee5794 100644 --- a/code/backend/Cleanuparr.Infrastructure/Features/DownloadClient/QBittorrent/QBitServiceDC.cs +++ b/code/backend/Cleanuparr.Infrastructure/Features/DownloadClient/QBittorrent/QBitServiceDC.cs @@ -238,6 +238,8 @@ public partial class QBitService } await _dryRunInterceptor.InterceptAsync(ChangeCategory, download.Hash, downloadCleanerConfig.UnlinkedTargetCategory); + + await _eventPublisher.PublishCategoryChanged(download.Category, downloadCleanerConfig.UnlinkedTargetCategory, downloadCleanerConfig.UnlinkedUseTag); if (downloadCleanerConfig.UnlinkedUseTag) { @@ -248,8 +250,6 @@ public partial class QBitService _logger.LogInformation("category changed for {name}", download.Name); download.Category = downloadCleanerConfig.UnlinkedTargetCategory; } - - await _eventPublisher.PublishCategoryChanged(download.Category, downloadCleanerConfig.UnlinkedTargetCategory, downloadCleanerConfig.UnlinkedUseTag); } }