Skip to content

Latest commit

 

History

History
130 lines (107 loc) · 4.84 KB

monoschinos.md

File metadata and controls

130 lines (107 loc) · 4.84 KB

MonosChinos

const monoschinos = new ANIME.MonosChinos();

Methods

search

Note: This method is a subclass of the BaseParser class. meaning it is available across most categories.

Parameters

Parameter Type Description
query string query to search for. (In this case, We're searching for Jujutsu Kaisen 2)
monoschinos.search("Jujutsu Kaisen").then(data => {
  console.log(data);
})

returns a promise which resolves into an array of anime. (Promise<ISearch<IAnimeResult[]>>)
output:

{
    hasNextPage: false,
    results: [
        {
            id: 'jujutsu-kaisen-2nd-season-sub-espanol',
            title: 'Jujutsu Kaisen 2nd Season',
            url: 'https://monoschinos2.com/anime/jujutsu-kaisen-2nd-season-sub-espanol',
            image: 'https://monoschinos2.com/public/img/anime.png',
            releaseDate: '2023'
        },
        {
            id: 'jujutsu-kaisen-0-movie-sub-espanol',
            title: 'Jujutsu Kaisen 0 Movie',
            url: 'https://monoschinos2.com/anime/jujutsu-kaisen-0-movie-sub-espanol',
            image: 'https://monoschinos2.com/public/img/anime.png',
            releaseDate: '2021'
        },
        {...},
        ...
    ]
}

fetchAnimeInfo

Parameters

Parameter Type Description
id string takes anime id as a parameter. (anime id can be found in the anime search results or anime info object)
totalEpisodes? number takes page number as a parameter

Why total episodes? The source to know the total episodes is blocked by a token and, since urls are similar, they can be built from scratch.

If no value is passed, it will give you 1000 episodes by default.

monoschinos.fetchAnimeInfo("jujutsu-kaisen-sub-espanol", 24).then(data => {
  console.log(data);
})

returns a promise which resolves into an anime info object (including the episodes). (Promise<IAnimeInfo>)
output:

{
    id: 'jujutsu-kaisen-sub-espanol',
    title: 'Jujutsu Kaisen',
    url: 'https://monoschinos2.com/anime/jujutsu-kaisen-sub-espanol',
    genres: [ 'Acción', 'Escolares', 'Shonen', 'Sobrenatural' ],
    totalEpisodes: 24,
    image: 'https://monoschinos2.com/public/img/anime.png',
    description: 'En un mundo donde los demonios se alimentan de humanos desprevenidos fragmentos del legendario y temido demonio Ryoumen Sukuna....',
    episodes: [
        {
            id: 'jujutsu-kaisen-episodio-1',
            number: 1,
            url: 'https://monoschinos2.com/ver/jujutsu-kaisen-episodio-1'
        },
        {...},
        ...
    ]
}

fetchEpisodeSources

Parameters

Parameter Type Description
episodeId string takes episode id as a parameter. (episode id can be found in the anime info object)

Doesn't always work as this provider uses many different servers to store the episodes. Current working servers: Voe, Streamtape.

In this example, we're getting the sources for the first episode of Demon Slayer: Kimetsu no Yaiba Hashira Training Arc.

monoschinos.fetchEpisodeSources("jujutsu-kaisen-episodio-1").then(data => {
  console.log(data);
})

returns a promise which resolves into an array of episode sources. (Promise<ISource>)
output:

{
    sources: [
        {
            url: 'https://delivery-node-eegpnfut1s580fm4.voe-network.net/engine/hls2/01/11290/adyowzavymfa_,n,.urlset/master.m3u8?t=HvPh3pTk4ZpCEDbOBT62tYjoLACrObb2p9IXPeAp1fU&s=1728306400&e=14400&f=56451279&node=delivery-node-eegpnfut1s580fm4.voe-network.net&i=150.214&sp=2500&asn=198096',
            quality: 'default',
            isM3U8: true
        }
      ],
}

(back to anime providers list)