瀏覽代碼

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;
         }