Enable nullable for LibraryManager (#11191)

This commit is contained in:
Bond-009
2024-04-17 18:44:50 +02:00
committed by GitHub
parent 356e05e3af
commit bb018c4adc
11 changed files with 121 additions and 126 deletions

View File

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