fix: update search URLs to use m3u8 proxy for improved access

This commit is contained in:
himanshu8443
2025-07-31 13:53:20 +05:30
parent ee8f7f036c
commit d40642c986
4 changed files with 5 additions and 5 deletions

View File

@@ -76,14 +76,14 @@ async function posts(
): Promise<Post[]> {
try {
const { axios, cheerio } = providerContext;
const urlRes = await axios.get(url, {
const urlRes = await fetch(url, {
headers: {
...headers,
Referer: url,
},
signal,
});
const $ = cheerio.load(urlRes.data);
const $ = cheerio.load(await urlRes.text());
const posts: Post[] = [];
$(".blog-items")
?.children("article")

View File

@@ -60,7 +60,7 @@ export const getSearchPosts = async ({
const baseUrl = await getBaseUrl("Vega");
console.log("vegaGetPosts baseUrl:", providerValue, baseUrl);
const url = `${baseUrl}/page/${page}/?s=${searchQuery}`;
const url = `https://c.8man.workers.dev/?url=${baseUrl}/page/${page}/?s=${searchQuery}`;
console.log("vegaGetPosts url:", url);
return posts(baseUrl, url, signal, commonHeaders, axios, cheerio);