import { Loader2, PauseCircle, RefreshCw } from 'lucide-react' import type { CloudScanStatus } from '../api/storage_config' interface CloudScanPanelProps { scanBusy: boolean cancelBusy: boolean scanStatuses: CloudScanStatus[] onScanAll: () => void onCancelScans: () => void } export function CloudScanPanel({ scanBusy, cancelBusy, scanStatuses, onScanAll, onCancelScans, }: CloudScanPanelProps) { return (
网盘媒体库扫描

只需在系统设置填写公开域名,扫描会自动为网盘媒体生成 STRM/302 播放入口;中断后再次扫描会去重补齐。

{scanStatuses.length > 0 && (
{scanStatuses.slice(0, 6).map((item) => (
{item.state} {' · '} {item.provider} {' · 目录 '} {item.dirs} {' · 发现 '} {item.discovered} {' · 入库 '} {item.added + item.updated} {item.error ? · {item.error} : null}
))}
)}
) }