mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-18 05:30:34 +01:00
Add OwnerId fix migration and library options event
- Add FixIncorrectOwnerIdRelationships migration routine - Add LibraryOptionsUpdatedEventArgs for library options changes
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user