fix: update getPosts and getSearchPosts to include common headers and add retry logic

fix: change stream URL in getStream function
This commit is contained in:
Himanshu
2026-04-16 20:04:58 +05:30
parent 93d8acec5e
commit 4256b05d2b
5 changed files with 47 additions and 25 deletions

View File

@@ -15,7 +15,7 @@ export const getStream = async function ({
const { axios, cheerio } = providerContext;
const stream: Stream[] = [];
const [, epId] = id.split("&");
const url = `https://febbox.vercel.app/api/video-quality?fid=${epId}`;
const url = `https://feb.8man.workers.dev/?fid=${epId}`;
const res = await axios.get(url, { signal });
const data = res.data;
const $ = cheerio.load(data.html);
@@ -35,6 +35,7 @@ export const getStream = async function ({
});
}
});
console.log(stream);
return stream;
} catch (err) {
return [];