|
|
@ -4593,10 +4593,26 @@ namespace Emby.Server.Implementations.Data
|
|
|
|
|
|
|
|
|
|
|
|
if (query.ExcludeInheritedTags.Length > 0)
|
|
|
|
if (query.ExcludeInheritedTags.Length > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var tagValues = query.ExcludeInheritedTags.Select(i => "'" + GetCleanValue(i) + "'");
|
|
|
|
var paramName = "@ExcludeInheritedTags";
|
|
|
|
var tagValuesList = string.Join(",", tagValues);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
whereClauses.Add("((select CleanValue from itemvalues where ItemId=Guid and Type=6 and cleanvalue in (" + tagValuesList + ")) is null)");
|
|
|
|
if (statement == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
List<string> tagParamList = new List<string>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int index = 0; index < query.ExcludeInheritedTags.Length; index++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
tagParamList.Add(paramName + index);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
whereClauses.Add("((select CleanValue from itemvalues where ItemId=Guid and Type=6 and cleanvalue in (" + string.Join(",", tagParamList) + ")) is null)");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
for (int index = 0; index < query.ExcludeInheritedTags.Length; index++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
statement.TryBind(paramName + index, GetCleanValue(query.ExcludeInheritedTags[0]));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (query.SeriesStatuses.Length > 0)
|
|
|
|
if (query.SeriesStatuses.Length > 0)
|
|
|
|