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