aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-01-17 15:58:04 +0100
committerShadowghost <Ghost_of_Stone@web.de>2026-01-18 19:47:02 +0100
commitdfa78590c2899c7e74b142ebbced4140a354aed0 (patch)
tree51187d662bdea08770a10e6a3b8959f18e594a33 /MediaBrowser.Controller
parent912a963a2bf7f9534e9395d1a2da8d910f249b5b (diff)
Add OwnerId fix migration and library options event
- Add FixIncorrectOwnerIdRelationships migration routine - Add LibraryOptionsUpdatedEventArgs for library options changes
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/Entities/LibraryOptionsUpdatedEventArgs.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/LibraryOptionsUpdatedEventArgs.cs b/MediaBrowser.Controller/Entities/LibraryOptionsUpdatedEventArgs.cs
new file mode 100644
index 0000000000..7590ad7d36
--- /dev/null
+++ b/MediaBrowser.Controller/Entities/LibraryOptionsUpdatedEventArgs.cs
@@ -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; }
+}