mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
fix: await getBaseUrl in meta and posts
This commit is contained in:
@@ -9,7 +9,7 @@ export const getMeta = async function ({
|
||||
}): Promise<Info> {
|
||||
try {
|
||||
const { axios, cheerio, getBaseUrl } = providerContext;
|
||||
const baseUrl = getBaseUrl("movieBox");
|
||||
const baseUrl = await getBaseUrl("movieBox");
|
||||
const links: Link[] = [];
|
||||
// this is just a proxy please host your own if you want to use this code:- https://github.com/himanshu8443/Cf-Workers/blob/main/src/dob-worker/index.js
|
||||
const response = await fetch("https://dob-worker.8man.workers.dev", {
|
||||
|
||||
@@ -17,7 +17,9 @@ export const getPosts = async function ({
|
||||
if (page > 1) {
|
||||
return posts;
|
||||
}
|
||||
const baseUrl = getBaseUrl("movieBox");
|
||||
const baseUrl = await getBaseUrl("movieBox");
|
||||
console.log("baseUrl", baseUrl);
|
||||
|
||||
const url = `${baseUrl}/wefeed-mobile-bff/tab-operating?page=3&tabId=0&version=2fe0d7c224603ff7b0df294b46d3b84b`;
|
||||
|
||||
const response = await fetch("https://dob-worker.8man.workers.dev", {
|
||||
|
||||
Reference in New Issue
Block a user