Explorar o código

Minor code change

Nick %!s(int64=2) %!d(string=hai) anos
pai
achega
a9594cd8b4
Modificáronse 1 ficheiros con 1 adicións e 8 borrados
  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;
         }