add Add to collection buttons

This commit is contained in:
Luke Pulverenti
2015-01-23 23:50:45 -05:00
parent 86a9df53f2
commit 1af651bc56
13 changed files with 56 additions and 41 deletions

View File

@@ -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)