Run the torrent complete before deleting the torrent.
This commit is contained in:
parent
95574847e9
commit
12eefa028b
1 changed files with 9 additions and 9 deletions
|
|
@ -530,6 +530,15 @@ public class TorrentRunner
|
||||||
|
|
||||||
await _torrents.UpdateComplete(torrent.TorrentId, null, DateTimeOffset.UtcNow, true);
|
await _torrents.UpdateComplete(torrent.TorrentId, null, DateTimeOffset.UtcNow, true);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
await _torrents.RunTorrentComplete(torrent.TorrentId);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.LogError(ex.Message, "Unable to run post process: {Message}", ex.Message);
|
||||||
|
}
|
||||||
|
|
||||||
if (torrent.DownloadClient == Data.Enums.DownloadClient.Symlink)
|
if (torrent.DownloadClient == Data.Enums.DownloadClient.Symlink)
|
||||||
{
|
{
|
||||||
torrent.FinishedAction = torrent.FinishedAction switch
|
torrent.FinishedAction = torrent.FinishedAction switch
|
||||||
|
|
@ -566,15 +575,6 @@ public class TorrentRunner
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
await _torrents.RunTorrentComplete(torrent.TorrentId);
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
_logger.LogError(ex.Message, "Unable to run post process: {Message}", ex.Message);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue