aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Channels
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-01-12 22:46:44 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-01-12 22:46:44 -0500
commitd8d5dd487326dd3fccf4e9f30cd8f7e3783fcfda (patch)
treecf9950d32ee194d72a367c836a70dfb8f4e61401 /MediaBrowser.Server.Implementations/Channels
parentf55217406985ad21da44aa523353f33e3f720ccd (diff)
make channel access opt-in rather than opt out
Diffstat (limited to 'MediaBrowser.Server.Implementations/Channels')
-rw-r--r--MediaBrowser.Server.Implementations/Channels/ChannelDownloadScheduledTask.cs4
-rw-r--r--MediaBrowser.Server.Implementations/Channels/ChannelManager.cs4
2 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/Channels/ChannelDownloadScheduledTask.cs b/MediaBrowser.Server.Implementations/Channels/ChannelDownloadScheduledTask.cs
index 7179395b4..0e0e4fbcb 100644
--- a/MediaBrowser.Server.Implementations/Channels/ChannelDownloadScheduledTask.cs
+++ b/MediaBrowser.Server.Implementations/Channels/ChannelDownloadScheduledTask.cs
@@ -96,7 +96,7 @@ namespace MediaBrowser.Server.Implementations.Channels
public static string GetUserDistinctValue(User user)
{
- var channels = user.Policy.BlockedChannels
+ var channels = user.Policy.EnabledChannels
.OrderBy(i => i)
.ToList();
@@ -374,7 +374,7 @@ namespace MediaBrowser.Server.Implementations.Channels
{
try
{
- File.Delete(path);
+ _fileSystem.DeleteFile(path);
}
catch (IOException ex)
{
diff --git a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
index c12a1161b..1130a510c 100644
--- a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
+++ b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
@@ -1492,7 +1492,7 @@ namespace MediaBrowser.Server.Implementations.Channels
}
else
{
- File.Delete(response.TempFilePath);
+ _fileSystem.DeleteFile(response.TempFilePath);
throw new ApplicationException("Unexpected response type encountered: " + response.ContentType);
}
@@ -1501,7 +1501,7 @@ namespace MediaBrowser.Server.Implementations.Channels
try
{
- File.Delete(response.TempFilePath);
+ _fileSystem.DeleteFile(response.TempFilePath);
}
catch
{