Compare commits

...

1 Commits

Author SHA1 Message Date
Marius Nechifor
beea640d49 fixed content blocker crashing on empty download id (#8) 2024-11-19 23:02:43 +02:00

View File

@@ -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);
}