fixed some logs; updated test files; fixed deluge not working after fresh start
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user