Anime Info
Get information about an anime (Uses Anilist API, here
Usage
Zoro.getAnimeInfoByName('<Anime Name>')
Example
let zoroResults = await Zoro.zoroSearch("Horimiya"); // Searching for Horimiya
let firstResult = zoroResults[0]; // Getting the first result
let info = await Zoro.getAnimeInfoByName(firstResult.eng_title); // Getting the info of the first result
Returns
{
episodes: number,
season: MediaSeason,
seasonYear: number,
duration: number,
source: MediaSource,
}
Note
Sometimes Anilist API might give invalid data, so it's recommended to check if the data is valid before using it.