mirror of
https://git.luna-app.eu/50n50/sources
synced 2026-01-12 01:18:11 +01:00
Update 1movies/1movies.js
This commit is contained in:
parent
2ec41daa2a
commit
757916982b
1 changed files with 6 additions and 6 deletions
|
|
@ -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 = (/<div class="description text-expand">([\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(/<div class="detail-lower"[^>]*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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue