mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
Fix multiple mistakes and warnings
This commit is contained in:
@@ -236,7 +236,7 @@ namespace Emby.Server.Implementations.Library
|
||||
if (!parentId.Equals(Guid.Empty))
|
||||
{
|
||||
var parentItem = _libraryManager.GetItemById(parentId);
|
||||
if (parentItem is Channel parentItemChannel)
|
||||
if (parentItem is Channel)
|
||||
{
|
||||
return _channelManager.GetLatestChannelItemsInternal(
|
||||
new InternalItemsQuery(user)
|
||||
@@ -248,7 +248,7 @@ namespace Emby.Server.Implementations.Library
|
||||
IncludeItemTypes = request.IncludeItemTypes,
|
||||
EnableTotalRecordCount = false
|
||||
},
|
||||
CancellationToken.None).Result.Items;
|
||||
CancellationToken.None).GetAwaiter().GetResult().Items;
|
||||
}
|
||||
|
||||
if (parentItem is Folder parent)
|
||||
|
||||
Reference in New Issue
Block a user