Fixed issue with downloads being added prematurely when the torrent is in the Processing state.

This commit is contained in:
Roger Far 2021-03-15 08:33:23 -06:00
parent 8817d8df3b
commit 0489ab1115

View file

@ -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");