fixed content blocker crashing on empty download id (#8)

This commit is contained in:
Marius Nechifor
2024-11-19 23:02:43 +02:00
committed by GitHub
parent 65b8a7f988
commit beea640d49
@@ -77,6 +77,12 @@ public sealed class ContentBlocker : IDisposable
{
foreach (QueueRecord record in items)
{
if (string.IsNullOrEmpty(record.DownloadId))
{
_logger.LogDebug("skip | download id is null for {title}", record.Title);
continue;
}
_logger.LogDebug("searching unwanted files for {title}", record.Title);
await _downloadService.BlockUnwantedFilesAsync(record.DownloadId);
}