Fix error from merge from upstream, fix error on processing
This commit is contained in:
parent
6bac21b426
commit
446b1c0180
5 changed files with 4 additions and 5 deletions
|
|
@ -65,8 +65,6 @@ public static class DownloadHelper
|
||||||
|
|
||||||
var filePath = Path.Combine(torrentPath, fileName);
|
var filePath = Path.Combine(torrentPath, fileName);
|
||||||
|
|
||||||
Console.WriteLine($"FILEPATH HERE {filePath}");
|
|
||||||
|
|
||||||
return filePath;
|
return filePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
<PackageReference Include="Serilog" Version="4.0.1" />
|
<PackageReference Include="Serilog" Version="4.0.1" />
|
||||||
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
|
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
|
||||||
<PackageReference Include="SharpCompress" Version="0.38.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>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ public class DownloadClient(Download download, Torrent torrent, String destinati
|
||||||
|
|
||||||
if (Type != Data.Enums.DownloadClient.Symlink)
|
if (Type != Data.Enums.DownloadClient.Symlink)
|
||||||
{
|
{
|
||||||
await FileHelper.Delete(filePath);
|
await FileHelper.Delete(filePath.Result!);
|
||||||
}
|
}
|
||||||
|
|
||||||
Downloader = Type switch
|
Downloader = Type switch
|
||||||
|
|
|
||||||
|
|
@ -270,6 +270,7 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
|
||||||
"uploading (no peers)" => TorrentStatus.Downloading,
|
"uploading (no peers)" => TorrentStatus.Downloading,
|
||||||
"stalled" => TorrentStatus.Downloading,
|
"stalled" => TorrentStatus.Downloading,
|
||||||
"stalled (no seeds)" => TorrentStatus.Downloading,
|
"stalled (no seeds)" => TorrentStatus.Downloading,
|
||||||
|
"processing" => TorrentStatus.Downloading,
|
||||||
"cached" => TorrentStatus.Finished,
|
"cached" => TorrentStatus.Finished,
|
||||||
_ => TorrentStatus.Error
|
_ => TorrentStatus.Error
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue