aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-04-05 23:47:01 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-04-05 23:47:01 -0400
commit3cc0ad2a3599de1134b97057f14000ea9523fa3d (patch)
treee89815755fbb612017e209d3b40fbb1442dde060 /MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
parent30104bd8de62715d127823e69dc0de9e65d99840 (diff)
add notification services tab
Diffstat (limited to 'MediaBrowser.Server.Implementations/Channels/ChannelManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Channels/ChannelManager.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
index e22bf2e7f..6a0e1208a 100644
--- a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
+++ b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
@@ -330,7 +330,7 @@ namespace MediaBrowser.Server.Implementations.Channels
{
files = files.Where(i => _libraryManager.IsAudioFile(i.FullName));
}
-
+
var file = files
.FirstOrDefault(i => i.Name.StartsWith(filenamePrefix, StringComparison.OrdinalIgnoreCase));
@@ -1454,7 +1454,14 @@ namespace MediaBrowser.Server.Implementations.Channels
var host = new Uri(source.Path).Host.ToLower();
var channel = GetChannel(item.ChannelId);
var channelProvider = GetChannelProvider(channel);
- var limit = channelProvider.GetChannelFeatures().DailyDownloadLimit;
+ var features = channelProvider.GetChannelFeatures();
+
+ if (!features.SupportsContentDownloading)
+ {
+ throw new ArgumentException("The channel does not support downloading.");
+ }
+
+ var limit = features.DailyDownloadLimit;
if (!ValidateDownloadLimit(host, limit))
{