fix(animeCategory): added animeCategory name

This commit is contained in:
Ritesh Ghosh
2023-08-13 19:40:45 +05:30
parent 09ddda2799
commit aa4c922a33
+4
View File
@@ -47,6 +47,10 @@ async function scrapeAnimeCategory(
const selector: SelectorType = const selector: SelectorType =
"#main-content .tab-content .film_list-wrap .flw-item"; "#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 = res.hasNextPage =
$(".pagination > li").length > 0 $(".pagination > li").length > 0
? $(".pagination li.active").length > 0 ? $(".pagination li.active").length > 0