mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
fix: Update catalog titles and filters for consistency
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
export const catalog = [
|
||||
{
|
||||
title: "Popular Movies",
|
||||
title: "Home",
|
||||
filter: "/category/new-movies-10810.html",
|
||||
},
|
||||
{
|
||||
title: "Latest TV Shows",
|
||||
filter: "/category/new-series-10811.html",
|
||||
filter: "/category/new-series-10811",
|
||||
},
|
||||
{
|
||||
title: "Anime",
|
||||
filter: "/category/anime-10812.html",
|
||||
filter: "/category/anime-10812",
|
||||
},
|
||||
{
|
||||
title: "4K HDR",
|
||||
filter: "/category/4k-hdr-10776.html",
|
||||
filter: "/category/4k-hdr-10776",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ export const getPosts = async function ({
|
||||
}): Promise<Post[]> {
|
||||
const { getBaseUrl, cheerio } = providerContext;
|
||||
const baseUrl = await getBaseUrl("4khdhub");
|
||||
const url = `${baseUrl + filter}/page/${page}.html`;
|
||||
const url = `${baseUrl + filter}/page/${page}`;
|
||||
console.log("4khdhubGetPosts url", url);
|
||||
return posts({ url, signal, cheerio });
|
||||
};
|
||||
@@ -33,7 +33,7 @@ export const getSearchPosts = async function ({
|
||||
}): Promise<Post[]> {
|
||||
const { getBaseUrl, cheerio } = providerContext;
|
||||
const baseUrl = await getBaseUrl("4khdhub");
|
||||
const url = `${baseUrl}/page/${page}.html?s=${searchQuery}`;
|
||||
const url = `${baseUrl}/page/${page}?s=${searchQuery}`;
|
||||
return posts({ url, signal, cheerio });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user