Apply suggestion

Co-authored-by: Cody Robibero <cody@robibe.ro>
pull/11416/head
gnattu 1 month ago committed by GitHub
parent 837ee3c1b1
commit f6126653e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4198,11 +4198,10 @@ namespace Emby.Server.Implementations.Data
// In addtion to the tags for the episodes themselves, we need to manually query its parent (the season)'s tags as well.
if (includeTypes.Length == 1 && includeTypes.FirstOrDefault() is BaseItemKind.Episode)
{
whereClauses.Add("(" +
"(select CleanValue from ItemValues where ItemId=Guid and Type=6 and cleanvalue in (" + includedTags + ")) is not null" +
" OR " +
"(select CleanValue from ItemValues where ItemId=ParentId and Type=6 and cleanvalue in (" + includedTags + ")) is not null" +
")");
whereClauses.Add($"""
((select CleanValue from ItemValues where ItemId=Guid and Type=6 and CleanValue in ({includedTags})) is not null
OR (select CleanValue from ItemValues where ItemId=ParentId and Type=6 and CleanValue in ({includedTags})) is not null)
""");
}
else
{

Loading…
Cancel
Save