forked from 50n50/sources
Update ashi/ashi.js
This commit is contained in:
+3
-4
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user