mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Simplify AttachmentExtractor instantiation.
This commit is contained in:
parent
492bbc9e13
commit
c6855e6a2a
@ -282,8 +282,6 @@ namespace Emby.Server.Implementations
|
|||||||
|
|
||||||
private ISubtitleEncoder SubtitleEncoder { get; set; }
|
private ISubtitleEncoder SubtitleEncoder { get; set; }
|
||||||
|
|
||||||
private IAttachmentExtractor AttachmentExtractor { get; set; }
|
|
||||||
|
|
||||||
private ISessionManager SessionManager { get; set; }
|
private ISessionManager SessionManager { get; set; }
|
||||||
|
|
||||||
private ILiveTvManager LiveTvManager { get; set; }
|
private ILiveTvManager LiveTvManager { get; set; }
|
||||||
@ -906,9 +904,7 @@ namespace Emby.Server.Implementations
|
|||||||
|
|
||||||
serviceCollection.AddSingleton(typeof(IResourceFileManager), typeof(ResourceFileManager));
|
serviceCollection.AddSingleton(typeof(IResourceFileManager), typeof(ResourceFileManager));
|
||||||
|
|
||||||
AttachmentExtractor = new MediaBrowser.MediaEncoding.Attachments.AttachmentExtractor(LibraryManager, LoggerFactory, ApplicationPaths, FileSystemManager, MediaEncoder, MediaSourceManager, ProcessFactory);
|
serviceCollection.AddSingleton(typeof(MediaBrowser.Controller.MediaEncoding.IAttachmentExtractor),typeof(MediaBrowser.MediaEncoding.Attachments.AttachmentExtractor));
|
||||||
|
|
||||||
serviceCollection.AddSingleton(AttachmentExtractor);
|
|
||||||
|
|
||||||
_displayPreferencesRepository.Initialize();
|
_displayPreferencesRepository.Initialize();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user