Update ashi/ashi.js

This commit is contained in:
aka paul 2025-11-01 12:18:44 +00:00
parent 2e8595909f
commit 6840ac1dc2

View file

@ -377,10 +377,9 @@ async function extractEpisodes(url) {
const movieIDMatch = (htmlText.match(/<div class="detail-lower"[^>]*id="movie-rating"[^>]*data-id="([^"]+)"/) || [])[1]; const movieIDMatch = (htmlText.match(/<div class="detail-lower"[^>]*id="movie-rating"[^>]*data-id="([^"]+)"/) || [])[1];
if (!movieIDMatch) return JSON.stringify([{ error: "MovieID not found" }]); if (!movieIDMatch) return JSON.stringify([{ error: "MovieID not found" }]);
const movieData = [{ name: "MovieID", data: movieIDMatch }]; const tokenResponse = await fetchv2("https://enc-dec.app/api/enc-movies-flix?text=" + encodeURIComponent(movieIDMatch));
const tokenResponse = await fetchv2("https://ilovekai.simplepostrequest.workers.dev/ilovethighs", {}, "POST", JSON.stringify(movieData));
const temp = await tokenResponse.json(); const temp = await tokenResponse.json();
const token = temp[0]?.data; const token = temp.result;
const episodeListUrl = `https://1movies.bz/ajax/episodes/list?id=${movieIDMatch}&_=${token}`; const episodeListUrl = `https://1movies.bz/ajax/episodes/list?id=${movieIDMatch}&_=${token}`;
const episodeListData = await (await fetchv2(episodeListUrl)).json(); const episodeListData = await (await fetchv2(episodeListUrl)).json();
@ -394,7 +393,7 @@ async function extractEpisodes(url) {
data: episodeToken data: episodeToken
})); }));
const batchResults = await sendEpisodes("https://ilovekai.simplepostrequest.workers.dev/?ilovethighs", episodeData); const batchResults = await sendEpisodes("https://enc-dec.app/api/enc-movies-flix?text", episodeData);
const episodes = batchResults.map((result, index) => ({ const episodes = batchResults.map((result, index) => ({
number: parseInt(episodeMatches[index][2], 10), number: parseInt(episodeMatches[index][2], 10),