mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
fix: update API endpoint to use new base URL for net-proxy requests
This commit is contained in:
@@ -257,7 +257,7 @@ async function modExtractor(url: string, providerContext: ProviderContext) {
|
||||
// find input with name="_wp_http2"
|
||||
const wpHttp2 = $("input").attr("name", "_wp_http2").val();
|
||||
|
||||
// console.log('wpHttp2', wpHttp2);
|
||||
console.log("wpHttp2", wpHttp2);
|
||||
|
||||
// form data
|
||||
var bodyFormData = new FormData();
|
||||
|
||||
@@ -9,7 +9,7 @@ export const getMeta = async function ({
|
||||
try {
|
||||
const isPrime =
|
||||
providerValue === "primeMirror" ? "isPrime=true" : "isPrime=false";
|
||||
const url = `https://netmirror.zendax.tech/api/net-proxy?${isPrime}&url=${encodeURIComponent(
|
||||
const url = `https://netmirror.8man.dev/api/net-proxy?${isPrime}&url=${encodeURIComponent(
|
||||
link
|
||||
)}`;
|
||||
console.log("nfifo", url);
|
||||
|
||||
@@ -24,7 +24,7 @@ export const getPosts = async function ({
|
||||
const isPrime =
|
||||
providerValue === "primeMirror" ? "isPrime=true" : "isPrime=false";
|
||||
|
||||
const url = `https://netmirror.zendax.tech/api/net-proxy?${isPrime}&url=${
|
||||
const url = `https://netmirror.8man.dev/api/net-proxy?${isPrime}&url=${
|
||||
baseUrl + filter
|
||||
}`;
|
||||
|
||||
@@ -89,7 +89,7 @@ export const getSearchPosts = async function ({
|
||||
const isPrime =
|
||||
providerValue === "primeMirror" ? "isPrime=true" : "isPrime=false";
|
||||
|
||||
const url = `https://netmirror.zendax.tech/api/net-proxy?${isPrime}&url=${baseUrl}${
|
||||
const url = `https://netmirror.8man.dev/api/net-proxy?${isPrime}&url=${baseUrl}${
|
||||
providerValue === "netflixMirror" ? "" : "/pv"
|
||||
}/search.php?s=${encodeURI(searchQuery)}`;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ export const getStream = async ({
|
||||
try {
|
||||
let providerValue = "netflixMirror";
|
||||
const baseUrl = "https://netfree2.cc";
|
||||
const url = `https://netmirror.zendax.tech/api/net-proxy?url=${baseUrl}${
|
||||
const url = `https://netmirror.8man.dev/api/net-proxy?url=${baseUrl}${
|
||||
providerValue === "netflixMirror"
|
||||
? "/mobile/playlist.php?id="
|
||||
: "/pv/playlist.php?id="
|
||||
|
||||
@@ -9,7 +9,7 @@ export const getMeta = async function ({
|
||||
try {
|
||||
const isPrime =
|
||||
providerValue === "primeMirror" ? "isPrime=true" : "isPrime=false";
|
||||
const url = `https://netmirror.zendax.tech/api/net-proxy?${isPrime}&url=${encodeURIComponent(
|
||||
const url = `https://netmirror.8man.dev/api/net-proxy?${isPrime}&url=${encodeURIComponent(
|
||||
link
|
||||
)}`;
|
||||
console.log("nfifo", url);
|
||||
|
||||
@@ -24,7 +24,7 @@ export const getPosts = async function ({
|
||||
const isPrime =
|
||||
providerValue === "primeMirror" ? "isPrime=true" : "isPrime=false";
|
||||
|
||||
const url = `https://netmirror.zendax.tech/api/net-proxy?${isPrime}&url=${
|
||||
const url = `https://netmirror.8man.dev/api/net-proxy?${isPrime}&url=${
|
||||
baseUrl + filter
|
||||
}`;
|
||||
|
||||
@@ -89,7 +89,7 @@ export const getSearchPosts = async function ({
|
||||
const isPrime =
|
||||
providerValue === "primeMirror" ? "isPrime=true" : "isPrime=false";
|
||||
|
||||
const url = `https://netmirror.zendax.tech/api/net-proxy?${isPrime}&url=${baseUrl}${
|
||||
const url = `https://netmirror.8man.dev/api/net-proxy?${isPrime}&url=${baseUrl}${
|
||||
providerValue === "netflixMirror" ? "" : "/pv"
|
||||
}/search.php?s=${encodeURI(searchQuery)}`;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ export const getStream = async ({
|
||||
try {
|
||||
let providerValue = "primeMirror";
|
||||
const baseUrl = "https://netfree2.cc";
|
||||
const url = `https://netmirror.zendax.tech/api/net-proxy?url=${baseUrl}${
|
||||
const url = `https://netmirror.8man.dev/api/net-proxy?url=${baseUrl}${
|
||||
providerValue === "netflixMirror"
|
||||
? "/mobile/playlist.php?id="
|
||||
: "/pv/playlist.php?id="
|
||||
|
||||
@@ -73,7 +73,7 @@ export const getMeta = async ({
|
||||
}
|
||||
// console.log(image);
|
||||
|
||||
// console.log({title, synopsis, image, imdbId, type});
|
||||
console.log({ title, synopsis, image, imdbId, type });
|
||||
/// Links
|
||||
const hr = infoContainer?.first()?.find("hr");
|
||||
const list = hr?.nextUntil("hr");
|
||||
@@ -103,7 +103,6 @@ export const getMeta = async ({
|
||||
)
|
||||
?.parent()
|
||||
?.attr("href");
|
||||
console.log(title);
|
||||
const episodesLink =
|
||||
(vcloudLinks
|
||||
? vcloudLinks
|
||||
|
||||
Reference in New Issue
Block a user