diff --git a/src/providers/embeds/streamwish.ts b/src/providers/embeds/streamwish.ts index 5b34de0..16c2e63 100644 --- a/src/providers/embeds/streamwish.ts +++ b/src/providers/embeds/streamwish.ts @@ -30,7 +30,7 @@ function embed(provider: { id: string; name: string; rank: number }) { const encodedUrl = encodeURIComponent(ctx.url); const apiUrl = `https://ws-m3u8.moonpic.qzz.io/m3u8/${encodedUrl}`; - const response = await fetcher(apiUrl, { + const response = await ctx.fetcher(apiUrl, { headers: { Accept: 'application/json', // 'ngrok-skip-browser-warning': 'true', // this header bypass ngrok warning @@ -43,6 +43,8 @@ function embed(provider: { id: string; name: string; rank: number }) { const videoUrl = data.m3u8; if (!videoUrl) throw new NotFoundError('No video URL found'); + ctx.progress(99); + return { stream: [ {