diff --git a/src/controllers/AnimeController.ts b/src/controllers/AnimeController.ts index 3bf0190..20657b5 100644 --- a/src/controllers/AnimeController.ts +++ b/src/controllers/AnimeController.ts @@ -646,7 +646,6 @@ export default class AnimeController { return res.status(200).json(resultRedis); } else { - console.log(id); if (isNaN(parseInt(id.split('/')[0]))) { if (id.split('/')[0] === 'ver') { data = await videoServersMonosChinos(id); diff --git a/src/utils/util.ts b/src/utils/util.ts index 106f1f3..b04f991 100644 --- a/src/utils/util.ts +++ b/src/utils/util.ts @@ -488,7 +488,7 @@ export const jkanimeInfo = async (id: string | undefined) => { return err; } - countEpisodes = $('div.navigation a') + countEpisodes = $('div.anime__pagination a') .map((index: number, element: cheerio.Element) => { return $(element).text(); }) @@ -701,12 +701,14 @@ export const videoServersJK = async (id: string) => { return err; } - const serverNames: string[] = $('div#reproductor-box li') + const serverNames: string[] = $('div.bg-servers a') .map((index: number, element: cheerio.Element) => { - return $(element).find('a').text(); + return $(element).text(); }) .get(); + console.log(serverNames); + $('script').each((index: number, element: cheerio.Element) => { if ($(element).html()!.includes('var video = [];')) { script = $(element).html();