pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix m3u8 proxy test error

Pas c6c916f2 00d0996b

+9 -1
+9 -1
src/pages/parts/admin/M3U8TestPart.tsx
··· 20 20 enabled?: boolean; 21 21 onToggle?: (enabled: boolean) => void; 22 22 }) { 23 - const urlWithoutProtocol = props.url ? new URL(props.url).host : null; 23 + const urlWithoutProtocol = useMemo(() => { 24 + if (!props.url) return null; 25 + try { 26 + return new URL(props.url).host; 27 + } catch { 28 + // Handle malformed URLs gracefully 29 + return props.url; 30 + } 31 + }, [props.url]); 24 32 25 33 return ( 26 34 <div className="flex mb-2">