mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
add reel
This commit is contained in:
@@ -72,22 +72,9 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
|
||||
if (byName != null && !(item is LiveTvChannel))
|
||||
{
|
||||
IEnumerable<BaseItem> libraryItems;
|
||||
|
||||
var artist = item as MusicArtist;
|
||||
|
||||
if (artist == null || artist.IsAccessedByName)
|
||||
{
|
||||
libraryItems = user != null ?
|
||||
user.RootFolder.GetRecursiveChildren(user) :
|
||||
_libraryManager.RootFolder.RecursiveChildren;
|
||||
}
|
||||
else
|
||||
{
|
||||
libraryItems = user != null ?
|
||||
artist.GetRecursiveChildren(user) :
|
||||
artist.RecursiveChildren;
|
||||
}
|
||||
var libraryItems = user != null ?
|
||||
user.RootFolder.GetRecursiveChildren(user) :
|
||||
_libraryManager.RootFolder.RecursiveChildren;
|
||||
|
||||
SetItemByNameInfo(item, dto, byName.GetTaggedItems(libraryItems).ToList(), user);
|
||||
|
||||
@@ -398,7 +385,7 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
}
|
||||
|
||||
dto.Album = item.Album;
|
||||
dto.Artists = string.IsNullOrEmpty(item.Artist) ? new List<string>() : new List<string> { item.Artist };
|
||||
dto.Artists = item.Artists;
|
||||
}
|
||||
|
||||
private void SetGameProperties(BaseItemDto dto, Game item)
|
||||
@@ -1232,6 +1219,12 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
dto.ChannelId = channelItem.ChannelId;
|
||||
dto.ChannelName = _channelManagerFactory().GetChannel(channelItem.ChannelId).Name;
|
||||
}
|
||||
|
||||
var channelMediaItem = item as IChannelMediaItem;
|
||||
if (channelMediaItem != null)
|
||||
{
|
||||
dto.ExtraType = channelMediaItem.ExtraType;
|
||||
}
|
||||
}
|
||||
|
||||
private void AttachLinkedChildImages(BaseItemDto dto, Folder folder, User user)
|
||||
|
||||
Reference in New Issue
Block a user