fix: update episode and post retrieval URLs for primeMirror

This commit is contained in:
himanshu8443
2025-07-09 16:26:25 +05:30
parent ef16ae1334
commit 8a5d63d6dc
4 changed files with 4 additions and 10 deletions

View File

@@ -17,9 +17,7 @@ const getEpisodes = function (_a) {
let providerValue = "netflixMirror"; let providerValue = "netflixMirror";
try { try {
const baseUrl = yield getBaseUrl("nfMirror"); const baseUrl = yield getBaseUrl("nfMirror");
const url = `${baseUrl}${providerValue === "netflixMirror" const url = `${baseUrl}${"/pv/episodes.php?s="}` +
? "/episodes.php?s="
: "/pv/episodes.php?s="}` +
link + link +
"&t=" + "&t=" +
Math.round(new Date().getTime() / 1000); Math.round(new Date().getTime() / 1000);

View File

@@ -82,7 +82,7 @@ const getSearchPosts = function (_a) {
const id = result === null || result === void 0 ? void 0 : result.id; const id = result === null || result === void 0 ? void 0 : result.id;
const image = providerValue === "netflixMirror" const image = providerValue === "netflixMirror"
? `https://imgcdn.media/poster/v/${id}.jpg` ? `https://imgcdn.media/poster/v/${id}.jpg`
: ""; : `https://imgcdn.media/pv/341/${id}.jpg`;
if (id) { if (id) {
catalog.push({ catalog.push({
title: title, title: title,

View File

@@ -12,11 +12,7 @@ export const getEpisodes = async function ({
try { try {
const baseUrl = await getBaseUrl("nfMirror"); const baseUrl = await getBaseUrl("nfMirror");
const url = const url =
`${baseUrl}${ `${baseUrl}${"/pv/episodes.php?s="}` +
providerValue === "netflixMirror"
? "/episodes.php?s="
: "/pv/episodes.php?s="
}` +
link + link +
"&t=" + "&t=" +
Math.round(new Date().getTime() / 1000); Math.round(new Date().getTime() / 1000);

View File

@@ -107,7 +107,7 @@ export const getSearchPosts = async function ({
const image = const image =
providerValue === "netflixMirror" providerValue === "netflixMirror"
? `https://imgcdn.media/poster/v/${id}.jpg` ? `https://imgcdn.media/poster/v/${id}.jpg`
: ""; : `https://imgcdn.media/pv/341/${id}.jpg`;
if (id) { if (id) {
catalog.push({ catalog.push({