fix(animeCategory): added animeCategory name
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user