fix: handle stream link
This commit is contained in:
1 parent
c77dcf913d
commit
7b5420a989
1 file changed
+3
-5
+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 (
|
||||||
|
|||||||
Reference in new issue
Block a user