mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-28 03:18:27 +01:00
New provider system. Only for people right now
This commit is contained in:
@@ -16,7 +16,6 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
|
||||
/// Initializes a new instance of the <see cref="ArtistsPostScanTask" /> class.
|
||||
/// </summary>
|
||||
/// <param name="libraryManager">The library manager.</param>
|
||||
/// <param name="userManager">The user manager.</param>
|
||||
public GenresPostScanTask(ILibraryManager libraryManager)
|
||||
{
|
||||
_libraryManager = libraryManager;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Controller.Providers;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -88,7 +89,14 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
|
||||
|
||||
var itemByName = _libraryManager.GetPerson(name);
|
||||
|
||||
await itemByName.RefreshMetadata(cancellationToken, allowSlowProviders: false).ConfigureAwait(false);
|
||||
// The only purpose here is to be able to react to image changes without running the people task.
|
||||
// All other metadata can wait for that.
|
||||
await itemByName.RefreshMetadata(new MetadataRefreshOptions
|
||||
{
|
||||
ImageRefreshMode = MetadataRefreshMode.None,
|
||||
MetadataRefreshMode = MetadataRefreshMode.None
|
||||
|
||||
}, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
foreach (var libraryId in counts.Keys)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user