From 0758d84a61808bc1410bfc32fab743d28484448a Mon Sep 17 00:00:00 2001 From: Matt Montgomery <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Wed, 25 Nov 2020 16:54:16 -0600 Subject: [PATCH] Test query value --- Emby.Server.Implementations/Data/SqliteItemRepository.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs index 7e01bd4b6..95ffa48f5 100644 --- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs +++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs @@ -4517,17 +4517,17 @@ namespace Emby.Server.Implementations.Data } } - if (query.HasImdbId.HasValue) + if (query.HasImdbId.HasValue && query.HasImdbId.Value) { whereClauses.Add("ProviderIds like '%imdb=%'"); } - if (query.HasTmdbId.HasValue) + if (query.HasTmdbId.HasValue && query.HasTmdbId.Value) { whereClauses.Add("ProviderIds like '%tmdb=%'"); } - if (query.HasTvdbId.HasValue) + if (query.HasTvdbId.HasValue && query.HasTvdbId.Value) { whereClauses.Add("ProviderIds like '%tvdb=%'"); }