Browse Source

Revert "Simplify AttachmentExtractor instantiation."

This reverts commit d33e0a4e2c59783c785c992ea0c3a31596ae3058.
Andrew Mahone 5 years ago
parent
commit
79bbf09ecb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Emby.Server.Implementations/ApplicationHost.cs

+ 1 - 1
Emby.Server.Implementations/ApplicationHost.cs

@@ -908,7 +908,7 @@ namespace Emby.Server.Implementations
 
             AttachmentExtractor = new MediaBrowser.MediaEncoding.Attachments.AttachmentExtractor(LibraryManager, LoggerFactory, ApplicationPaths, FileSystemManager, MediaEncoder, MediaSourceManager, ProcessFactory);
 
-            serviceCollection.AddSingleton<MediaBrowser.MediaEncoding.Attachments.AttachmentExtractor>();
+            serviceCollection.AddSingleton(AttachmentExtractor);
 
             _displayPreferencesRepository.Initialize();