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.
This commit is contained in:
Cucumberrbob 2025-03-03 12:22:02 +00:00
parent 765a5b0543
commit d40e686845
No known key found for this signature in database
GPG key ID: 2B935C47401C3614

View file

@ -260,25 +260,7 @@ public class DebridLinkClient(ILogger<DebridLinkClient> 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<TorrentClientTorrent> GetInfo(String torrentId)