diff --git a/code/Executable/appsettings.Development.json b/code/Executable/appsettings.Development.json index 2862e03..e550619 100644 --- a/code/Executable/appsettings.Development.json +++ b/code/Executable/appsettings.Development.json @@ -3,7 +3,7 @@ "HTTP_MAX_RETRIES": 0, "HTTP_TIMEOUT": 10, "Logging": { - "LogLevel": "Debug", + "LogLevel": "Verbose", "Enhanced": true, "File": { "Enabled": false, @@ -25,13 +25,13 @@ "Enabled": true, "RunSequentially": true, "IGNORED_DOWNLOADS_PATH": "../test/data/cleanuperr/ignored_downloads", - "IMPORT_FAILED_MAX_STRIKES": 5, + "IMPORT_FAILED_MAX_STRIKES": 3, "IMPORT_FAILED_IGNORE_PRIVATE": true, "IMPORT_FAILED_DELETE_PRIVATE": false, "IMPORT_FAILED_IGNORE_PATTERNS": [ "file is a sample" ], - "STALLED_MAX_STRIKES": 5, + "STALLED_MAX_STRIKES": 3, "STALLED_RESET_STRIKES_ON_PROGRESS": true, "STALLED_IGNORE_PRIVATE": true, "STALLED_DELETE_PRIVATE": false @@ -48,7 +48,7 @@ } ], "UNLINKED_TARGET_CATEGORY": "cleanuperr-unlinked", - "UNLINKED_IGNORED_ROOT_DIR": "../test/data/qbit-win", + "UNLINKED_IGNORED_ROOT_DIR": "", "UNLINKED_CATEGORIES": [ "tv-sonarr", "radarr" diff --git a/code/Infrastructure/Verticals/DownloadClient/Deluge/DelugeClient.cs b/code/Infrastructure/Verticals/DownloadClient/Deluge/DelugeClient.cs index 70275a3..0f642e0 100644 --- a/code/Infrastructure/Verticals/DownloadClient/Deluge/DelugeClient.cs +++ b/code/Infrastructure/Verticals/DownloadClient/Deluge/DelugeClient.cs @@ -43,6 +43,11 @@ public sealed class DelugeClient return await SendRequest("auth.login", _config.Password); } + public async Task ListMethodsAsync() + { + await SendRequest("system.listMethods"); + } + public async Task Logout() { return await SendRequest("auth.delete_session"); diff --git a/code/Infrastructure/Verticals/DownloadClient/Deluge/DelugeService.cs b/code/Infrastructure/Verticals/DownloadClient/Deluge/DelugeService.cs index cfdf1cb..930e14d 100644 --- a/code/Infrastructure/Verticals/DownloadClient/Deluge/DelugeService.cs +++ b/code/Infrastructure/Verticals/DownloadClient/Deluge/DelugeService.cs @@ -49,6 +49,7 @@ public class DelugeService : DownloadService, IDelugeService public override async Task LoginAsync() { await _client.LoginAsync(); + await _client.ListMethodsAsync(); } /// @@ -366,7 +367,7 @@ public class DelugeService : DownloadService, IDelugeService if (hardlinkCount < 0) { - _logger.LogDebug("skip | could not get file properties | {name}", download.Name); + _logger.LogDebug("skip | could not get file properties | {file}", filePath); hasHardlinks = true; return; } diff --git a/code/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs b/code/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs index 65b5adb..024a049 100644 --- a/code/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs +++ b/code/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs @@ -412,7 +412,7 @@ public class QBitService : DownloadService, IQBitService if (hardlinkCount < 0) { - _logger.LogDebug("skip | could not get file properties | {name}", download.Name); + _logger.LogDebug("skip | could not get file properties | {file}", filePath); hasHardlinks = true; break; } diff --git a/code/test/docker-compose.yml b/code/test/docker-compose.yml index 96dd7ec..df34fb5 100644 --- a/code/test/docker-compose.yml +++ b/code/test/docker-compose.yml @@ -217,11 +217,10 @@ services: - DOWNLOADCLEANER__CATEGORIES__1__MAX_RATIO=-1 - DOWNLOADCLEANER__CATEGORIES__1__MIN_SEED_TIME=0 - DOWNLOADCLEANER__CATEGORIES__1__MAX_SEED_TIME=99999 - - - DOWNLOADCLEANER__NO_HL_CATEGORY=nohardlink - - DOWNLOADCLEANER__NO_HL_IGNORE_ROOT_DIR=true - - DOWNLOADCLEANER__NO_HL_CATEGORIES__0=tv-sonarr - - DOWNLOADCLEANER__NO_HL_CATEGORIES__1=radarr + - DOWNLOADCLEANER__UNLINKED_TARGET_CATEGORY=cleanuperr-unlinked + - DOWNLOADCLEANER__UNLINKED_IGNORED_ROOT_DIR=/downloads + - DOWNLOADCLEANER__UNLINKED_CATEGORIES__0=tv-sonarr + - DOWNLOADCLEANER__UNLINKED_CATEGORIES__1=radarr - DOWNLOAD_CLIENT=qbittorrent - QBITTORRENT__URL=http://qbittorrent:8080