The Free Software Media System - Server Backend & API
Instantiate AttachmentExtractor in ApplicationHost.
Andrew Mahonea9a85f251e77
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 04904fc4a5..bcd99ffe4f 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -282,6 +282,8 @@ namespace Emby.Server.Implementationsprivate ISubtitleEncoder SubtitleEncoder { get; set; }+ private IAttachmentExtractor AttachmentExtractor { get; set; }+private ISessionManager SessionManager { get; set; }private ILiveTvManager LiveTvManager { get; set; }@@ -904,6 +906,10 @@ namespace Emby.Server.ImplementationsserviceCollection.AddSingleton(typeof(IResourceFileManager), typeof(ResourceFileManager));+ AttachmentExtractor = new MediaBrowser.MediaEncoding.Attachments.AttachmentExtractor(LibraryManager, LoggerFactory, ApplicationPaths, FileSystemManager, MediaEncoder, MediaSourceManager, ProcessFactory);++ serviceCollection.AddSingleton(AttachmentExtractor);+_displayPreferencesRepository.Initialize();var userDataRepo = new SqliteUserDataRepository(LoggerFactory, ApplicationPaths);