From afefd18a40c546c23e98409f01abe62fdcd99e9a Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Sun, 18 May 2025 09:47:15 -0600 Subject: [PATCH] Update streamwish.ts --- src/providers/embeds/streamwish.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/providers/embeds/streamwish.ts b/src/providers/embeds/streamwish.ts index af980eb..425610d 100644 --- a/src/providers/embeds/streamwish.ts +++ b/src/providers/embeds/streamwish.ts @@ -1,4 +1,3 @@ -/* eslint-disable no-console */ import { flags } from '@/entrypoint/utils/targets'; import { makeEmbed } from '@/providers/base'; import { NotFoundError } from '@/utils/errors'; @@ -42,9 +41,7 @@ function embed(provider: { id: string; name: string; rank: number }) { }, }); - if (!response.ok) throw new NotFoundError('No video URL found'); - const data = await response.json(); - + const data: { m3u8: string } = await response.json(); const videoUrl = data.m3u8; if (!videoUrl) throw new NotFoundError('No video URL found');