mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
fix: update base URL in getPosts function and disable specific providers in manifest.json
This commit is contained in:
@@ -35,7 +35,7 @@ export const getPosts = async ({
|
||||
providerContext: ProviderContext;
|
||||
}): Promise<Post[]> => {
|
||||
const { getBaseUrl, axios, cheerio } = providerContext;
|
||||
const baseUrl = await getBaseUrl("Vega");
|
||||
const baseUrl = await getBaseUrl("lux");
|
||||
|
||||
console.log("vegaGetPosts baseUrl:", providerValue, baseUrl);
|
||||
const url = `${baseUrl}/${filter}/page/${page}/`;
|
||||
@@ -139,6 +139,7 @@ async function posts(
|
||||
$(element).find("a").find("img").attr("data-lazy-src") ||
|
||||
$(element).find("a").find("img").attr("data-src") ||
|
||||
$(element).find("a").find("img").attr("src") ||
|
||||
$(element).find("img").attr("data-src") ||
|
||||
$(element).find("img").attr("src") ||
|
||||
"",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user