mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-21 21:26:19 +01:00
Update ashi/ashi.js
This commit is contained in:
parent
2e8595909f
commit
6840ac1dc2
1 changed files with 3 additions and 4 deletions
|
|
@ -377,10 +377,9 @@ async function extractEpisodes(url) {
|
|||
const movieIDMatch = (htmlText.match(/<div class="detail-lower"[^>]*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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue