aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-01-23 23:50:45 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-01-23 23:50:45 -0500
commit1af651bc56025935cebe2762d6f36be41530eba1 (patch)
tree685083558027d3123bd3b9f6a4efa886a574bf26 /MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
parent86a9df53f28d54c9668d66f134d3d73220e0411d (diff)
add Add to collection buttons
Diffstat (limited to 'MediaBrowser.Server.Implementations/Channels/ChannelManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Channels/ChannelManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
index a7e248ea4..99ca0b5da 100644
--- a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
+++ b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
@@ -393,7 +393,9 @@ namespace MediaBrowser.Server.Implementations.Channels
private async Task<Channel> GetChannel(IChannel channelInfo, CancellationToken cancellationToken)
{
- var path = Path.Combine(_config.ApplicationPaths.ItemsByNamePath, "channels", _fileSystem.GetValidFilename(channelInfo.Name));
+ var id = GetInternalChannelId(channelInfo.Name);
+
+ var path = Channel.GetInternalMetadataPath(_config.ApplicationPaths.InternalMetadataPath, id);
var fileInfo = new DirectoryInfo(path);
@@ -414,8 +416,6 @@ namespace MediaBrowser.Server.Implementations.Channels
isNew = true;
}
- var id = GetInternalChannelId(channelInfo.Name);
-
var item = _libraryManager.GetItemById(id) as Channel;
if (item == null)