fixed some logs; updated test files; fixed deluge not working after fresh start

This commit is contained in:
Flaminel
2025-03-26 20:48:28 +02:00
parent ac086fcd47
commit 1a89822bad
5 changed files with 16 additions and 11 deletions
@@ -43,6 +43,11 @@ public sealed class DelugeClient
return await SendRequest<bool>("auth.login", _config.Password);
}
public async Task ListMethodsAsync()
{
await SendRequest<object>("system.listMethods");
}
public async Task<bool> Logout()
{
return await SendRequest<bool>("auth.delete_session");
@@ -49,6 +49,7 @@ public class DelugeService : DownloadService, IDelugeService
public override async Task LoginAsync()
{
await _client.LoginAsync();
await _client.ListMethodsAsync();
}
/// <inheritdoc/>
@@ -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;
}
@@ -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;
}