Merge pull request #777 from Cucumberrbob/fix/pm-all-files-excluded

fix: [PM] `GetDownloadLinks`: return empty list not null when all files excluded
This commit is contained in:
Roger Far 2025-04-13 07:53:23 -06:00 committed by GitHub
commit 1dff00c3f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,13 +232,6 @@ public class PremiumizeTorrentClient(ILogger<PremiumizeTorrentClient> logger, IH
downloadInfos.Add(new () {RestrictedLink = file.Link, FileName = file.Name });
}
if (downloadInfos.Count == 0)
{
Log($"No download links found for transfer {transfer.Name} ({transfer.Id})", torrent);
return null;
}
foreach (var info in downloadInfos)
{
Log($"Found {info.RestrictedLink}", torrent);