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() ?? ''
});
fetch(`${M3UUrl}?${params}`, {
method: 'GET'
})
.catch(() => {})
.finally(() => setIsStreamPending(false));
const resolver = new Image();
resolver.src = `${M3UUrl}?${params}`;
resolver.onerror = resolver.onload = () => setIsStreamPending(false);
};
return (