|
|
|
@ -46,6 +46,7 @@ using MediaBrowser.Model.Library;
|
|
|
|
|
using MediaBrowser.Model.Querying;
|
|
|
|
|
using MediaBrowser.Model.Tasks;
|
|
|
|
|
using Microsoft.Extensions.Caching.Memory;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
using Episode = MediaBrowser.Controller.Entities.TV.Episode;
|
|
|
|
|
using EpisodeInfo = Emby.Naming.TV.EpisodeInfo;
|
|
|
|
@ -99,7 +100,7 @@ namespace Emby.Server.Implementations.Library
|
|
|
|
|
/// Initializes a new instance of the <see cref="LibraryManager" /> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="appHost">The application host.</param>
|
|
|
|
|
/// <param name="logger">The logger.</param>
|
|
|
|
|
/// <param name="loggerFactory">The logger factory.</param>
|
|
|
|
|
/// <param name="taskManager">The task manager.</param>
|
|
|
|
|
/// <param name="userManager">The user manager.</param>
|
|
|
|
|
/// <param name="configurationManager">The configuration manager.</param>
|
|
|
|
@ -115,7 +116,7 @@ namespace Emby.Server.Implementations.Library
|
|
|
|
|
/// <param name="namingOptions">The naming options.</param>
|
|
|
|
|
public LibraryManager(
|
|
|
|
|
IServerApplicationHost appHost,
|
|
|
|
|
ILogger<LibraryManager> logger,
|
|
|
|
|
ILoggerFactory loggerFactory,
|
|
|
|
|
ITaskManager taskManager,
|
|
|
|
|
IUserManager userManager,
|
|
|
|
|
IServerConfigurationManager configurationManager,
|
|
|
|
@ -131,7 +132,7 @@ namespace Emby.Server.Implementations.Library
|
|
|
|
|
NamingOptions namingOptions)
|
|
|
|
|
{
|
|
|
|
|
_appHost = appHost;
|
|
|
|
|
_logger = logger;
|
|
|
|
|
_logger = loggerFactory.CreateLogger<LibraryManager>();
|
|
|
|
|
_taskManager = taskManager;
|
|
|
|
|
_userManager = userManager;
|
|
|
|
|
_configurationManager = configurationManager;
|
|
|
|
@ -146,7 +147,7 @@ namespace Emby.Server.Implementations.Library
|
|
|
|
|
_memoryCache = memoryCache;
|
|
|
|
|
_namingOptions = namingOptions;
|
|
|
|
|
|
|
|
|
|
_extraResolver = new ExtraResolver(namingOptions);
|
|
|
|
|
_extraResolver = new ExtraResolver(loggerFactory.CreateLogger<ExtraResolver>(), namingOptions);
|
|
|
|
|
|
|
|
|
|
_configurationManager.ConfigurationUpdated += ConfigurationUpdated;
|
|
|
|
|
|
|
|
|
|