mirror of
https://github.com/p-stream/providers.git
synced 2026-05-08 04:40:06 +00:00
parent
6de1e1f63f
commit
75bf64ca97
1 changed files with 1 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ function embed(provider: { id: string; name: string; rank: number }) {
|
||||||
const encodedUrl = encodeURIComponent(ctx.url);
|
const encodedUrl = encodeURIComponent(ctx.url);
|
||||||
const apiUrl = `https://ws-m3u8.moonpic.qzz.io/m3u8/${encodedUrl}`;
|
const apiUrl = `https://ws-m3u8.moonpic.qzz.io/m3u8/${encodedUrl}`;
|
||||||
|
|
||||||
const response = await ctx.fetcher(apiUrl, {
|
const response = await fetcher(apiUrl, {
|
||||||
headers: {
|
headers: {
|
||||||
Accept: 'application/json',
|
Accept: 'application/json',
|
||||||
// 'ngrok-skip-browser-warning': 'true', // this header bypass ngrok warning
|
// 'ngrok-skip-browser-warning': 'true', // this header bypass ngrok warning
|
||||||
|
|
@ -43,8 +43,6 @@ function embed(provider: { id: string; name: string; rank: number }) {
|
||||||
const videoUrl = data.m3u8;
|
const videoUrl = data.m3u8;
|
||||||
if (!videoUrl) throw new NotFoundError('No video URL found');
|
if (!videoUrl) throw new NotFoundError('No video URL found');
|
||||||
|
|
||||||
ctx.progress(99);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
stream: [
|
stream: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue