fix: handle stream link

This commit is contained in:
Hryvenko Ihor committed 2026-05-01 13:50:44 +03:00
1 parent c77dcf913d
commit 7b5420a989
1 file changed
+3 -5
@@ -67,11 +67,9 @@ const Actions: FC<Props> = ({ torrent, title, provider, show }) => {
runtime: show.runtime?.toString() ?? '' runtime: show.runtime?.toString() ?? ''
}); });
fetch(`${M3UUrl}?${params}`, { const resolver = new Image();
method: 'GET' resolver.src = `${M3UUrl}?${params}`;
}) resolver.onerror = resolver.onload = () => setIsStreamPending(false);
.catch(() => {})
.finally(() => setIsStreamPending(false));
}; };
return ( return (