update
This commit is contained in:
@@ -58,7 +58,7 @@ async function extractEpisodes(url) {
|
||||
const html = await response.text();
|
||||
const episodes = [];
|
||||
|
||||
const episodeRegex = /<a[^>]+id="([^"]+)"[^>]*>[\s\S]*?<div class='[^']*watch2 bc'[^>]*>(\d+)<\/div>/g;
|
||||
const episodeRegex = /<a[^>]+id="([^"]+)"[^>]*>[\s\S]*?<div class='watch2[^']*'>(\d+)<\/div>/g;
|
||||
|
||||
let match;
|
||||
while ((match = episodeRegex.exec(html)) !== null) {
|
||||
@@ -75,7 +75,6 @@ async function extractEpisodes(url) {
|
||||
|
||||
episodes.reverse();
|
||||
|
||||
console.log(episodes);
|
||||
return JSON.stringify(episodes);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user