Update streamwish.ts

This commit is contained in:
Pas 2025-05-16 20:54:00 -06:00 committed by GitHub
parent 15917c523a
commit 6f18214cfc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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