import { Loader2, RotateCcw, Wrench } from 'lucide-react' import type { STRMOutputPreset } from '../api/strm' import { currentOrigin } from './strmPageModel' import { StrmRefreshStatus } from './StrmGenerateSectionParts' import { StrmOutputDirPicker } from './StrmOutputDirPicker' import type { useStrmRepairForm } from './useStrmRepairForm' type StrmRepairSectionProps = ReturnType & { outputPresets: STRMOutputPreset[] } export function StrmRepairSection({ baseURL, outputDir, outputPresets, repairing, refreshLibrary, result, runningMode, scrapeAfter, onPreview, onRepair, setBaseURL, setOutputDir, setRefreshLibrary, setScrapeAfter, }: StrmRepairSectionProps) { return (

STRM 修复

批量修复已存在 .strm 文件中的本服务播放地址。

setBaseURL(e.target.value)} /> {result && (
输出目录:{result.output_dir}
{result.previewed ? `预检 ${result.previewed} · ` : ''} 修复 {result.repaired} · 跳过 {result.skipped}
{result.errors && result.errors.length > 0 && (
失败 {result.errors.length} 条:{result.errors.slice(0, 3).join(';')}
)}
)}
) }