From 84d144ed7bafb64791732e083b5d80986779d655 Mon Sep 17 00:00:00 2001 From: Cucumberrbob <128094686+Cucumberrbob@users.noreply.github.com> Date: Wed, 9 Apr 2025 10:41:50 +0100 Subject: [PATCH] [PM] Return empty list, not null when all files filtered out in `GetDownloadLinks` --- .../Services/TorrentClients/PremiumizeTorrentClient.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server/RdtClient.Service/Services/TorrentClients/PremiumizeTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/PremiumizeTorrentClient.cs index 5682002..f47dbba 100644 --- a/server/RdtClient.Service/Services/TorrentClients/PremiumizeTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/PremiumizeTorrentClient.cs @@ -228,13 +228,6 @@ public class PremiumizeTorrentClient(ILogger logger, IH downloadLinks.Add(file.Link); } - if (downloadLinks.Count == 0) - { - Log($"No download links found for transfer {transfer.Name} ({transfer.Id})", torrent); - - return null; - } - foreach (var link in downloadLinks) { Log($"Found {link}", torrent);