Change delete behaviour for the QBittorrent Delete endpoint.
Some checks failed
Docker Image CI / build (push) Has been cancelled
Some checks failed
Docker Image CI / build (push) Has been cancelled
This commit is contained in:
parent
eef7267390
commit
99a29ca6a8
5 changed files with 18 additions and 7 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
<a class="navbar-item" routerLink="profile"> Profile </a>
|
||||
<a class="navbar-item" (click)="logout()"> Logout </a>
|
||||
<hr class="navbar-divider" />
|
||||
<a href="https://github.com/rogerfar/rdt-client" target="_blank" class="navbar-item">Version 2.0.62</a>
|
||||
<a href="https://github.com/rogerfar/rdt-client" target="_blank" class="navbar-item">Version 2.0.63</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<TargetFramework>net8.0</TargetFramework>
|
||||
<OutputType>Exe</OutputType>
|
||||
<UserSecretsId>94c24cba-f03f-4453-a671-3640b517c573</UserSecretsId>
|
||||
<Version>2.0.62</Version>
|
||||
<Version>2.0.63</Version>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<LangVersion>latest</LangVersion>
|
||||
|
|
|
|||
Loading…
Reference in a new issue