From 9f3eecb2a93e24800cb36669e46038c05558aed8 Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 23 Sep 2022 21:34:10 -0500 Subject: [PATCH] Fixed: Ignore Movies with null tags when pulling AllMovieTags --- src/NzbDrone.Core/Movies/MovieRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Movies/MovieRepository.cs b/src/NzbDrone.Core/Movies/MovieRepository.cs index 5d3acbacd..e809c0f67 100644 --- a/src/NzbDrone.Core/Movies/MovieRepository.cs +++ b/src/NzbDrone.Core/Movies/MovieRepository.cs @@ -311,7 +311,7 @@ public Dictionary> AllMovieTags() { using (var conn = _database.OpenConnection()) { - var strSql = "SELECT \"Id\" AS \"Key\", \"Tags\" AS \"Value\" FROM \"Movies\""; + var strSql = "SELECT \"Id\" AS \"Key\", \"Tags\" AS \"Value\" FROM \"Movies\" WHERE \"Value\" IS NOT NUlL"; return conn.Query>>(strSql).ToDictionary(x => x.Key, x => x.Value); } }