mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fixed string concat
This commit is contained in:
parent
5e922f1c10
commit
ea4c208fde
@ -1084,7 +1084,10 @@ public sealed class BaseItemRepository(IDbContextFactory<JellyfinDbContext> dbPr
|
|||||||
else if (includeTypes.Length == 1 && includeTypes.FirstOrDefault() is BaseItemKind.Playlist)
|
else if (includeTypes.Length == 1 && includeTypes.FirstOrDefault() is BaseItemKind.Playlist)
|
||||||
{
|
{
|
||||||
baseQuery = baseQuery
|
baseQuery = baseQuery
|
||||||
.Where(e => e.AncestorIds!.Any(f => f.ParentItem.ItemValues!.Any(w => w.ItemValue.Type == ItemValueType.Tags && filter.IncludeInheritedTags.Contains(w.ItemValue.CleanValue))
|
.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}\"")));
|
|| e.Data!.Contains($"OwnerUserId\":\"{filter.User!.Id:N}\"")));
|
||||||
// d ^^ this is stupid it hate this.
|
// d ^^ this is stupid it hate this.
|
||||||
}
|
}
|
||||||
@ -1111,7 +1114,7 @@ public sealed class BaseItemRepository(IDbContextFactory<JellyfinDbContext> dbPr
|
|||||||
|
|
||||||
if (filter.VideoTypes.Length > 0)
|
if (filter.VideoTypes.Length > 0)
|
||||||
{
|
{
|
||||||
var videoTypeBs = filter.VideoTypes.Select(e => $"\"VideoType\":\"" + e + "\"");
|
var videoTypeBs = filter.VideoTypes.Select(e => $"\"VideoType\":\"{e}\"");
|
||||||
baseQuery = baseQuery
|
baseQuery = baseQuery
|
||||||
.Where(e => videoTypeBs.Any(f => e.Data!.Contains(f)));
|
.Where(e => videoTypeBs.Any(f => e.Data!.Contains(f)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user