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');