diff --git a/CHANGELOG.md b/CHANGELOG.md
index 17427e8..c58a2cd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [2.0.63] - 2024-03-05
+### Changed
+- When Sonarr/Radarr requests a torrent to be deleted, and its files too, then delete those files instead of ingoring it.
+
## [2.0.62] - 2024-02-17
### Changed
- Fixed reporting a torrent as error when some downloads have failed but still need to be retried.
diff --git a/client/src/app/navbar/navbar.component.html b/client/src/app/navbar/navbar.component.html
index 8d0b002..12a6f34 100644
--- a/client/src/app/navbar/navbar.component.html
+++ b/client/src/app/navbar/navbar.component.html
@@ -55,7 +55,7 @@
Profile
Logout
- Version 2.0.62
+ Version 2.0.63
diff --git a/package.json b/package.json
index fc6958a..ee94b47 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "rdt-client",
- "version": "2.0.62",
+ "version": "2.0.63",
"description": "This is a web interface to manage your torrents on Real-Debrid.",
"main": "index.js",
"dependencies": {
diff --git a/server/RdtClient.Service/Services/QBittorrent.cs b/server/RdtClient.Service/Services/QBittorrent.cs
index e82bd1f..e01d360 100644
--- a/server/RdtClient.Service/Services/QBittorrent.cs
+++ b/server/RdtClient.Service/Services/QBittorrent.cs
@@ -398,7 +398,14 @@ public class QBittorrent
public async Task TorrentsDelete(String hash, Boolean deleteFiles)
{
- _logger.LogDebug($"Delete {hash}");
+ if (deleteFiles)
+ {
+ _logger.LogDebug($"Delete {hash}, with files");
+ }
+ else
+ {
+ _logger.LogDebug($"Delete {hash}, no files");
+ }
var torrent = await _torrents.GetByHash(hash);
@@ -411,17 +418,17 @@ public class QBittorrent
{
case TorrentFinishedAction.RemoveAllTorrents:
_logger.LogDebug("Removing torrents from debrid provider and RDT-Client, no files");
- await _torrents.Delete(torrent.TorrentId, true, true, false);
+ await _torrents.Delete(torrent.TorrentId, true, true, deleteFiles);
break;
case TorrentFinishedAction.RemoveRealDebrid:
_logger.LogDebug("Removing torrents from debrid provider, no files");
- await _torrents.Delete(torrent.TorrentId, false, true, false);
+ await _torrents.Delete(torrent.TorrentId, false, true, deleteFiles);
break;
case TorrentFinishedAction.RemoveClient:
_logger.LogDebug("Removing torrents from client, no files");
- await _torrents.Delete(torrent.TorrentId, true, false, false);
+ await _torrents.Delete(torrent.TorrentId, true, false, deleteFiles);
break;
case TorrentFinishedAction.None:
diff --git a/server/RdtClient.Web/RdtClient.Web.csproj b/server/RdtClient.Web/RdtClient.Web.csproj
index c5ff0d3..05cc1cb 100644
--- a/server/RdtClient.Web/RdtClient.Web.csproj
+++ b/server/RdtClient.Web/RdtClient.Web.csproj
@@ -4,7 +4,7 @@
net8.0
Exe
94c24cba-f03f-4453-a671-3640b517c573
- 2.0.62
+ 2.0.63
enable
enable
latest