diff --git a/ashi/ashi.js b/ashi/ashi.js index 2211e6f..54abc6c 100644 --- a/ashi/ashi.js +++ b/ashi/ashi.js @@ -377,10 +377,9 @@ async function extractEpisodes(url) { const movieIDMatch = (htmlText.match(/
]*id="movie-rating"[^>]*data-id="([^"]+)"/) || [])[1]; if (!movieIDMatch) return JSON.stringify([{ error: "MovieID not found" }]); - const movieData = [{ name: "MovieID", data: movieIDMatch }]; - const tokenResponse = await fetchv2("https://ilovekai.simplepostrequest.workers.dev/ilovethighs", {}, "POST", JSON.stringify(movieData)); + const tokenResponse = await fetchv2("https://enc-dec.app/api/enc-movies-flix?text=" + encodeURIComponent(movieIDMatch)); 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 episodeListData = await (await fetchv2(episodeListUrl)).json(); @@ -394,7 +393,7 @@ async function extractEpisodes(url) { 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) => ({ number: parseInt(episodeMatches[index][2], 10),