From d40e6868459f1b9149cb2f9bb6356e7d4006f88d Mon Sep 17 00:00:00 2001 From: Cucumberrbob <128094686+Cucumberrbob@users.noreply.github.com> Date: Mon, 3 Mar 2025 12:22:02 +0000 Subject: [PATCH] Remove logic in DLTorrentClient erroneously copied from RDTorrentClient This code handled the RD-specific behaviour of choosing which files to download, and only getting those links from the API, rather than what DL does: downloading all files and having the api consumer pick which links they want to download. --- .../TorrentClients/DebridLinkTorrentClient.cs | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/server/RdtClient.Service/Services/TorrentClients/DebridLinkTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/DebridLinkTorrentClient.cs index 0b12605..a4c4026 100644 --- a/server/RdtClient.Service/Services/TorrentClients/DebridLinkTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/DebridLinkTorrentClient.cs @@ -260,25 +260,7 @@ public class DebridLinkClient(ILogger logger, IHttpClientFacto Log($"{link}", torrent); } - // Check if all the links are set that have been selected - if (torrent.Files.Count(m => m.Selected) == downloadLinks.Count) - { - return downloadLinks; - } - - // Check if all all the links are set for manual selection - if (torrent.ManualFiles.Count == downloadLinks.Count) - { - return downloadLinks; - } - - // If there is only 1 link, delay for 1 minute to see if more links pop up. - if (downloadLinks.Count == 1 && torrent.RdEnded.HasValue && DateTime.UtcNow > torrent.RdEnded.Value.ToUniversalTime().AddMinutes(1)) - { - return downloadLinks; - } - - return null; + return downloadLinks; } private async Task GetInfo(String torrentId)