diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-18 15:58:42 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-18 15:58:42 -0400 |
| commit | 3ccecd3ca3a1640f15ffae70914a8ad0f5a1cb99 (patch) | |
| tree | 737ee22469a54e14e4f4fa497a3216578b2d0983 /MediaBrowser.Controller/Channels/ChannelAudioItem.cs | |
| parent | ca5989cb17b324ee481b92ddf3cd1ea47af85cbe (diff) | |
channel fixes
Diffstat (limited to 'MediaBrowser.Controller/Channels/ChannelAudioItem.cs')
| -rw-r--r-- | MediaBrowser.Controller/Channels/ChannelAudioItem.cs | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Channels/ChannelAudioItem.cs b/MediaBrowser.Controller/Channels/ChannelAudioItem.cs index 72a996b19..6d32f7d35 100644 --- a/MediaBrowser.Controller/Channels/ChannelAudioItem.cs +++ b/MediaBrowser.Controller/Channels/ChannelAudioItem.cs @@ -1,6 +1,8 @@ -using System.Linq; -using MediaBrowser.Controller.Entities.Audio; +using MediaBrowser.Controller.Entities.Audio; using MediaBrowser.Model.Configuration; +using MediaBrowser.Model.Entities; +using System.Collections.Generic; +using System.Linq; namespace MediaBrowser.Controller.Channels { @@ -18,6 +20,8 @@ namespace MediaBrowser.Controller.Channels public string OriginalImageUrl { get; set; } + public List<ChannelMediaInfo> ChannelMediaSources { get; set; } + protected override bool GetBlockUnratedValue(UserConfiguration config) { return config.BlockUnratedItems.Contains(UnratedItem.ChannelContent); @@ -30,5 +34,23 @@ namespace MediaBrowser.Controller.Channels return false; } } + + public ChannelAudioItem() + { + ChannelMediaSources = new List<ChannelMediaInfo>(); + } + + public override LocationType LocationType + { + get + { + if (string.IsNullOrEmpty(Path)) + { + return LocationType.Remote; + } + + return base.LocationType; + } + } } } |
