Add Series and Season channel folder types

This commit is contained in:
Luke Pulverenti 2016-06-23 23:23:31 -04:00
parent cffc9417c7
commit 02bba9984f
2 changed files with 13 additions and 1 deletions

View File

@ -8,6 +8,10 @@ namespace MediaBrowser.Model.Channels
PhotoAlbum = 2,
MusicArtist = 3
MusicArtist = 3,
Series = 4,
Season = 5
}
}

View File

@ -1258,6 +1258,14 @@ namespace MediaBrowser.Server.Implementations.Channels
{
item = GetItemById<PhotoAlbum>(info.Id, channelProvider.Name, channelProvider.DataVersion, out isNew);
}
else if (info.FolderType == ChannelFolderType.Series)
{
item = GetItemById<Series>(info.Id, channelProvider.Name, channelProvider.DataVersion, out isNew);
}
else if (info.FolderType == ChannelFolderType.Season)
{
item = GetItemById<Season>(info.Id, channelProvider.Name, channelProvider.DataVersion, out isNew);
}
else
{
item = GetItemById<Folder>(info.Id, channelProvider.Name, channelProvider.DataVersion, out isNew);