Add OwnerId fix migration and library options event

- Add FixIncorrectOwnerIdRelationships migration routine
- Add LibraryOptionsUpdatedEventArgs for library options changes
This commit is contained in:
Shadowghost
2026-01-17 15:58:04 +01:00
parent 912a963a2b
commit dfa78590c2
2 changed files with 349 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
using System;
using MediaBrowser.Model.Configuration;
namespace MediaBrowser.Controller.Entities;
/// <summary>
/// Event arguments for when library options are updated.
/// </summary>
public class LibraryOptionsUpdatedEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="LibraryOptionsUpdatedEventArgs"/> class.
/// </summary>
/// <param name="libraryPath">The path of the library whose options were updated.</param>
/// <param name="libraryOptions">The updated library options.</param>
public LibraryOptionsUpdatedEventArgs(string libraryPath, LibraryOptions libraryOptions)
{
LibraryPath = libraryPath;
LibraryOptions = libraryOptions;
}
/// <summary>
/// Gets the path of the library whose options were updated.
/// </summary>
public string LibraryPath { get; }
/// <summary>
/// Gets the updated library options.
/// </summary>
public LibraryOptions LibraryOptions { get; }
}