diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-27 13:09:48 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-27 13:09:48 -0400 |
| commit | 680ffeebf7bc4b5f07daa360ba4b89526cd2db9f (patch) | |
| tree | 6871c5f64731539aaeee14ac3f8f6d97b807f6ee /MediaBrowser.Server.Implementations/Channels/ChannelManager.cs | |
| parent | 4c87979cac4df6560145b96d440aeba967466951 (diff) | |
updated nuget
Diffstat (limited to 'MediaBrowser.Server.Implementations/Channels/ChannelManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Channels/ChannelManager.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs index 355ac43fc..572db8332 100644 --- a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs +++ b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs @@ -237,6 +237,15 @@ namespace MediaBrowser.Server.Implementations.Channels return (Channel)_libraryManager.GetItemById(new Guid(id)); } + public ChannelFeatures GetChannelFeatures(string id) + { + var channel = GetChannel(id); + + var channelProvider = GetChannelProvider(channel); + + return channelProvider.GetChannelFeatures(); + } + private Guid GetInternalChannelId(string name) { if (string.IsNullOrWhiteSpace(name)) @@ -267,7 +276,7 @@ namespace MediaBrowser.Server.Implementations.Channels if (query.Limit.HasValue && query.Limit.Value > channelInfo.MaxPageSize.Value) { - throw new ArgumentException(string.Format("Channel {0} only supports a maximum of {1} records at a time.", channel.Name, channelInfo.MaxPageSize.Value)); + throw new ArgumentException(string.Format("{0} channel only supports a maximum of {1} records at a time.", channel.Name, channelInfo.MaxPageSize.Value)); } providerLimit = query.Limit; } |
