mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
fix: update episode and post retrieval URLs for primeMirror
This commit is contained in:
4
dist/primeMirror/episodes.js
vendored
4
dist/primeMirror/episodes.js
vendored
@@ -17,9 +17,7 @@ const getEpisodes = function (_a) {
|
||||
let providerValue = "netflixMirror";
|
||||
try {
|
||||
const baseUrl = yield getBaseUrl("nfMirror");
|
||||
const url = `${baseUrl}${providerValue === "netflixMirror"
|
||||
? "/episodes.php?s="
|
||||
: "/pv/episodes.php?s="}` +
|
||||
const url = `${baseUrl}${"/pv/episodes.php?s="}` +
|
||||
link +
|
||||
"&t=" +
|
||||
Math.round(new Date().getTime() / 1000);
|
||||
|
||||
2
dist/primeMirror/posts.js
vendored
2
dist/primeMirror/posts.js
vendored
@@ -82,7 +82,7 @@ const getSearchPosts = function (_a) {
|
||||
const id = result === null || result === void 0 ? void 0 : result.id;
|
||||
const image = providerValue === "netflixMirror"
|
||||
? `https://imgcdn.media/poster/v/${id}.jpg`
|
||||
: "";
|
||||
: `https://imgcdn.media/pv/341/${id}.jpg`;
|
||||
if (id) {
|
||||
catalog.push({
|
||||
title: title,
|
||||
|
||||
@@ -12,11 +12,7 @@ export const getEpisodes = async function ({
|
||||
try {
|
||||
const baseUrl = await getBaseUrl("nfMirror");
|
||||
const url =
|
||||
`${baseUrl}${
|
||||
providerValue === "netflixMirror"
|
||||
? "/episodes.php?s="
|
||||
: "/pv/episodes.php?s="
|
||||
}` +
|
||||
`${baseUrl}${"/pv/episodes.php?s="}` +
|
||||
link +
|
||||
"&t=" +
|
||||
Math.round(new Date().getTime() / 1000);
|
||||
|
||||
@@ -107,7 +107,7 @@ export const getSearchPosts = async function ({
|
||||
const image =
|
||||
providerValue === "netflixMirror"
|
||||
? `https://imgcdn.media/poster/v/${id}.jpg`
|
||||
: "";
|
||||
: `https://imgcdn.media/pv/341/${id}.jpg`;
|
||||
|
||||
if (id) {
|
||||
catalog.push({
|
||||
|
||||
Reference in New Issue
Block a user