fix: don't autodelete queued torrents

This commit is contained in:
Cucumberrbob 2025-04-20 12:00:47 +01:00
parent a4f20fd3a4
commit 5ba630ff52
No known key found for this signature in database
GPG key ID: 2B935C47401C3614

View file

@ -523,7 +523,7 @@ public class Torrents(
{
var rdTorrent = rdTorrents.FirstOrDefault(m => m.Id == torrent.RdId);
if (rdTorrent == null && Settings.Get.Provider.AutoDelete)
if (rdTorrent == null && Settings.Get.Provider.AutoDelete && torrent.RdStatus != TorrentStatus.Queued)
{
await Delete(torrent.TorrentId, true, false, true);
}