Update Jellyfin.Server/Migrations/Routines/RemoveDownloadImagesInAdvance.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
pull/11191/head
Bond-009 2 months ago committed by GitHub
parent 929a65c70b
commit ef2461b486
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -42,7 +42,7 @@ namespace Jellyfin.Server.Migrations.Routines
}
var libraryOptions = virtualFolder.LibraryOptions;
var collectionFolder = _libraryManager.GetItemById(folderId) as CollectionFolder ?? throw new InvalidOperationException("Failed to find CollectionFolder");
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);

Loading…
Cancel
Save