mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-29 11:02:14 +01:00
update channel db
This commit is contained in:
@@ -463,12 +463,15 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
|
||||
var folder = (Folder)item;
|
||||
|
||||
dto.ChildCount = GetChildCount(folder, user);
|
||||
|
||||
// These are just far too slow.
|
||||
if (!(folder is UserRootFolder) && !(folder is UserView) && !(folder is IChannelItem) && !(folder is ICollectionFolder))
|
||||
if (!(folder is IChannelItem) && !(folder is Channel))
|
||||
{
|
||||
SetSpecialCounts(folder, user, dto, fields, syncProgress);
|
||||
dto.ChildCount = GetChildCount(folder, user);
|
||||
|
||||
// These are just far too slow.
|
||||
if (!(folder is UserRootFolder) && !(folder is UserView) && !(folder is ICollectionFolder))
|
||||
{
|
||||
SetSpecialCounts(folder, user, dto, fields, syncProgress);
|
||||
}
|
||||
}
|
||||
|
||||
dto.UserData.Played = dto.UserData.PlayedPercentage.HasValue && dto.UserData.PlayedPercentage.Value >= 100;
|
||||
@@ -1763,14 +1766,6 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
return;
|
||||
}
|
||||
|
||||
if (fields.Contains(ItemFields.OriginalPrimaryImageAspectRatio))
|
||||
{
|
||||
if (size.Width > 0 && size.Height > 0)
|
||||
{
|
||||
dto.OriginalPrimaryImageAspectRatio = size.Width / size.Height;
|
||||
}
|
||||
}
|
||||
|
||||
var supportedEnhancers = _imageProcessor.GetSupportedEnhancers(item, ImageType.Primary).ToList();
|
||||
|
||||
foreach (var enhancer in supportedEnhancers)
|
||||
|
||||
Reference in New Issue
Block a user