aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Dto
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-03-19 00:22:33 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-03-19 00:22:33 -0400
commitcbac67b5ae21c42828600ec5865f84640eee91da (patch)
tree866a76c26ed025f0a2212d6cd66a0aa5772bf4e2 /MediaBrowser.Server.Implementations/Dto
parent9e495d38868cdcb127edc5002187f546044f7477 (diff)
remove IChannelMediaItem interface
Diffstat (limited to 'MediaBrowser.Server.Implementations/Dto')
-rw-r--r--MediaBrowser.Server.Implementations/Dto/DtoService.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.cs
index d0e2ffde7d..61da810aa6 100644
--- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs
+++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs
@@ -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)