diff options
| author | Andrew Mahone <andrew.mahone@gmail.com> | 2019-10-18 07:56:53 -0400 |
|---|---|---|
| committer | Andrew Mahone <andrew.mahone@gmail.com> | 2019-10-22 11:50:07 -0400 |
| commit | a9a85f251e77cf1670e69733e1d7b5ab9116aaaf (patch) | |
| tree | 21f9254fa8a0b8df508bca85150887fdbd6793aa | |
| parent | 12f752d8b1bbc9d6d480bfc34283dd15a08d1f8a (diff) | |
Instantiate AttachmentExtractor in ApplicationHost.
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 04904fc4a..bcd99ffe4 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -282,6 +282,8 @@ namespace Emby.Server.Implementations private 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.Implementations serviceCollection.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); |
