소스 검색

Merge branch 'media-attachments' of github.com:Unhelpful/jellyfin into media-attachments

Andrew Mahone 5 년 전
부모
커밋
cdc7d83c22
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Emby.Server.Implementations/ApplicationHost.cs
  2. 1 0
      MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.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(AttachmentExtractor);
+            serviceCollection.AddSingleton<MediaBrowser.MediaEncoding.Attachments.AttachmentExtractor>();
 
             _displayPreferencesRepository.Initialize();
 

+ 1 - 0
MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs

@@ -59,6 +59,7 @@ namespace MediaBrowser.MediaEncoding.Attachments
             {
                 throw new ArgumentNullException(nameof(item));
             }
+
             if (string.IsNullOrWhiteSpace(mediaSourceId))
             {
                 throw new ArgumentNullException(nameof(mediaSourceId));