diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index 8e88a61..4b3e5f0 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -2781,6 +2781,7 @@ const OpenListConfigComponent = ({ const [offlineDownloadPath, setOfflineDownloadPath] = useState('/'); const [scanInterval, setScanInterval] = useState(0); const [scanMode, setScanMode] = useState<'torrent' | 'name' | 'hybrid'>('hybrid'); + const [disableVideoPreview, setDisableVideoPreview] = useState(false); const [videos, setVideos] = useState([]); const [refreshing, setRefreshing] = useState(false); const [scanProgress, setScanProgress] = useState<{ @@ -2801,6 +2802,7 @@ const OpenListConfigComponent = ({ setOfflineDownloadPath(config.OpenListConfig.OfflineDownloadPath || '/'); setScanInterval(config.OpenListConfig.ScanInterval || 0); setScanMode(config.OpenListConfig.ScanMode || 'hybrid'); + setDisableVideoPreview(config.OpenListConfig.DisableVideoPreview || false); } }, [config]); @@ -2842,6 +2844,7 @@ const OpenListConfigComponent = ({ OfflineDownloadPath: offlineDownloadPath, ScanInterval: scanInterval, ScanMode: scanMode, + DisableVideoPreview: disableVideoPreview, }), }); @@ -3218,6 +3221,30 @@ const OpenListConfigComponent = ({

+
+
+

+ 禁用预览视频 +

+

+ 开启后将直接返回直连链接,不使用视频预览流 +

+
+ +
+
+
+
+

+ 禁用预览视频 +

+

+ 开启后将直接返回直连链接,不使用视频预览流 +

+
+ +
+