Răsfoiți Sursa

Minor code change

Nick 2 ani în urmă
părinte
comite
a9594cd8b4
1 a modificat fișierele cu 1 adăugiri și 8 ștergeri
  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;
         }