fix: update axios request to include base URL in getMeta function and refactor decodeHtml function in posts

This commit is contained in:
himanshu8443
2025-06-18 20:22:26 +05:30
parent 7b8bd2be97
commit 5051ccb916
2 changed files with 25 additions and 24 deletions

View File

@@ -9,8 +9,10 @@ export const getMeta = async function ({
}): Promise<Info> {
try {
const { axios, cheerio, getBaseUrl } = providerContext;
const baseUrl = await getBaseUrl("protonMovies");
console.log("all", link);
const res = await axios.get(link);
const res = await axios.get(`${baseUrl}${link}`);
const data = res.data;
function decodeHtml(encodedArray: string[]): string {
@@ -62,7 +64,6 @@ export const getMeta = async function ({
.slice(0, 3)
.get();
const baseUrl = await getBaseUrl("protonMovies");
const links: Link[] = [];
if (type === "movie") {