fix: Update catalog titles and filters for consistency

This commit is contained in:
Himanshu
2025-11-11 20:47:31 +05:30
parent 9603ffe71c
commit 40112eab19
4 changed files with 8 additions and 8 deletions

View File

@@ -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",
},
];

View File

@@ -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 });
};