diff options
| author | Bond-009 <bond.009@outlook.com> | 2024-04-17 18:44:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-17 10:44:50 -0600 |
| commit | bb018c4adc7916fafb7dac2db9a902be8d20e75d (patch) | |
| tree | eb15d41547a4cf5a1753ff4f70bea581152b15db /Jellyfin.Server/Migrations/Routines/RemoveDownloadImagesInAdvance.cs | |
| parent | 356e05e3af7702b7dfefbba6e936d602c3638055 (diff) | |
Enable nullable for LibraryManager (#11191)
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/RemoveDownloadImagesInAdvance.cs')
| -rw-r--r-- | Jellyfin.Server/Migrations/Routines/RemoveDownloadImagesInAdvance.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/RemoveDownloadImagesInAdvance.cs b/Jellyfin.Server/Migrations/Routines/RemoveDownloadImagesInAdvance.cs index 9137ea234..52fb93d59 100644 --- a/Jellyfin.Server/Migrations/Routines/RemoveDownloadImagesInAdvance.cs +++ b/Jellyfin.Server/Migrations/Routines/RemoveDownloadImagesInAdvance.cs @@ -42,7 +42,7 @@ namespace Jellyfin.Server.Migrations.Routines } var libraryOptions = virtualFolder.LibraryOptions; - var collectionFolder = (CollectionFolder)_libraryManager.GetItemById(folderId); + var collectionFolder = _libraryManager.GetItemById<CollectionFolder>(folderId) ?? throw new InvalidOperationException("Failed to find CollectionFolder"); // The property no longer exists in LibraryOptions, so we just re-save the options to get old data removed. collectionFolder.UpdateLibraryOptions(libraryOptions); _logger.LogInformation("Removed from '{VirtualFolder}'", virtualFolder.Name); |
