diff --git a/client/src/app/add-new-torrent/add-new-torrent.component.html b/client/src/app/add-new-torrent/add-new-torrent.component.html index c40b9a9..1c2142e 100644 --- a/client/src/app/add-new-torrent/add-new-torrent.component.html +++ b/client/src/app/add-new-torrent/add-new-torrent.component.html @@ -90,6 +90,7 @@ + diff --git a/client/src/app/torrent/torrent.component.html b/client/src/app/torrent/torrent.component.html index 776fd54..9ebc9af 100644 --- a/client/src/app/torrent/torrent.component.html +++ b/client/src/app/torrent/torrent.component.html @@ -67,6 +67,7 @@ Do nothing Remove torrent from Real-Debrid and Real-Debrid Client Remove torrent from Real-Debrid + Remove torrent from client
diff --git a/server/RdtClient.Data/Enums/TorrentFinishedAction.cs b/server/RdtClient.Data/Enums/TorrentFinishedAction.cs index efaf448..e610af5 100644 --- a/server/RdtClient.Data/Enums/TorrentFinishedAction.cs +++ b/server/RdtClient.Data/Enums/TorrentFinishedAction.cs @@ -11,5 +11,8 @@ public enum TorrentFinishedAction RemoveAllTorrents = 1, [Description("Remove Torrent From Provider")] - RemoveRealDebrid = 2 + RemoveRealDebrid = 2, + + [Description("Remove Torrent From Client")] + RemoveClient = 3 } \ No newline at end of file diff --git a/server/RdtClient.Service/Services/TorrentRunner.cs b/server/RdtClient.Service/Services/TorrentRunner.cs index 83b222c..c1dba8f 100644 --- a/server/RdtClient.Service/Services/TorrentRunner.cs +++ b/server/RdtClient.Service/Services/TorrentRunner.cs @@ -527,6 +527,11 @@ public class TorrentRunner Log($"Removing torrents from Real-Debrid, no files", torrent); await _torrents.Delete(torrent.TorrentId, false, true, false); + break; + case TorrentFinishedAction.RemoveClient: + Log($"Removing torrents from client, no files", torrent); + await _torrents.Delete(torrent.TorrentId, true, false, false); + break; case TorrentFinishedAction.None: Log($"Not removing torrents or files", torrent);