diff --git a/1movies/1movies.js b/1movies/1movies.js
index d7942ea..72e5741 100644
--- a/1movies/1movies.js
+++ b/1movies/1movies.js
@@ -44,7 +44,7 @@ async function searchResults(query) {
`${searchBaseUrl}${encodedQuery}&page=3`
];
- const responses = await Promise.all(urls.map(url => fetchv2(url)));
+ const responses = await Promise.all(urls.map(url => fetchv2("https://deno-proxies-sznvnpnxwhbv.deno.dev/?url=" + encodeURIComponent(url))));
const htmlTexts = await Promise.all(responses.map(response => response.text()));
@@ -66,7 +66,7 @@ async function searchResults(query) {
async function extractDetails(url) {
try {
- const response = await fetchv2(url);
+ const response = await fetchv2("https://deno-proxies-sznvnpnxwhbv.deno.dev/?url=" + encodeURIComponent(url));
const htmlText = await response.text();
const descriptionMatch = (/
([\s\S]*?)<\/div>/.exec(htmlText) || [])[1];
@@ -90,7 +90,7 @@ async function extractDetails(url) {
async function extractEpisodes(movieUrl) {
try {
- const response = await fetchv2(movieUrl);
+ const response = await fetchv2("https://deno-proxies-sznvnpnxwhbv.deno.dev/?url=" + encodeURIComponent(movieUrl));
const htmlText = await response.text();
const movieIDMatch = (htmlText.match(/
]*id="movie-rating"[^>]*data-id="([^"]+)"/) || [])[1];
if (!movieIDMatch) {
@@ -105,7 +105,7 @@ async function extractEpisodes(movieUrl) {
const token = movieIdTokenData.result;
const episodeListUrl = `https://1movies.bz/ajax/episodes/list?id=${movieIDMatch}&_=${token}`;
- const episodeListResponse = await fetchv2(episodeListUrl);
+ const episodeListResponse = await fetchv2("https://deno-proxies-sznvnpnxwhbv.deno.dev/?url=" + encodeURIComponent(episodeListUrl));
const episodeListData = await episodeListResponse.json();
const cleanedHtml = cleanJsonHtml(episodeListData.result);
@@ -139,7 +139,7 @@ async function extractStreamUrl(url) {
}
const fetchUrl = `${url}`;
- const response = await fetchv2(fetchUrl);
+ const response = await fetchv2("https://deno-proxies-sznvnpnxwhbv.deno.dev/?url=" + encodeURIComponent(fetchUrl));
const responseData = await response.json();
const cleanedHtml = cleanJsonHtml(responseData.result);
@@ -170,7 +170,7 @@ async function extractStreamUrl(url) {
}
const streamUrl = `https://1movies.bz/ajax/links/view?id=${serverId}&_=${token}`;
- const streamResponse = await fetchv2(streamUrl);
+ const streamResponse = await fetchv2("https://deno-proxies-sznvnpnxwhbv.deno.dev/?url=" + encodeURIComponent(streamUrl));
const streamData = await streamResponse.json();
if (!streamData.result) {