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