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

@ -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
};