fix showbox

This commit is contained in:
himanshu8443
2025-06-23 21:13:22 +05:30
parent f9906e1964
commit dcf40b6f74
6 changed files with 14 additions and 45 deletions

View File

@@ -8,8 +8,9 @@ export const getMeta = async function ({
providerContext: ProviderContext;
}): Promise<Info> {
try {
const { axios, cheerio } = providerContext;
const url = link;
const { axios, cheerio, getBaseUrl } = providerContext;
const baseUrlShowbox = await getBaseUrl("showbox");
const url = baseUrlShowbox + link;
const res = await axios.get(url);
const data = res.data;
const $ = cheerio.load(data);
@@ -59,6 +60,7 @@ export const getMeta = async function ({
linkList: links,
};
} catch (err) {
console.error("Error fetching metadata:", err);
return {
title: "",
rating: "",