From 5234f6cad307c3ea7ea5824714378aa8b4d293f8 Mon Sep 17 00:00:00 2001 From: Roger Far Date: Sat, 18 Apr 2020 12:46:39 -0600 Subject: [PATCH] Don't delete the torrent when it's finished when it comes from the QBittorrentAPI, let the caller handle deletion --- server/RdtClient.Web/Controllers/QBittorrentController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/RdtClient.Web/Controllers/QBittorrentController.cs b/server/RdtClient.Web/Controllers/QBittorrentController.cs index 4cc3a77..a5e48bc 100644 --- a/server/RdtClient.Web/Controllers/QBittorrentController.cs +++ b/server/RdtClient.Web/Controllers/QBittorrentController.cs @@ -222,7 +222,7 @@ namespace RdtClient.Web.Controllers foreach (var url in urls) { - await _qBittorrent.TorrentsAdd(url.Trim(), true, true); + await _qBittorrent.TorrentsAdd(url.Trim(), true, false); } return Ok(); @@ -242,7 +242,7 @@ namespace RdtClient.Web.Controllers await file.CopyToAsync(target); var fileBytes = target.ToArray(); - await _qBittorrent.TorrentsAddFile(fileBytes, true, true); + await _qBittorrent.TorrentsAddFile(fileBytes, true, false); } }