mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
Enable nullable for LibraryManager (#11191)
This commit is contained in:
@@ -24,6 +24,7 @@ using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.MediaInfo;
|
||||
using MediaBrowser.Model.Session;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Http.HttpResults;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Jellyfin.Api.Helpers;
|
||||
@@ -398,7 +399,8 @@ public class MediaInfoHelper
|
||||
|
||||
if (profile is not null)
|
||||
{
|
||||
var item = _libraryManager.GetItemById<BaseItem>(request.ItemId);
|
||||
var item = _libraryManager.GetItemById<BaseItem>(request.ItemId)
|
||||
?? throw new ResourceNotFoundException();
|
||||
|
||||
SetDeviceSpecificData(
|
||||
item,
|
||||
|
||||
Reference in New Issue
Block a user