From aa4c922a33d83ba291aee761f0d6acb917981aa9 Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Sun, 13 Aug 2023 19:40:45 +0530 Subject: [PATCH] fix(animeCategory): added `animeCategory` name --- src/parsers/animeCategory.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parsers/animeCategory.ts b/src/parsers/animeCategory.ts index 7afe74c..025316e 100644 --- a/src/parsers/animeCategory.ts +++ b/src/parsers/animeCategory.ts @@ -47,6 +47,10 @@ async function scrapeAnimeCategory( const selector: SelectorType = "#main-content .tab-content .film_list-wrap .flw-item"; + const categoryNameSelector: SelectorType = + "#main-content .block_area .block_area-header .cat-heading"; + res.category = $(categoryNameSelector)?.text()?.trim() ?? category; + res.hasNextPage = $(".pagination > li").length > 0 ? $(".pagination li.active").length > 0