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
15917c523a
commit
6f18214cfc
1 changed files with 1 additions and 3 deletions
|
|
@ -27,12 +27,10 @@ function embed(provider: { id: string; name: string; rank: number }) {
|
|||
name: provider.name,
|
||||
rank: provider.rank,
|
||||
async scrape(ctx) {
|
||||
console.log('Starting scrape for StreamWish with URL:', ctx.url);
|
||||
|
||||
const encodedUrl = encodeURIComponent(ctx.url);
|
||||
const apiUrl = `https://ws-m3u8.moonpic.qzz.io/m3u8/${encodedUrl}`;
|
||||
|
||||
const response = await fetch(apiUrl, {
|
||||
const response = await fetcher(apiUrl, {
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
// 'ngrok-skip-browser-warning': 'true', // this header bypass ngrok warning
|
||||
|
|
|
|||
Loading…
Reference in a new issue