mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 18:14:42 +01:00
add Add to collection buttons
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user