diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-06-17 12:03:14 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-06-17 12:03:14 -0400 |
| commit | 43ab885530a9b24eb03b060cbe0e895caf086fd7 (patch) | |
| tree | 5c33e3bf319d2022280383909197fd3386f9a32c /MediaBrowser.Controller | |
| parent | e765fef271760998e99259e021bf0a214702c77f (diff) | |
update latest channel content display
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/LiveTv/LiveTvChannel.cs | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/LiveTv/LiveTvChannel.cs b/MediaBrowser.Controller/LiveTv/LiveTvChannel.cs index 3c1c9f442a..01fed68c8a 100644 --- a/MediaBrowser.Controller/LiveTv/LiveTvChannel.cs +++ b/MediaBrowser.Controller/LiveTv/LiveTvChannel.cs @@ -1,8 +1,11 @@ using MediaBrowser.Controller.Entities; using MediaBrowser.Model.Configuration; +using MediaBrowser.Model.Dto; +using MediaBrowser.Model.Entities; using MediaBrowser.Model.LiveTv; using System.Collections.Generic; using System.Linq; +using MediaBrowser.Model.MediaInfo; namespace MediaBrowser.Controller.LiveTv { @@ -115,9 +118,26 @@ namespace MediaBrowser.Controller.LiveTv return new List<BaseItem>(); } - public IEnumerable<Model.Dto.MediaSourceInfo> GetMediaSources(bool enablePathSubstitution) + public IEnumerable<MediaSourceInfo> GetMediaSources(bool enablePathSubstitution) { - throw new System.NotImplementedException(); + var list = new List<MediaSourceInfo>(); + + var locationType = LocationType; + + var info = new MediaSourceInfo + { + Id = Id.ToString("N"), + Protocol = locationType == LocationType.Remote ? MediaProtocol.Http : MediaProtocol.File, + MediaStreams = new List<MediaStream>(), + Name = Name, + Path = Path, + RunTimeTicks = RunTimeTicks, + Type = MediaSourceType.Default + }; + + list.Add(info); + + return list; } } } |
