diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index 6902521..c1125ba 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -2766,6 +2766,7 @@ const OpenListConfigComponent = ({ const [rootPath, setRootPath] = useState('/'); const [offlineDownloadPath, setOfflineDownloadPath] = useState('/'); const [scanInterval, setScanInterval] = useState(0); + const [scanMode, setScanMode] = useState<'torrent' | 'name' | 'hybrid'>('hybrid'); const [videos, setVideos] = useState([]); const [refreshing, setRefreshing] = useState(false); const [scanProgress, setScanProgress] = useState<{ @@ -2785,6 +2786,7 @@ const OpenListConfigComponent = ({ setRootPath(config.OpenListConfig.RootPath || '/'); setOfflineDownloadPath(config.OpenListConfig.OfflineDownloadPath || '/'); setScanInterval(config.OpenListConfig.ScanInterval || 0); + setScanMode(config.OpenListConfig.ScanMode || 'hybrid'); } }, [config]); @@ -2825,6 +2827,7 @@ const OpenListConfigComponent = ({ RootPath: rootPath, OfflineDownloadPath: offlineDownloadPath, ScanInterval: scanInterval, + ScanMode: scanMode, }), }); @@ -3151,6 +3154,25 @@ const OpenListConfigComponent = ({

+
+ + +

+ 混合模式:先用种子库匹配,失败后降级为名字匹配 +

+
+