Skip to content

Commit

Permalink
Merge pull request #160 from koikiss-dev/zuka
Browse files Browse the repository at this point in the history
The getAnime function caused slowness when searching for an anime
  • Loading branch information
Mawfyy authored Mar 21, 2024
2 parents 10c9802 + 9a3bd68 commit 6d196d6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/scraper/sites/anime/monoschinos/Monoschinos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,14 @@ async function getLastAnimes(url?: string): Promise<types.Anime[]> {
for (let i = 0; i < elements.length; i++) {
const href = $(elements[i]).find('a').attr('href');
if (utils.isUsableValue(href) && href !== 'https://monoschinos2.com/emision?p=2') {
animes.push(await getAnime(href));
//animes.push(await getAnime(href));

let anime = new types.Anime();
anime.url = $(elements[i]).find('a').attr('href');
anime.image = new types.Image($(elements[i]).find('a img').attr('src'));
anime.name = $(elements[i]).find('h3.seristitles').text();

animes.push(anime);
}
}
return animes;
Expand Down

0 comments on commit 6d196d6

Please sign in to comment.