Skip to content

Commit

Permalink
added popularity to mal (#226)
Browse files Browse the repository at this point in the history
Co-authored-by: LawlietAnime <ryusakilawlietgithub@gmail.com>
  • Loading branch information
inumakieu and LawlietAnime authored Feb 3, 2023
1 parent afa149e commit daf57e6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/providers/meta/mal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ class Myanimelist extends AnimeParser {
.trim()
.split(',');
animeInfo.studios = [];
animeInfo.popularity = parseInt($('.numbers.popularity').text().trim().replace("Popularity #", "").trim())

const producers: string[] = [];
$('a').each(function (i: number, link: any) {
Expand Down Expand Up @@ -650,9 +651,9 @@ class Myanimelist extends AnimeParser {

export default Myanimelist;

// (async () => {
// const mal = new Myanimelist();
// // const search = await mal.search('one piece');
// const info = await mal.fetchAnimeInfo('21', true);
// console.log(info);
// })();
(async () => {
const mal = new Myanimelist();
// const search = await mal.search('one piece');
const info = await mal.fetchAnimeInfo('21', true);
console.log(info);
})();

0 comments on commit daf57e6

Please sign in to comment.