Fix people validator not creating missing people

This commit is contained in:
Shadowghost
2026-09-01 07:36:53 +02:00
parent 4910aafa1a
commit 792ce4a391
4 changed files with 77 additions and 89 deletions
@@ -106,6 +106,13 @@ namespace MediaBrowser.Controller.Library
/// <returns>Task{Person}.</returns>
Person? GetPerson(string name);
/// <summary>
/// Gets a Person, creating and persisting it if no item exists for the name yet.
/// </summary>
/// <param name="name">The name of the person.</param>
/// <returns>The person.</returns>
Person GetOrCreatePerson(string name);
/// <summary>
/// Finds the by path.
/// </summary>
@@ -152,15 +159,6 @@ namespace MediaBrowser.Controller.Library
/// <exception cref="ArgumentOutOfRangeException">Throws if year is invalid.</exception>
Year GetYear(int value);
/// <summary>
/// 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.
/// </summary>
/// <param name="progress">The progress.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task ValidatePeopleAsync(IProgress<double> progress, CancellationToken cancellationToken);
/// <summary>
/// Reloads the root media folder.
/// </summary>