From bb77538701d40f717accb41fab69084c6538922e Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 1 May 2023 07:57:42 +0300 Subject: [PATCH] Fix checking for SameTorrent when the indexer is null (cherry picked from commit 3ece1533d86c559ec1bf7689c908802f31e38e91) --- src/NzbDrone.Core/Blocklisting/BlocklistService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Blocklisting/BlocklistService.cs b/src/NzbDrone.Core/Blocklisting/BlocklistService.cs index 419e89cf6..7568b38fc 100644 --- a/src/NzbDrone.Core/Blocklisting/BlocklistService.cs +++ b/src/NzbDrone.Core/Blocklisting/BlocklistService.cs @@ -131,7 +131,7 @@ private bool SameTorrent(Blocklist item, TorrentInfo release) return release.InfoHash.Equals(item.TorrentInfoHash); } - return item.Indexer.Equals(release.Indexer, StringComparison.InvariantCultureIgnoreCase); + return HasSameIndexer(item, release.Indexer); } private bool HasSameIndexer(Blocklist item, string indexer)