Remove underscore

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Fernando Fernández 2020-11-10 10:24:05 +01:00 committed by GitHub
parent d6a04fd406
commit 27a1337cf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,15 +31,15 @@ namespace Jellyfin.Server.Migrations.Routines
/// <inheritdoc/>
public void Perform()
{
var virtual_folders = _libraryManager.GetVirtualFolders(false);
var virtualFolders = _libraryManager.GetVirtualFolders(false);
_logger.LogInformation("Removing 'RemoveDownloadImagesInAdvance' settings in all the libraries");
foreach (var virtual_folder in virtual_folders)
foreach (var virtualFolder in virtualFolders)
{
var library_options = virtual_folder.LibraryOptions;
var collectionFolder = (CollectionFolder)_libraryManager.GetItemById(virtual_folder.ItemId);
var libraryOptions = virtualFolder.LibraryOptions;
var collectionFolder = (CollectionFolder)_libraryManager.GetItemById(virtualFolder.ItemId);
// The property no longer exists in LibraryOptions, so we just re-save the options to get old data removed.
collectionFolder.UpdateLibraryOptions(library_options);
_logger.LogInformation("Removed from '{VirtualFolder}'", virtual_folder.Name);
collectionFolder.UpdateLibraryOptions(libraryOptions);
_logger.LogInformation("Removed from '{VirtualFolder}'", virtualFolder.Name);
}
}
}