From 0489ab1115ccc0963164a1b7930f0f2a935eac34 Mon Sep 17 00:00:00 2001 From: Roger Far Date: Mon, 15 Mar 2021 08:33:23 -0600 Subject: [PATCH] Fixed issue with downloads being added prematurely when the torrent is in the Processing state. --- server/RdtClient.Service/Services/TorrentRunner.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/RdtClient.Service/Services/TorrentRunner.cs b/server/RdtClient.Service/Services/TorrentRunner.cs index 16ca179..31efb81 100644 --- a/server/RdtClient.Service/Services/TorrentRunner.cs +++ b/server/RdtClient.Service/Services/TorrentRunner.cs @@ -335,7 +335,8 @@ namespace RdtClient.Service.Services } // RealDebrid is waiting for file selection, select which files to download. - if (torrent.RdStatus == RealDebridStatus.WaitingForFileSelection || torrent.Downloads.Count == 0) + if (torrent.RdStatus == RealDebridStatus.WaitingForFileSelection || + (torrent.RdStatus == RealDebridStatus.Finished && torrent.Downloads.Count == 0)) { Log.Debug($"Torrent {torrent.RdId} selecting files");