aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-10-10 17:35:51 +0000
committerJPVenson <github@jpb.email>2024-10-10 17:35:51 +0000
commitea4c208fde66ec00abba142068db2da674585163 (patch)
tree33ba87c3e96c5a67bed6d800faef676422fe3797 /Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
parent5e922f1c104fa46a81beb681b47a364476d76582 (diff)
fixed string concat
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/BaseItemRepository.cs')
-rw-r--r--Jellyfin.Server.Implementations/Item/BaseItemRepository.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
index d7de7e9bd..7e7873f6d 100644
--- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
+++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
@@ -1084,8 +1084,11 @@ public sealed class BaseItemRepository(IDbContextFactory<JellyfinDbContext> dbPr
else if (includeTypes.Length == 1 && includeTypes.FirstOrDefault() is BaseItemKind.Playlist)
{
baseQuery = baseQuery
- .Where(e => e.AncestorIds!.Any(f => f.ParentItem.ItemValues!.Any(w => w.ItemValue.Type == ItemValueType.Tags && filter.IncludeInheritedTags.Contains(w.ItemValue.CleanValue))
- || e.Data!.Contains($"OwnerUserId\":\"{filter.User!.Id:N}\"")));
+ .Where(e =>
+ e.AncestorIds!
+ .Any(f =>
+ f.ParentItem.ItemValues!.Any(w => w.ItemValue.Type == ItemValueType.Tags && filter.IncludeInheritedTags.Contains(w.ItemValue.CleanValue))
+ || e.Data!.Contains($"OwnerUserId\":\"{filter.User!.Id:N}\"")));
// d ^^ this is stupid it hate this.
}
else
@@ -1111,7 +1114,7 @@ public sealed class BaseItemRepository(IDbContextFactory<JellyfinDbContext> dbPr
if (filter.VideoTypes.Length > 0)
{
- var videoTypeBs = filter.VideoTypes.Select(e => $"\"VideoType\":\"" + e + "\"");
+ var videoTypeBs = filter.VideoTypes.Select(e => $"\"VideoType\":\"{e}\"");
baseQuery = baseQuery
.Where(e => videoTypeBs.Any(f => e.Data!.Contains(f)));
}