fix: update episodesLink construction in getMeta and limit catalog size in posts

This commit is contained in:
himanshu8443
2025-08-15 17:03:52 +05:30
parent 712234fac9
commit 4a1d6394a1
4 changed files with 4 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ export const getMeta = async function ({
if (itemTitle.endsWith("/")) {
const cleanTitle = itemTitle.replace(/\/$/, "");
links.push({
episodesLink: fullLink,
episodesLink: link + itemLink + fullLink,
title: cleanTitle,
});
}

View File

@@ -120,7 +120,7 @@ async function posts({
}
});
return catalog;
return catalog.slice(0, 50);
} catch (err) {
console.error("111477 directory listing error:", err);
return [];