[PM] Return empty list, not null when all files filtered out in GetDownloadLinks
This commit is contained in:
parent
3f4fb6d20a
commit
84d144ed7b
1 changed files with 0 additions and 7 deletions
|
|
@ -228,13 +228,6 @@ public class PremiumizeTorrentClient(ILogger<PremiumizeTorrentClient> logger, IH
|
||||||
downloadLinks.Add(file.Link);
|
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)
|
foreach (var link in downloadLinks)
|
||||||
{
|
{
|
||||||
Log($"Found {link}", torrent);
|
Log($"Found {link}", torrent);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue