Test query value

This commit is contained in:
Matt Montgomery 2020-11-25 16:54:16 -06:00
parent 79f197938d
commit 0758d84a61

View File

@ -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=%'");
}