MCPcopy Index your code
hub / github.com/chrismichaelps/animeflv

github.com/chrismichaelps/animeflv @v1.0.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.5 ↗ · + Follow
23 symbols 37 edges 10 files 0 documented · 0% updated 3y agov1.0.5 · 2020-02-10★ 44
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

:triangular_flag_on_post: ANIMEFLV (version 1.0.5)

node version npm version Maintenance License: MIT Build Status

Animeflv is a custom API that has the entire catalog of the animeflv.net website. You can enjoy all the content with subtitles in Spanish and the latest in the world of anime for free.


Please, do not download version v1.0.0 from npm, I had made the mistake of leaving the parameters in the functions with predefined values. ️️️️❗️️️

:tada: Updates in version v1.0.5 :tada:

  • [x] v1.0.5 npm package publish.
  • [x] getAnimeInfo([id] , [title]) function implemented.
  • [x] downloadLinksByEpsId([epsId]) function implemented.

:rocket: Custom Animeflv API Link

Animeflv API

Animeflv GraphQL

For those developers who want to choose to use the API by consulting with GraphQL I leave an alternative

animeflv-gql

📚 Development Diary

Describe the purpose of the project and give clues about what the code does. For more information go to the following link Diary Reference.

Donations

Animeflv is an open source project licensed by MIT with continuous development. If you want me to continue maintaining this library and you are interested in continuing to use it, you can help me with a monetary help in the following link:

These are projects that take a lot of effort and time to maintain. So with your help I will be more motivated to continue maintaining the animeflv project. :)

:wrench: Developer usage

Set up project

Before cloning the repo be sure you have installed:

  • NODE (version >= 10.16.x)
  • NPM (version >= 6.9.x)

Then:

  • Choose a folder project in your system and switch in cd [folder path]
  • Clone the repo in your folder path git clone https://github.com/ChrisMichaelPerezSantiago/animeflv.git

Installation

In order to install the project and all dependencies, enter in the project folder and run npm install


Start the project

npm start

Test the project

npm test

API Documentation

📣Read this please | To get the videos!📣

getAnimeServers([id])

First of all I must mention that the url of the videos work only using the iframe element. To get the videos (servers) of each chapter, you only need to use the getAnimeServers function that receives the id of the episode as a parameter. To verify the id of each episode, look at the episodes property:

"episodes": [
  {
    "nextEpisodeDate": "2019-10-31"
  },
  {
    "episode": 1,
    "id": "53099/psychopass-3-1",
    "imagePreview": "https://cdn.animeflv.net/screenshots/3225/1/th_3.jpg"
  }
]

You just have to pass the id of the episode

getAnimeServers('53099/psychopass-3-1').then(doc => { console.log(doc) });

output

[ 
  { server: 'm3u8',
    title: 'Streamium',
    allow_mobile: true,
    code:
     'https://streamium.xyz/embed.php?hash=6a2e46c779a8fc2b558ad3eed8c8b71a' },
  { server: 'natsuki',
    title: 'Natsuki',
    allow_mobile: true,
    code:
     'https://s1.animeflv.net/embed.php?s=natsuki&v=RmJwQlJnZ2FTVnhEVUlWQlFaVTI4bGtZeDl5SWNGSi81VXVvampCbExiUWJ2M2VxbnhoOENVclNyTzlnMEY4elppYi9oN2tFU3h5V25FUjJYZkR5bUVzNUpjVU52Um9jckRzNWttTDVuN0hkMm1ZWkNXNGlkakFiNEtpdC8rYm8=' },
  { server: 'vs',
    title: 'Verystream',
    allow_mobile: true,
    code: 'https://verystream.com/e/jJxesD2YJeb/' },
  { server: 'fembed',
    title: 'Fembed',
    allow_mobile: true,
    code: 'https://www.fembed.com/v/py13gum5eq77dwe' },
  { server: 'mega',
    title: 'MEGA',
    url:
     'https://mega.nz/#!6bABAAiA!WSJbevmfuOAJqgOom1ypYb85Ir95Z9aG2xwQUFHv1RI',
    allow_mobile: true,
    code:
     'https://mega.nz/embed#!6bABAAiA!WSJbevmfuOAJqgOom1ypYb85Ir95Z9aG2xwQUFHv1RI' },
  { server: 'streamango',
    title: 'Mango',
    url: 'https://streamango.com/f/mqpemtfrmortdqlt/',
    allow_mobile: true,
    code: 'https://streamango.com/embed/mqpemtfrmortdqlt' },
  { server: 'okru',
    title: 'Okru',
    allow_mobile: true,
    code: 'https://ok.ru/videoembed/1531214301706' },
  { server: 'yu',
    title: 'YourUpload',
    allow_mobile: true,
    code: 'https://www.yourupload.com/embed/V3e21a2MFF4H' },
  { server: 'maru',
    title: 'Maru',
    allow_mobile: true,
    code:
     'https://my.mail.ru/video/embed/8995617145282894610#budyak.rus#6930' },
  { server: 'netu',
    title: 'Netu',
    allow_mobile: true,
    code:
     'https://hqq.tv/player/embed_player.php?vid=MW9SaW94TnNpMm4rb3cyWnhsNDV4dz09' } 
]

Now you just need to use the code property of each server and pass it to the iframe**

<iframe 
  src="https://streamium.xyz/embed.php?hash=6a2e46c779a8fc2b558ad3eed8c8b71a"
   width="100%"  
   height="100%" 
   frameborder="0" 
   allowfullscreen>
</iframe>

search([query])

// 20191030231015
// http://localhost:5000/api/v1/Search/tokyo%20ghoul

{
  "search": [
    {
      "title": "Tokyo Ghoul: Jack",
      "poster": "https://animeflv.nethttps://animeflv.net/uploads/animes/covers/2285.jpg",
      "synopsis": "OVA 4.5En Tokyo Ghoul: Jack, seguimos un incidente relacionado con un Ghoul devorador de humanos en el Distrito 13 de Tokio. Para descubrir la verdad de lo ocurrido a su amigo, el estudiante de instituto Taishi Fura persigue al Ghoul conocido como Lantern acompañado del joven investigador Kisho Arima. La historia cuenta cómo Arima y Fura se ...",
      "debut": null,
      "type": "OVA",
      "rating": "4.5",
      "episodes": [
        {
          "nextEpisodeDate": null
        },
        {
          "episode": 1,
          "id": "37923/tokyo-ghoul-jack-1",
          "imagePreview": "https://cdn.animeflv.net/screenshots/2285/1/th_3.jpg"
        }
      ]
    },
    {
      "title": "Tokyo Ghoul",
      "poster": "https://animeflv.nethttps://animeflv.net/uploads/animes/covers/1415.jpg",
      "synopsis": "Anime 4.5Extraños asesinatos se están sucediendo uno tras otro en Tokyo. Debido a las pruebas encontradas en las escenas, la policía concluye que los ataques son obra de ghouls que se comen a las personas. Kaneki y Hide, dos compañeros de clase, llegan a la conclusión de que si nadie ha visto nunca a esos necrófagos...",
      "debut": null,
      "type": "Anime",
      "rating": "4.5",
      "episodes": [
        {
          "nextEpisodeDate": null
        },
        {
          "episode": 12,
          "id": "28800/tokyo-ghoul-12",
          "imagePreview": "https://cdn.animeflv.net/screenshots/1415/12/th_3.jpg"
        },
        {
          "episode": 11,
          "id": "28459/tokyo-ghoul-11",
          "imagePreview": "https://cdn.animeflv.net/screenshots/1415/11/th_3.jpg"
        },
        {
          "episode": 10,
          "id": "28001/tokyo-ghoul-10",
          "imagePreview": "https://cdn.animeflv.net/screenshots/1415/10/th_3.jpg"
        },
        {
          "episode": 9,
          "id": "27741/tokyo-ghoul-9",
          "imagePreview": "https://cdn.animeflv.net/screenshots/1415/9/th_3.jpg"
        },
        {
          "episode": 8,
          "id": "27092/tokyo-ghoul-8",
          "imagePreview": "https://cdn.animeflv.net/screenshots/1415/8/th_3.jpg"
        },
        {
          "episode": 7,
          "id": "26689/tokyo-ghoul-7",
          "imagePreview": "https://cdn.animeflv.net/screenshots/1415/7/th_3.jpg"
        },
        {
          "episode": 6,
          "id": "26529/tokyo-ghoul-6",
          "imagePreview": "https://cdn.animeflv.net/screenshots/1415/6/th_3.jpg"
        },
        {
          "episode": 5,
          "id": "26431/tokyo-ghoul-5",
          "imagePreview": "https://cdn.animeflv.net/screenshots/1415/5/th_3.jpg"
        },
        {
          "episode": 4,
          "id": "26373/tokyo-ghoul-4",
          "imagePreview": "https://cdn.animeflv.net/screenshots/1415/4/th_3.jpg"
        },
        {
          "episode": 3,
          "id": "26278/tokyo-ghoul-3",
          "imagePreview": "https://cdn.animeflv.net/screenshots/1415/3/th_3.jpg"
        },
        {
          "episode": 2,
          "id": "26188/tokyo-ghoul-2",
          "imagePreview": "https://cdn.animeflv.net/screenshots/1415/2/th_3.jpg"
        },
        {
          "episode": 1,
          "id": "26103/tokyo-ghoul-1",
          "imagePreview": "https://cdn.animeflv.net/screenshots/1415/1/th_3.jpg"
        }
      ]
    },
  ]
}

latestAnimeAdded()

It will show N data per page , Total page unknown.

// 20191030104518
// http://localhost:5000/api/v1/LatestAnimeAdded

{
  "animes": [
    {
      "title": "Seishun Buta Yarou wa Yumemiru Shoujo no Yume wo Minai",
      "poster": "https://animeflv.net/uploads/animes/covers/3230.jpg",
      "synopsis": "Película 4.8En Fujisawa, donde los cielos son brillantes y los mares brillan, Sakuta Azusagawa está en su segundo año de secundaria. Sus días felices con su novia y estudiante de último año, Mai Sakurajima, se ven interrumpidos con la aparición de su primer enamoramiento, Shouko Makinohara. Por razones de...",
      "debut": null,
      "type": "Película",
      "rating": "4.8",
      "episodes": [
        {
          "nextEpisodeDate": null
        },
        {
          "episode": 1,
          "id": "53296/seishun-buta-yarou-wa-yumemiru-shoujo-no-yume-wo-minai-1",
          "imagePreview": "https://cdn.animeflv.net/screenshots/3230/1/th_3.jpg"
        }
      ]
    },
    {
      "title": "Pokemon (2019)",
      "poster": "https://animeflv.net/uploads/animes/covers/3229.jpg",
      "synopsis": "Anime 4.5Nueva temporada de Pokémon, titulada como la serie original de 1997.",
      "debut": "estreno",
      "type": "Anime",
      "rating": "4.5",
      "episodes": [
        {
          "nextEpisodeDate": "2019-11-24"
        },
        {
          "episode": 1,
          "id": "53283/pokemon-2019-1",
          "imagePreview": "https://cdn.animeflv.net/screenshots/3229/1/th_3.jpg"
        }
      ]
    },
  ]
}

latestEpisodesAdded()

It will show N data per page , Total page unknown.

// 20191030104703
// http://localhost:5000/api/v1/LatestEpisodesAdded

{
  "episodes": [
    {
      "title": "Radiant 2nd Season",
      "poster": "https://animeflv.net/uploads/animes/thumbs/3184.jpg",
      "episode": 5,
      "servers": [
        {
          "server": "m3u8",
          "title": "Streamium",
          "allow_mobile": true,
          "code": "https://streamium.xyz/embed.php?hash=aac84b2086a995b9bc83fb8eb2d627d9"
        },
        {
          "server": "natsuki",
          "title": "Natsuki",
          "allow_mobile": true,
          "code": "https://s1.animeflv.net/embed.php?s=natsuki&v=TU1Sc0FHRW1CelV6U3FsaDdiYkU0OEpVNUFndDBnYnhCRDRCTFpDTDFVNlFjc0JGcTdrWlM1aFRObXdWd3RoK1VRdUdpT2J3QXlUK0R3Wm94dU1mbHhvN0lsU1BKc3FHbUsycHpQa0pOQUJJbDQ3YmxKdXdvSEFkc2Y4MklxMW96bUdJd2k3aEZBWDFDQzNyYXd0WnZ3PT0="
        },
        {
          "server": "vs",
          "title": "Verystream",
          "allow_mobile": true,
          "code": "https://verystream.com/e/KxLfdtqQGtY/"
        },
        {
          "server": "fembed",
          "title": "Fembed",
          "allow_mobile": true,
          "code": "https://www.fembed.com/v/-z85qtpmljp2j0n"
        },
        {
          "server": "mega",
          "title": "MEGA",
          "url": "https://mega.nz/#!eeREmQDR!35kX8v-mJe0vzW-C4seMvQ1rPGqttj6anYneFOz0m6g",
          "allow_mobile": true,
          "code": "https://mega.nz/embed#!eeREmQDR!35kX8v-mJe0vzW-C4seMvQ1rPGqttj6anYneFOz0m6g"
        },
        {
          "server": "okru",
          "title": "Okru",
          "allow_mobile": true,
          "code": "https://ok.ru/videoembed/1723453344498"
        },
        {
          "server": "yu",
          "title": "YourUpload",
          "allow_mobile": true,
          "code": "https://www.yourupload.com/embed/34qV7t4n2jqk"
        },
        {
          "server": "maru",
          "title": "Maru",
          "allow_mobile": true,
          "code": "https://my.mail.ru/video/embed/8995617145282894650#budyak.rus#6970"
        }
      ]
    },
  ]
}

animeByGenres([genre], [sortBy] ,

Core symbols most depended-on inside this repo

animeEpisodesHandler
called by 9
src/api/api.js
urlify
called by 1
src/utils/index.js
animeExtraInfo
called by 1
src/api/api.js
getAnimeVideoPromo
called by 1
src/api/api.js
getAnimeCharacters
called by 1
src/api/api.js
getAnimeServers
called by 1
src/api/api.js
MergeRecursive
called by 0
src/utils/index.js
imgToBase64
called by 0
src/utils/index.js

Shape

Function 23

Languages

TypeScript100%

Modules by API surface

src/api/api.js17 symbols
src/utils/index.js3 symbols
src/middlewares/middlewares.js3 symbols

For agents

$ claude mcp add animeflv \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page