소스 검색

Minor code change

Nick 2 년 전
부모
커밋
a9594cd8b4
1개의 변경된 파일1개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 8
      MediaBrowser.Providers/Trickplay/TrickplayManager.cs

+ 1 - 8
MediaBrowser.Providers/Trickplay/TrickplayManager.cs

@@ -317,14 +317,7 @@ public class TrickplayManager : ITrickplayManager
         }
 
         var libraryOptions = _libraryManager.GetLibraryOptions(video);
-        if (libraryOptions is not null)
-        {
-            if (!libraryOptions.EnableTrickplayImageExtraction)
-            {
-                return false;
-            }
-        }
-        else
+        if (libraryOptions is null || !libraryOptions.EnableTrickplayImageExtraction)
         {
             return false;
         }