Beispiel #1
0
 private static ChannelItemInfo CreateFolderChannelItemInfo(LineupItem show)
 {
     var folderId = FolderId.CreateShowFolderId(show.Url);
     return new ChannelItemInfo
     {
         FolderType = ChannelFolderType.Container,
         Id = folderId.ToString(),
         ImageUrl = show.ImageUrl,
         Name = show.Title,
         Type = ChannelItemType.Folder
     };
 }
Beispiel #2
0
 private static bool IsValidItem(LineupItem item)
 {
     return item.IsActive && item.IsFree && (item.Template.Contains("-content") || item.Template == "program");
 }
Beispiel #3
0
 private ChannelItemInfo CreateChannelItemInfo(LineupItem episode, string season)
 {
     return new ChannelItemInfo
     {
         Id = episode.Url,
         ImageUrl = episode.ImageUrl,
         MediaType = ChannelMediaType.Video,
         Name = string.Format("{0}: {1}", season, episode.Title),
         Overview = episode.Details.Description,
         ProductionYear = GetProductionYear(episode.Details.ProductionYear),
         People = ConvertPeople(episode.Details.Persons),
         Type = ChannelItemType.Media
     };
 }