[PM] Return empty list, not null when all files filtered out in GetDownloadLinks

This commit is contained in:
Cucumberrbob 2025-04-09 10:41:50 +01:00
parent 3f4fb6d20a
commit 84d144ed7b
No known key found for this signature in database
GPG key ID: 2B935C47401C3614

View file

@ -228,13 +228,6 @@ public class PremiumizeTorrentClient(ILogger<PremiumizeTorrentClient> 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);