From 7b5420a98922437ecb6f83b06079275375d2c72f Mon Sep 17 00:00:00 2001 From: Hryvenko Ihor Date: Fri, 1 May 2026 13:50:44 +0300 Subject: [PATCH] fix: handle stream link --- .../components/TorrentsTable/components/Actions/index.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx b/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx index b8a1d7a..db2e21f 100644 --- a/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx +++ b/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx @@ -67,11 +67,9 @@ const Actions: FC = ({ 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 (