mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 06:23:03 +03:00
remove IChannelMediaItem interface
This commit is contained in:
@@ -1250,6 +1250,7 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
if (audio != null)
|
||||
{
|
||||
dto.Album = audio.Album;
|
||||
dto.ExtraType = audio.ExtraType;
|
||||
|
||||
var albumParent = audio.AlbumEntity;
|
||||
|
||||
@@ -1352,6 +1353,8 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
{
|
||||
dto.Chapters = GetChapterInfoDtos(item);
|
||||
}
|
||||
|
||||
dto.ExtraType = video.ExtraType;
|
||||
}
|
||||
|
||||
if (fields.Contains(ItemFields.MediaStreams))
|
||||
@@ -1535,12 +1538,6 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
{
|
||||
dto.ChannelName = _channelManagerFactory().GetChannel(item.ChannelId).Name;
|
||||
}
|
||||
|
||||
var channelMediaItem = item as IChannelMediaItem;
|
||||
if (channelMediaItem != null)
|
||||
{
|
||||
dto.ExtraType = channelMediaItem.ExtraType;
|
||||
}
|
||||
}
|
||||
|
||||
private void AttachLinkedChildImages(BaseItemDto dto, Folder folder, User user, DtoOptions options)
|
||||
|
||||
Reference in New Issue
Block a user