We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cc5e94 commit b01bd9eCopy full SHA for b01bd9e
src/gogoAnime.ts
@@ -429,6 +429,26 @@ export default class GoGoAnime {
429
};
430
}
431
432
+ async genreList(
433
+ id: string,
434
+ page = 1,
435
+ axiosConfig?: AxiosRequestConfig
436
+ ): Promise<IPagination<IEntity>> {
437
+ const res = await axios.get(
438
+ this.getUrlWithBase(`/genre/${id}`, { page }),
439
+ axiosConfig
440
+ );
441
+ const $ = cheerioLoad(res.data);
442
+
443
+ const { paginations, data } = this._getPaginatedAnimeList($);
444
445
+ return {
446
+ page,
447
+ data,
448
+ paginations
449
+ };
450
+ }
451
452
async search(
453
keyword: string,
454
page?: number,
0 commit comments