From 792ce4a391c524f8e20f676be2d6cab07e5a59c4 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Tue, 1 Sep 2026 07:36:53 +0200 Subject: Fix people validator not creating missing people --- MediaBrowser.Controller/Library/ILibraryManager.cs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'MediaBrowser.Controller/Library') diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs index c8cca1fa93..71b3f054ff 100644 --- a/MediaBrowser.Controller/Library/ILibraryManager.cs +++ b/MediaBrowser.Controller/Library/ILibraryManager.cs @@ -106,6 +106,13 @@ namespace MediaBrowser.Controller.Library /// Task{Person}. Person? GetPerson(string name); + /// + /// Gets a Person, creating and persisting it if no item exists for the name yet. + /// + /// The name of the person. + /// The person. + Person GetOrCreatePerson(string name); + /// /// Finds the by path. /// @@ -152,15 +159,6 @@ namespace MediaBrowser.Controller.Library /// Throws if year is invalid. Year GetYear(int value); - /// - /// Validate and refresh the People sub-set of the IBN. - /// The items are stored in the db but not loaded into memory until actually requested by an operation. - /// - /// The progress. - /// The cancellation token. - /// Task. - Task ValidatePeopleAsync(IProgress progress, CancellationToken cancellationToken); - /// /// Reloads the root media folder. /// -- cgit v1.2.3