Example #1
0
        public async Task <IEnumerable <ChannelItemInfo> > GetShowEpisodes(string url, CancellationToken cancellationToken)
        {
            var section = await _presentationService.GetSection(url, cancellationToken);

            if (section.SeasonLineups == null)
            {
                return(await CreateChannelItemInfo(section.MediaUrl, cancellationToken));
            }
            return(CreateChannelItemInfos(section.SeasonLineups));
        }