From cbc5c571b38db9573f630d90d09e3fb7c89a3e4d Mon Sep 17 00:00:00 2001 From: Marius Nechifor Date: Tue, 19 Nov 2024 23:23:22 +0200 Subject: [PATCH] fixed missing torrent check on content blocker (#9) --- .../Verticals/ContentBlocker/ContentBlocker.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/Infrastructure/Verticals/ContentBlocker/ContentBlocker.cs b/code/Infrastructure/Verticals/ContentBlocker/ContentBlocker.cs index 3dc497d..e84b242 100644 --- a/code/Infrastructure/Verticals/ContentBlocker/ContentBlocker.cs +++ b/code/Infrastructure/Verticals/ContentBlocker/ContentBlocker.cs @@ -77,6 +77,11 @@ public sealed class ContentBlocker : IDisposable { foreach (QueueRecord record in items) { + if (record.Protocol is not "torrent") + { + continue; + } + if (string.IsNullOrEmpty(record.DownloadId)) { _logger.LogDebug("skip | download id is null for {title}", record.Title);