mirror of
https://github.com/p-stream/providers.git
synced 2026-03-11 17:55:36 +00:00
Update streamwish.ts
This commit is contained in:
parent
b056cade35
commit
afefd18a40
1 changed files with 1 additions and 4 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue