mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
finish removing ChannelFolderItem
This commit is contained in:
@@ -1534,9 +1534,13 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
|
||||
dto.ChannelId = item.ChannelId;
|
||||
|
||||
if (item.SourceType == SourceType.Channel)
|
||||
if (item.SourceType == SourceType.Channel && !string.IsNullOrWhiteSpace(item.ChannelId))
|
||||
{
|
||||
dto.ChannelName = _channelManagerFactory().GetChannel(item.ChannelId).Name;
|
||||
var channel = _libraryManager.GetItemById(item.ChannelId);
|
||||
if (channel != null)
|
||||
{
|
||||
dto.ChannelName = channel.Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user