Fix error from merge from upstream, fix error on processing

This commit is contained in:
Sam Heinz 2024-09-09 22:41:20 +10:00
parent 6bac21b426
commit 446b1c0180
5 changed files with 4 additions and 5 deletions

View file

@ -123,7 +123,7 @@ http://127.0.0.1:6800/jsonrpc.")]
[DisplayName("Aria2c Secret (only used for the Aria2c Downloader)")]
[Description("The secret of your Aria2c instance. Optional.")]
public String Aria2cSecret { get; set; } = "mysecret123";
[DisplayName("Aria2c Download Path")]
[Description("The root path to download the file to on the Aria2c host, if empty use the Download path setting.")]
public String? Aria2cDownloadPath { get; set; } = null;

View file

@ -65,8 +65,6 @@ public static class DownloadHelper
var filePath = Path.Combine(torrentPath, fileName);
Console.WriteLine($"FILEPATH HERE {filePath}");
return filePath;
}

View file

@ -22,7 +22,7 @@
<PackageReference Include="Serilog" Version="4.0.1" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
<PackageReference Include="SharpCompress" Version="0.38.0" />
<PackageReference Include="TorBox.NET" Version="1.0.0.40" />
<PackageReference Include="TorBox.NET" Version="1.0.0.42" />
</ItemGroup>
<ItemGroup>

View file

@ -43,7 +43,7 @@ public class DownloadClient(Download download, Torrent torrent, String destinati
if (Type != Data.Enums.DownloadClient.Symlink)
{
await FileHelper.Delete(filePath);
await FileHelper.Delete(filePath.Result!);
}
Downloader = Type switch

View file

@ -270,6 +270,7 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
"uploading (no peers)" => TorrentStatus.Downloading,
"stalled" => TorrentStatus.Downloading,
"stalled (no seeds)" => TorrentStatus.Downloading,
"processing" => TorrentStatus.Downloading,
"cached" => TorrentStatus.Finished,
_ => TorrentStatus.Error
};