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";
|
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);
|
||||||
|
|||||||
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 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,
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user