public async Task <IEnumerable <ChannelMediaInfo> > GetChannelItemMediaInfo(string id, CancellationToken cancellationToken)
        {
            var episode         = new Episode(id);
            var episodeMetadata = await _touTvProvider.GetEpisode(episode.ShowId, episode.EpisodeId);

            var videoUrl = await _touTvVideoService.GetVideoUrl(episodeMetadata.PID, cancellationToken);

            return(new List <ChannelMediaInfo>
            {
                new ChannelMediaInfo
                {
                    Path = videoUrl.Url,
                    RunTimeTicks = episodeMetadata.LengthSpan.Ticks
                }
            });
        }
Пример #2
0
 public async Task <IEnumerable <ChannelMediaInfo> > GetChannelItemMediaInfo(string id, CancellationToken cancellationToken)
 {
     return(await _touTvProvider.GetEpisode(id, cancellationToken));
 }