react-native-consumet 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -13
- package/android/src/main/assets/megacloud.decodedpng.js +605 -605
- package/android/src/main/assets/megacloud.getsrcs.js +713 -713
- package/lib/commonjs/extractors/asianload.js.map +1 -1
- package/lib/commonjs/extractors/filemoon.js.map +1 -1
- package/lib/commonjs/extractors/gogocdn.js.map +1 -1
- package/lib/commonjs/extractors/kisskh/kkey.js.map +1 -1
- package/lib/commonjs/extractors/kisskh/staticdata.js.map +1 -1
- package/lib/commonjs/extractors/kwik.js.map +1 -1
- package/lib/commonjs/extractors/megacloud/index.js.map +1 -1
- package/lib/commonjs/extractors/megacloud/megacloud.decodedpng.js.map +1 -1
- package/lib/commonjs/extractors/megaup.js +1 -1
- package/lib/commonjs/extractors/megaup.js.map +1 -1
- package/lib/commonjs/extractors/mixdrop.js.map +1 -1
- package/lib/commonjs/extractors/mp4player.js.map +1 -1
- package/lib/commonjs/extractors/mp4upload.js.map +1 -1
- package/lib/commonjs/extractors/rapidcloud.js.map +1 -1
- package/lib/commonjs/extractors/smashystream.js.map +1 -1
- package/lib/commonjs/extractors/streamhub.js.map +1 -1
- package/lib/commonjs/extractors/streamlare.js.map +1 -1
- package/lib/commonjs/extractors/streamsb.js.map +1 -1
- package/lib/commonjs/extractors/streamwish.js +12 -15
- package/lib/commonjs/extractors/streamwish.js.map +1 -1
- package/lib/commonjs/extractors/vidcloud.js.map +1 -1
- package/lib/commonjs/extractors/vidhide.js.map +1 -1
- package/lib/commonjs/extractors/vidmoly.js.map +1 -1
- package/lib/commonjs/extractors/vizcloud.js.map +1 -1
- package/lib/commonjs/extractors/voe.js.map +1 -1
- package/lib/commonjs/index.js +30 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/anime-parser.js.map +1 -1
- package/lib/commonjs/models/lightnovel-parser.js.map +1 -1
- package/lib/commonjs/models/manga-parser.js.map +1 -1
- package/lib/commonjs/models/movie-parser.js.map +1 -1
- package/lib/commonjs/models/proxy.js.map +1 -1
- package/lib/commonjs/models/video-extractor.js.map +1 -1
- package/lib/commonjs/providers/anime/anify.js.map +1 -1
- package/lib/commonjs/providers/anime/animedrive.js.map +1 -1
- package/lib/commonjs/providers/anime/animefox.js.map +1 -1
- package/lib/commonjs/providers/anime/animekai.js +5 -3
- package/lib/commonjs/providers/anime/animekai.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe.js +7 -8
- package/lib/commonjs/providers/anime/animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animesaturn.js.map +1 -1
- package/lib/commonjs/providers/anime/animeunity.js.map +1 -1
- package/lib/commonjs/providers/anime/anix.js.map +1 -1
- package/lib/commonjs/providers/anime/bilibili.js.map +1 -1
- package/lib/commonjs/providers/anime/gogoanime.js.map +1 -1
- package/lib/commonjs/providers/anime/index.js +0 -4
- package/lib/commonjs/providers/anime/index.js.map +1 -1
- package/lib/commonjs/providers/anime/kickassanime.js.map +1 -1
- package/lib/commonjs/providers/anime/marin.js.map +1 -1
- package/lib/commonjs/providers/anime/monoschinos.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro.js +1 -1
- package/lib/commonjs/providers/anime/zoro.js.map +1 -1
- package/lib/commonjs/providers/comics/getComics.js.map +1 -1
- package/lib/commonjs/providers/light-novels/novelupdates.js.map +1 -1
- package/lib/commonjs/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
- package/lib/commonjs/providers/manga/brmangas.js.map +1 -1
- package/lib/commonjs/providers/manga/comick.js.map +1 -1
- package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
- package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahost.js.map +1 -1
- package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapark.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
- package/lib/commonjs/providers/manga/mangareader.js.map +1 -1
- package/lib/commonjs/providers/manga/mangasee123.js.map +1 -1
- package/lib/commonjs/providers/manga/readmanga.js.map +1 -1
- package/lib/commonjs/providers/manga/vyvymanga.js.map +1 -1
- package/lib/commonjs/providers/meta/anilist.js +86 -106
- package/lib/commonjs/providers/meta/anilist.js.map +1 -1
- package/lib/commonjs/providers/meta/mal.js +2 -28
- package/lib/commonjs/providers/meta/mal.js.map +1 -1
- package/lib/commonjs/providers/meta/tmdb.js +22 -1
- package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
- package/lib/commonjs/providers/movies/dramacool.js.map +1 -1
- package/lib/commonjs/providers/movies/flixhq.js.map +1 -1
- package/lib/commonjs/providers/movies/fmovies.js.map +1 -1
- package/lib/commonjs/providers/movies/goku.js.map +1 -1
- package/lib/commonjs/providers/movies/kissasian.js.map +1 -1
- package/lib/commonjs/providers/movies/moviehdwatch.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies.js +2 -2
- package/lib/commonjs/providers/movies/multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/sflix.js.map +1 -1
- package/lib/commonjs/providers/movies/smashystream.js.map +1 -1
- package/lib/commonjs/providers/movies/turkish123.js.map +1 -1
- package/lib/commonjs/providers/movies/ummagurau.js.map +1 -1
- package/lib/commonjs/providers/movies/viewAsian.js.map +1 -1
- package/lib/commonjs/providers/news/animenewsnetwork.js.map +1 -1
- package/lib/commonjs/utils/providers-list.js +1 -1
- package/lib/commonjs/utils/providers-list.js.map +1 -1
- package/lib/commonjs/utils/queries.js.map +1 -1
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/extractors/asianload.js.map +1 -1
- package/lib/module/extractors/filemoon.js.map +1 -1
- package/lib/module/extractors/gogocdn.js.map +1 -1
- package/lib/module/extractors/kisskh/kkey.js.map +1 -1
- package/lib/module/extractors/kisskh/staticdata.js.map +1 -1
- package/lib/module/extractors/kwik.js.map +1 -1
- package/lib/module/extractors/megacloud/index.js.map +1 -1
- package/lib/module/extractors/megacloud/megacloud.decodedpng.js.map +1 -1
- package/lib/module/extractors/megaup.js +1 -1
- package/lib/module/extractors/megaup.js.map +1 -1
- package/lib/module/extractors/mixdrop.js.map +1 -1
- package/lib/module/extractors/mp4player.js.map +1 -1
- package/lib/module/extractors/mp4upload.js.map +1 -1
- package/lib/module/extractors/rapidcloud.js.map +1 -1
- package/lib/module/extractors/smashystream.js.map +1 -1
- package/lib/module/extractors/streamhub.js.map +1 -1
- package/lib/module/extractors/streamlare.js.map +1 -1
- package/lib/module/extractors/streamsb.js.map +1 -1
- package/lib/module/extractors/streamwish.js +12 -15
- package/lib/module/extractors/streamwish.js.map +1 -1
- package/lib/module/extractors/vidcloud.js.map +1 -1
- package/lib/module/extractors/vidhide.js.map +1 -1
- package/lib/module/extractors/vidmoly.js.map +1 -1
- package/lib/module/extractors/vizcloud.js.map +1 -1
- package/lib/module/extractors/voe.js.map +1 -1
- package/lib/module/index.js +6 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/anime-parser.js.map +1 -1
- package/lib/module/models/lightnovel-parser.js.map +1 -1
- package/lib/module/models/manga-parser.js.map +1 -1
- package/lib/module/models/movie-parser.js.map +1 -1
- package/lib/module/models/proxy.js.map +1 -1
- package/lib/module/models/video-extractor.js.map +1 -1
- package/lib/module/providers/anime/anify.js.map +1 -1
- package/lib/module/providers/anime/animedrive.js.map +1 -1
- package/lib/module/providers/anime/animefox.js.map +1 -1
- package/lib/module/providers/anime/animekai.js +5 -3
- package/lib/module/providers/anime/animekai.js.map +1 -1
- package/lib/module/providers/anime/animepahe.js +7 -8
- package/lib/module/providers/anime/animepahe.js.map +1 -1
- package/lib/module/providers/anime/animesaturn.js.map +1 -1
- package/lib/module/providers/anime/animeunity.js.map +1 -1
- package/lib/module/providers/anime/anix.js.map +1 -1
- package/lib/module/providers/anime/bilibili.js.map +1 -1
- package/lib/module/providers/anime/gogoanime.js.map +1 -1
- package/lib/module/providers/anime/index.js +0 -4
- package/lib/module/providers/anime/index.js.map +1 -1
- package/lib/module/providers/anime/kickassanime.js.map +1 -1
- package/lib/module/providers/anime/marin.js.map +1 -1
- package/lib/module/providers/anime/monoschinos.js.map +1 -1
- package/lib/module/providers/anime/zoro.js +1 -1
- package/lib/module/providers/anime/zoro.js.map +1 -1
- package/lib/module/providers/comics/getComics.js.map +1 -1
- package/lib/module/providers/light-novels/novelupdates.js.map +1 -1
- package/lib/module/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/module/providers/manga/asurascans.js.map +1 -1
- package/lib/module/providers/manga/brmangas.js.map +1 -1
- package/lib/module/providers/manga/comick.js.map +1 -1
- package/lib/module/providers/manga/flamescans.js.map +1 -1
- package/lib/module/providers/manga/mangadex.js.map +1 -1
- package/lib/module/providers/manga/mangahere.js.map +1 -1
- package/lib/module/providers/manga/mangahost.js.map +1 -1
- package/lib/module/providers/manga/mangakakalot.js.map +1 -1
- package/lib/module/providers/manga/mangapark.js.map +1 -1
- package/lib/module/providers/manga/mangapill.js.map +1 -1
- package/lib/module/providers/manga/mangareader.js.map +1 -1
- package/lib/module/providers/manga/mangasee123.js.map +1 -1
- package/lib/module/providers/manga/readmanga.js.map +1 -1
- package/lib/module/providers/manga/vyvymanga.js.map +1 -1
- package/lib/module/providers/meta/anilist.js +88 -108
- package/lib/module/providers/meta/anilist.js.map +1 -1
- package/lib/module/providers/meta/mal.js +2 -28
- package/lib/module/providers/meta/mal.js.map +1 -1
- package/lib/module/providers/meta/tmdb.js +22 -1
- package/lib/module/providers/meta/tmdb.js.map +1 -1
- package/lib/module/providers/movies/dramacool.js.map +1 -1
- package/lib/module/providers/movies/flixhq.js.map +1 -1
- package/lib/module/providers/movies/fmovies.js.map +1 -1
- package/lib/module/providers/movies/goku.js.map +1 -1
- package/lib/module/providers/movies/kissasian.js.map +1 -1
- package/lib/module/providers/movies/moviehdwatch.js.map +1 -1
- package/lib/module/providers/movies/multimovies.js +2 -2
- package/lib/module/providers/movies/multimovies.js.map +1 -1
- package/lib/module/providers/movies/sflix.js.map +1 -1
- package/lib/module/providers/movies/smashystream.js.map +1 -1
- package/lib/module/providers/movies/turkish123.js.map +1 -1
- package/lib/module/providers/movies/ummagurau.js.map +1 -1
- package/lib/module/providers/movies/viewAsian.js.map +1 -1
- package/lib/module/providers/news/animenewsnetwork.js.map +1 -1
- package/lib/module/utils/providers-list.js +1 -1
- package/lib/module/utils/providers-list.js.map +1 -1
- package/lib/module/utils/queries.js.map +1 -1
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/commonjs/src/extractors/asianload.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/filemoon.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megacloud/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.decodedpng.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mp4player.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/smashystream.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamhub.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamlare.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamsb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamwish.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vidcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/voe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +3 -2
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/anime-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/lightnovel-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/manga-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/movie-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/proxy.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/video-extractor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anify.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animefox.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animesaturn.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anix.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/bilibili.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/gogoanime.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts +0 -4
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/marin.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/monoschinos.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/comics/getComics.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts +2 -3
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/flixhq.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/fmovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/goku.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/kissasian.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/moviehdwatch.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multimovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/sflix.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/smashystream.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/turkish123.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/viewAsian.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/news/animenewsnetwork.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/providers-list.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/providers-list.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/queries.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/utils.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/asianload.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/filemoon.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gogocdn.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megacloud/index.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megacloud/megacloud.decodedpng.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megaup.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mixdrop.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mp4player.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mp4upload.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/rapidcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/smashystream.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamhub.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamlare.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamsb.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamwish.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vidcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vidmoly.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vizcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/voe.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +3 -2
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/anime-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/lightnovel-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/manga-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/movie-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/proxy.d.ts.map +1 -1
- package/lib/typescript/module/src/models/video-extractor.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anify.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animedrive.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animefox.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animekai.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animesaturn.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animeunity.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anix.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/bilibili.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/gogoanime.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/index.d.ts +0 -4
- package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/kickassanime.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/marin.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/monoschinos.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/comics/getComics.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/comick.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/anilist.d.ts +2 -3
- package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/dramacool.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/flixhq.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/fmovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/goku.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/kissasian.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/moviehdwatch.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multimovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/sflix.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/smashystream.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/turkish123.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/viewAsian.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/news/animenewsnetwork.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/providers-list.d.ts +1 -1
- package/lib/typescript/module/src/utils/providers-list.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/queries.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/utils.d.ts +1 -1
- package/lib/typescript/module/src/utils/utils.d.ts.map +1 -1
- package/package.json +192 -188
- package/react-native.config.js +12 -12
- package/src/extractors/asianload.ts +4 -13
- package/src/extractors/filemoon.ts +5 -13
- package/src/extractors/gogocdn.ts +12 -32
- package/src/extractors/kisskh/kkey.ts +6 -18
- package/src/extractors/kisskh/staticdata.ts +128 -196
- package/src/extractors/kwik.ts +1 -3
- package/src/extractors/megacloud/index.ts +9 -13
- package/src/extractors/megacloud/megacloud.decodedpng.ts +549 -842
- package/src/extractors/megaup.ts +22 -38
- package/src/extractors/mixdrop.ts +1 -3
- package/src/extractors/mp4player.ts +3 -11
- package/src/extractors/mp4upload.ts +1 -3
- package/src/extractors/rapidcloud.ts +18 -56
- package/src/extractors/smashystream.ts +25 -65
- package/src/extractors/streamhub.ts +4 -12
- package/src/extractors/streamlare.ts +2 -7
- package/src/extractors/streamsb.ts +5 -12
- package/src/extractors/streamwish.ts +18 -35
- package/src/extractors/vidcloud.ts +8 -19
- package/src/extractors/vidhide.ts +3 -9
- package/src/extractors/vidmoly.ts +1 -4
- package/src/extractors/vizcloud.ts +1 -5
- package/src/extractors/voe.ts +3 -8
- package/src/index.ts +21 -21
- package/src/models/anime-parser.ts +3 -14
- package/src/models/lightnovel-parser.ts +2 -8
- package/src/models/manga-parser.ts +1 -4
- package/src/models/movie-parser.ts +4 -20
- package/src/models/proxy.ts +4 -9
- package/src/models/video-extractor.ts +1 -4
- package/src/providers/anime/anify.ts +20 -61
- package/src/providers/anime/animedrive.ts +24 -77
- package/src/providers/anime/animefox.ts +18 -64
- package/src/providers/anime/animekai.ts +54 -158
- package/src/providers/anime/animepahe.ts +31 -68
- package/src/providers/anime/animesaturn.ts +11 -37
- package/src/providers/anime/animeunity.ts +8 -26
- package/src/providers/anime/anix.ts +17 -57
- package/src/providers/anime/bilibili.ts +4 -15
- package/src/providers/anime/gogoanime.ts +61 -194
- package/src/providers/anime/index.ts +0 -4
- package/src/providers/anime/kickassanime.ts +2 -6
- package/src/providers/anime/marin.ts +6 -18
- package/src/providers/anime/monoschinos.ts +8 -25
- package/src/providers/anime/zoro.ts +77 -209
- package/src/providers/comics/getComics.ts +7 -27
- package/src/providers/light-novels/novelupdates.ts +17 -52
- package/src/providers/light-novels/readlightnovels.ts +17 -67
- package/src/providers/manga/asurascans.ts +17 -67
- package/src/providers/manga/brmangas.ts +6 -17
- package/src/providers/manga/comick.ts +19 -51
- package/src/providers/manga/flamescans.ts +12 -35
- package/src/providers/manga/mangadex.ts +25 -82
- package/src/providers/manga/mangahere.ts +17 -40
- package/src/providers/manga/mangahost.ts +8 -28
- package/src/providers/manga/mangakakalot.ts +19 -71
- package/src/providers/manga/mangapark.ts +8 -27
- package/src/providers/manga/mangapill.ts +10 -33
- package/src/providers/manga/mangareader.ts +8 -28
- package/src/providers/manga/mangasee123.ts +12 -40
- package/src/providers/manga/readmanga.ts +58 -134
- package/src/providers/manga/vyvymanga.ts +15 -33
- package/src/providers/meta/anilist.ts +568 -1062
- package/src/providers/meta/mal.ts +51 -250
- package/src/providers/meta/tmdb.ts +60 -94
- package/src/providers/movies/dramacool.ts +50 -146
- package/src/providers/movies/flixhq.ts +60 -207
- package/src/providers/movies/fmovies.ts +17 -62
- package/src/providers/movies/goku.ts +46 -178
- package/src/providers/movies/kissasian.ts +19 -64
- package/src/providers/movies/moviehdwatch.ts +61 -221
- package/src/providers/movies/multimovies.ts +47 -153
- package/src/providers/movies/sflix.ts +71 -234
- package/src/providers/movies/smashystream.ts +9 -30
- package/src/providers/movies/turkish123.ts +4 -20
- package/src/providers/movies/ummagurau.ts +8 -26
- package/src/providers/movies/viewAsian.ts +15 -45
- package/src/providers/news/animenewsnetwork.ts +11 -40
- package/src/utils/providers-list.ts +1 -11
- package/src/utils/queries.ts +5 -23
- package/src/utils/utils.ts +5 -21
- package/lib/commonjs/providers/anime/9anime.js +0 -325
- package/lib/commonjs/providers/anime/9anime.js.map +0 -1
- package/lib/commonjs/providers/anime/crunchyroll.js +0 -92
- package/lib/commonjs/providers/anime/crunchyroll.js.map +0 -1
- package/lib/module/providers/anime/9anime.js +0 -323
- package/lib/module/providers/anime/9anime.js.map +0 -1
- package/lib/module/providers/anime/crunchyroll.js +0 -89
- package/lib/module/providers/anime/crunchyroll.js.map +0 -1
- package/lib/typescript/commonjs/jest.config.d.ts +0 -1
- package/lib/typescript/commonjs/jest.config.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/9anime.d.ts +0 -26
- package/lib/typescript/commonjs/src/providers/anime/9anime.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/crunchyroll.d.ts +0 -38
- package/lib/typescript/commonjs/src/providers/anime/crunchyroll.d.ts.map +0 -1
- package/lib/typescript/module/jest.config.d.ts +0 -1
- package/lib/typescript/module/jest.config.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/9anime.d.ts +0 -26
- package/lib/typescript/module/src/providers/anime/9anime.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/crunchyroll.d.ts +0 -38
- package/lib/typescript/module/src/providers/anime/crunchyroll.d.ts.map +0 -1
- package/src/providers/anime/9anime.ts +0 -465
- package/src/providers/anime/crunchyroll.ts +0 -151
|
@@ -24,10 +24,7 @@ class NovelUpdates extends LightNovelParser {
|
|
|
24
24
|
* @param lightNovelUrl light novel link or id
|
|
25
25
|
* @param chapterPage chapter page number (optional) if not provided, will fetch all chapter pages.
|
|
26
26
|
*/
|
|
27
|
-
override fetchLightNovelInfo = async (
|
|
28
|
-
lightNovelUrl: string,
|
|
29
|
-
chapterPage: number = -1
|
|
30
|
-
): Promise<ILightNovelInfo> => {
|
|
27
|
+
override fetchLightNovelInfo = async (lightNovelUrl: string, chapterPage: number = -1): Promise<ILightNovelInfo> => {
|
|
31
28
|
if (!lightNovelUrl.startsWith(this.baseUrl)) {
|
|
32
29
|
lightNovelUrl = `${this.baseUrl}/series/${lightNovelUrl}`;
|
|
33
30
|
}
|
|
@@ -38,21 +35,15 @@ class NovelUpdates extends LightNovelParser {
|
|
|
38
35
|
};
|
|
39
36
|
|
|
40
37
|
try {
|
|
41
|
-
const page = await fetch(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
}
|
|
48
|
-
);
|
|
38
|
+
const page = await fetch(`${this.proxyURL}${encodeURIComponent(lightNovelUrl)}`, {
|
|
39
|
+
headers: {
|
|
40
|
+
Referer: lightNovelUrl,
|
|
41
|
+
},
|
|
42
|
+
});
|
|
49
43
|
|
|
50
44
|
const $ = load(await page.text());
|
|
51
45
|
|
|
52
|
-
if (
|
|
53
|
-
$('title').html() === 'Just a moment...' ||
|
|
54
|
-
$('title').html() === 'Attention Required! | Cloudflare'
|
|
55
|
-
) {
|
|
46
|
+
if ($('title').html() === 'Just a moment...' || $('title').html() === 'Attention Required! | Cloudflare') {
|
|
56
47
|
throw new Error('Client is blocked from accessing the site.');
|
|
57
48
|
}
|
|
58
49
|
|
|
@@ -65,14 +56,10 @@ class NovelUpdates extends LightNovelParser {
|
|
|
65
56
|
.get();
|
|
66
57
|
|
|
67
58
|
lightNovelInfo.rating = parseFloat(
|
|
68
|
-
$(
|
|
69
|
-
'div.col-xs-12.col-sm-8.col-md-8.desc > div.rate > div.small > em > strong:nth-child(1) > span'
|
|
70
|
-
).text()
|
|
59
|
+
$('div.col-xs-12.col-sm-8.col-md-8.desc > div.rate > div.small > em > strong:nth-child(1) > span').text()
|
|
71
60
|
);
|
|
72
61
|
lightNovelInfo.views = parseInt(
|
|
73
|
-
$(
|
|
74
|
-
'div.col-xs-12.col-sm-4.col-md-4.info-holder > div.info > div:nth-child(4) > span'
|
|
75
|
-
).text()
|
|
62
|
+
$('div.col-xs-12.col-sm-4.col-md-4.info-holder > div.info > div:nth-child(4) > span').text()
|
|
76
63
|
);
|
|
77
64
|
lightNovelInfo.description = $('div#editdescription').text()?.trim();
|
|
78
65
|
|
|
@@ -89,13 +76,7 @@ class NovelUpdates extends LightNovelParser {
|
|
|
89
76
|
const postId = $('input#mypostid').attr('value');
|
|
90
77
|
|
|
91
78
|
lightNovelInfo.chapters = await this.fetchChapters(postId!);
|
|
92
|
-
lightNovelInfo.rating =
|
|
93
|
-
Number(
|
|
94
|
-
$('h5.seriesother span.uvotes')
|
|
95
|
-
.text()
|
|
96
|
-
?.split(' /')[0]
|
|
97
|
-
?.substring(1) ?? 0
|
|
98
|
-
) * 2;
|
|
79
|
+
lightNovelInfo.rating = Number($('h5.seriesother span.uvotes').text()?.split(' /')[0]?.substring(1) ?? 0) * 2;
|
|
99
80
|
|
|
100
81
|
return lightNovelInfo;
|
|
101
82
|
} catch (err) {
|
|
@@ -103,9 +84,7 @@ class NovelUpdates extends LightNovelParser {
|
|
|
103
84
|
throw new Error((err as Error).message);
|
|
104
85
|
}
|
|
105
86
|
};
|
|
106
|
-
private fetchChapters = async (
|
|
107
|
-
postId: string
|
|
108
|
-
): Promise<ILightNovelChapter[]> => {
|
|
87
|
+
private fetchChapters = async (postId: string): Promise<ILightNovelChapter[]> => {
|
|
109
88
|
const chapters: ILightNovelChapter[] = [];
|
|
110
89
|
|
|
111
90
|
const chapterData = (
|
|
@@ -140,9 +119,7 @@ class NovelUpdates extends LightNovelParser {
|
|
|
140
119
|
*
|
|
141
120
|
* @param chapterId chapter id or url
|
|
142
121
|
*/
|
|
143
|
-
override fetchChapterContent = async (
|
|
144
|
-
chapterId: string
|
|
145
|
-
): Promise<ILightNovelChapterContent> => {
|
|
122
|
+
override fetchChapterContent = async (chapterId: string): Promise<ILightNovelChapterContent> => {
|
|
146
123
|
if (!chapterId.startsWith(this.baseUrl)) {
|
|
147
124
|
chapterId = `${this.baseUrl}/extnu/${chapterId}`;
|
|
148
125
|
}
|
|
@@ -153,9 +130,7 @@ class NovelUpdates extends LightNovelParser {
|
|
|
153
130
|
};
|
|
154
131
|
|
|
155
132
|
try {
|
|
156
|
-
const page = await fetch(
|
|
157
|
-
`${this.proxyURL}${encodeURIComponent(chapterId)}`
|
|
158
|
-
);
|
|
133
|
+
const page = await fetch(`${this.proxyURL}${encodeURIComponent(chapterId)}`);
|
|
159
134
|
const data = await page.text();
|
|
160
135
|
|
|
161
136
|
const $ = load(data);
|
|
@@ -175,16 +150,12 @@ class NovelUpdates extends LightNovelParser {
|
|
|
175
150
|
*
|
|
176
151
|
* @param query search query string
|
|
177
152
|
*/
|
|
178
|
-
override search = async (
|
|
179
|
-
query: string
|
|
180
|
-
): Promise<ISearch<ILightNovelResult>> => {
|
|
153
|
+
override search = async (query: string): Promise<ISearch<ILightNovelResult>> => {
|
|
181
154
|
const result: ISearch<ILightNovelResult> = { results: [] };
|
|
182
155
|
|
|
183
156
|
try {
|
|
184
157
|
const res = await fetch(
|
|
185
|
-
`${this.proxyURL}${encodeURIComponent(
|
|
186
|
-
`${this.baseUrl}/series-finder/?sf=1&sh=${encodeURIComponent(query)}`
|
|
187
|
-
)}`,
|
|
158
|
+
`${this.proxyURL}${encodeURIComponent(`${this.baseUrl}/series-finder/?sf=1&sh=${encodeURIComponent(query)}`)}`,
|
|
188
159
|
{
|
|
189
160
|
headers: {
|
|
190
161
|
Referer: this.baseUrl,
|
|
@@ -196,15 +167,9 @@ class NovelUpdates extends LightNovelParser {
|
|
|
196
167
|
|
|
197
168
|
$('div.search_main_box_nu').each((i, el) => {
|
|
198
169
|
result.results.push({
|
|
199
|
-
id: $(el)
|
|
200
|
-
.find('div.search_body_nu div.search_title a')
|
|
201
|
-
.attr('href')
|
|
202
|
-
?.split('/series/')[1]!
|
|
203
|
-
.split('/')[0]!,
|
|
170
|
+
id: $(el).find('div.search_body_nu div.search_title a').attr('href')?.split('/series/')[1]!.split('/')[0]!,
|
|
204
171
|
title: $(el).find('div.search_body_nu div.search_title a').text(),
|
|
205
|
-
url: $(el)
|
|
206
|
-
.find('div.search_body_nu div.search_title a')
|
|
207
|
-
.attr('href')!,
|
|
172
|
+
url: $(el).find('div.search_body_nu div.search_title a').attr('href')!,
|
|
208
173
|
image: $(el).find('div.search_img_nu img').attr('src'),
|
|
209
174
|
});
|
|
210
175
|
});
|
|
@@ -24,10 +24,7 @@ class ReadLightNovels extends LightNovelParser {
|
|
|
24
24
|
* @param lightNovelUrl light novel link or id
|
|
25
25
|
* @param chapterPage chapter page number (optional) if not provided, will fetch all chapter pages.
|
|
26
26
|
*/
|
|
27
|
-
override fetchLightNovelInfo = async (
|
|
28
|
-
lightNovelUrl: string,
|
|
29
|
-
chapterPage: number = -1
|
|
30
|
-
): Promise<ILightNovelInfo> => {
|
|
27
|
+
override fetchLightNovelInfo = async (lightNovelUrl: string, chapterPage: number = -1): Promise<ILightNovelInfo> => {
|
|
31
28
|
if (!lightNovelUrl.startsWith(this.baseUrl)) {
|
|
32
29
|
lightNovelUrl = `${this.baseUrl}/${lightNovelUrl}.html`;
|
|
33
30
|
}
|
|
@@ -47,33 +44,19 @@ class ReadLightNovels extends LightNovelParser {
|
|
|
47
44
|
const $ = load(page.data);
|
|
48
45
|
|
|
49
46
|
const novelId = parseInt($('#id_post').val() as string);
|
|
50
|
-
lightNovelInfo.title = $(
|
|
51
|
-
|
|
52
|
-
).text();
|
|
53
|
-
lightNovelInfo.
|
|
54
|
-
'div.col-xs-12.col-sm-4.col-md-4.info-holder > div.books > div > img'
|
|
55
|
-
).attr('src');
|
|
56
|
-
lightNovelInfo.author = $(
|
|
57
|
-
'div.col-xs-12.col-sm-4.col-md-4.info-holder > div.info > div:nth-child(1) > a'
|
|
58
|
-
).text();
|
|
59
|
-
lightNovelInfo.genres = $(
|
|
60
|
-
' div.col-xs-12.col-sm-4.col-md-4.info-holder > div.info > div:nth-child(2) > a'
|
|
61
|
-
)
|
|
47
|
+
lightNovelInfo.title = $('div.col-xs-12.col-sm-8.col-md-8.desc > h3').text();
|
|
48
|
+
lightNovelInfo.image = $('div.col-xs-12.col-sm-4.col-md-4.info-holder > div.books > div > img').attr('src');
|
|
49
|
+
lightNovelInfo.author = $('div.col-xs-12.col-sm-4.col-md-4.info-holder > div.info > div:nth-child(1) > a').text();
|
|
50
|
+
lightNovelInfo.genres = $(' div.col-xs-12.col-sm-4.col-md-4.info-holder > div.info > div:nth-child(2) > a')
|
|
62
51
|
.map((i, el) => $(el).text())
|
|
63
52
|
.get();
|
|
64
53
|
lightNovelInfo.rating = parseFloat(
|
|
65
|
-
$(
|
|
66
|
-
'div.col-xs-12.col-sm-8.col-md-8.desc > div.rate > div.small > em > strong:nth-child(1) > span'
|
|
67
|
-
).text()
|
|
54
|
+
$('div.col-xs-12.col-sm-8.col-md-8.desc > div.rate > div.small > em > strong:nth-child(1) > span').text()
|
|
68
55
|
);
|
|
69
56
|
lightNovelInfo.views = parseInt(
|
|
70
|
-
$(
|
|
71
|
-
'div.col-xs-12.col-sm-4.col-md-4.info-holder > div.info > div:nth-child(4) > span'
|
|
72
|
-
).text()
|
|
57
|
+
$('div.col-xs-12.col-sm-4.col-md-4.info-holder > div.info > div:nth-child(4) > span').text()
|
|
73
58
|
);
|
|
74
|
-
lightNovelInfo.description = $(
|
|
75
|
-
'div.col-xs-12.col-sm-8.col-md-8.desc > div.desc-text > hr'
|
|
76
|
-
)
|
|
59
|
+
lightNovelInfo.description = $('div.col-xs-12.col-sm-8.col-md-8.desc > div.desc-text > hr')
|
|
77
60
|
.eq(0)
|
|
78
61
|
.nextUntil('hr')
|
|
79
62
|
.text();
|
|
@@ -84,11 +67,7 @@ class ReadLightNovels extends LightNovelParser {
|
|
|
84
67
|
.filter((x) => !isNaN(x))
|
|
85
68
|
);
|
|
86
69
|
|
|
87
|
-
switch (
|
|
88
|
-
$(
|
|
89
|
-
'div.col-xs-12.col-sm-4.col-md-4.info-holder > div.info > div:nth-child(3) > span'
|
|
90
|
-
).text()
|
|
91
|
-
) {
|
|
70
|
+
switch ($('div.col-xs-12.col-sm-4.col-md-4.info-holder > div.info > div:nth-child(3) > span').text()) {
|
|
92
71
|
case 'Completed':
|
|
93
72
|
lightNovelInfo.status = MediaStatus.COMPLETED;
|
|
94
73
|
break;
|
|
@@ -103,17 +82,9 @@ class ReadLightNovels extends LightNovelParser {
|
|
|
103
82
|
lightNovelInfo.pages = pages;
|
|
104
83
|
lightNovelInfo.chapters = [];
|
|
105
84
|
if (chapterPage === -1) {
|
|
106
|
-
lightNovelInfo.chapters = await this.fetchAllChapters(
|
|
107
|
-
novelId,
|
|
108
|
-
pages,
|
|
109
|
-
lightNovelUrl
|
|
110
|
-
);
|
|
85
|
+
lightNovelInfo.chapters = await this.fetchAllChapters(novelId, pages, lightNovelUrl);
|
|
111
86
|
} else {
|
|
112
|
-
lightNovelInfo.chapters = await this.fetchChapters(
|
|
113
|
-
novelId,
|
|
114
|
-
chapterPage,
|
|
115
|
-
lightNovelUrl
|
|
116
|
-
);
|
|
87
|
+
lightNovelInfo.chapters = await this.fetchChapters(novelId, chapterPage, lightNovelUrl);
|
|
117
88
|
}
|
|
118
89
|
|
|
119
90
|
return lightNovelInfo;
|
|
@@ -149,12 +120,7 @@ class ReadLightNovels extends LightNovelParser {
|
|
|
149
120
|
const $ = load(page.data.list_chap);
|
|
150
121
|
|
|
151
122
|
for (const chapter of $('ul.list-chapter > li')) {
|
|
152
|
-
const subId = $(chapter)
|
|
153
|
-
.find('a')
|
|
154
|
-
.attr('href')!
|
|
155
|
-
.split('/')
|
|
156
|
-
?.pop()!
|
|
157
|
-
.replace('.html', '')!;
|
|
123
|
+
const subId = $(chapter).find('a').attr('href')!.split('/')?.pop()!.replace('.html', '')!;
|
|
158
124
|
const id = $(chapter).find('a').attr('href')!.split('/')[3];
|
|
159
125
|
chapters.push({
|
|
160
126
|
id: `${id}/${subId}`,
|
|
@@ -164,19 +130,11 @@ class ReadLightNovels extends LightNovelParser {
|
|
|
164
130
|
}
|
|
165
131
|
return chapters;
|
|
166
132
|
};
|
|
167
|
-
private fetchAllChapters = async (
|
|
168
|
-
novelId: number,
|
|
169
|
-
pages: number,
|
|
170
|
-
referer: string
|
|
171
|
-
): Promise<any> => {
|
|
133
|
+
private fetchAllChapters = async (novelId: number, pages: number, referer: string): Promise<any> => {
|
|
172
134
|
const chapters: ILightNovelChapter[] = [];
|
|
173
135
|
|
|
174
136
|
for (const pageNumber of Array.from({ length: pages }, (_, i) => i + 1)) {
|
|
175
|
-
const chaptersPage = await this.fetchChapters(
|
|
176
|
-
novelId,
|
|
177
|
-
pageNumber,
|
|
178
|
-
referer
|
|
179
|
-
);
|
|
137
|
+
const chaptersPage = await this.fetchChapters(novelId, pageNumber, referer);
|
|
180
138
|
chapters.push(...chaptersPage);
|
|
181
139
|
}
|
|
182
140
|
return chapters;
|
|
@@ -186,9 +144,7 @@ class ReadLightNovels extends LightNovelParser {
|
|
|
186
144
|
*
|
|
187
145
|
* @param chapterId chapter id or url
|
|
188
146
|
*/
|
|
189
|
-
override fetchChapterContent = async (
|
|
190
|
-
chapterId: string
|
|
191
|
-
): Promise<ILightNovelChapterContent> => {
|
|
147
|
+
override fetchChapterContent = async (chapterId: string): Promise<ILightNovelChapterContent> => {
|
|
192
148
|
if (!chapterId.startsWith(this.baseUrl)) {
|
|
193
149
|
chapterId = `${this.baseUrl}/${chapterId}.html`;
|
|
194
150
|
}
|
|
@@ -220,9 +176,7 @@ class ReadLightNovels extends LightNovelParser {
|
|
|
220
176
|
*
|
|
221
177
|
* @param query search query string
|
|
222
178
|
*/
|
|
223
|
-
override search = async (
|
|
224
|
-
query: string
|
|
225
|
-
): Promise<ISearch<ILightNovelResult>> => {
|
|
179
|
+
override search = async (query: string): Promise<ISearch<ILightNovelResult>> => {
|
|
226
180
|
const result: ISearch<ILightNovelResult> = { results: [] };
|
|
227
181
|
try {
|
|
228
182
|
const res = await this.client.post(`${this.baseUrl}/?s=${query}`);
|
|
@@ -232,11 +186,7 @@ class ReadLightNovels extends LightNovelParser {
|
|
|
232
186
|
'div.col-xs-12.col-sm-12.col-md-9.col-truyen-main > div:nth-child(1) > div > div:nth-child(2) > div.col-md-3.col-sm-6.col-xs-6.home-truyendecu'
|
|
233
187
|
).each((i, el) => {
|
|
234
188
|
result.results.push({
|
|
235
|
-
id: $(el)
|
|
236
|
-
.find('a')
|
|
237
|
-
.attr('href')
|
|
238
|
-
?.split('/')[3]!
|
|
239
|
-
.replace('.html', '')!,
|
|
189
|
+
id: $(el).find('a').attr('href')?.split('/')[3]!.replace('.html', '')!,
|
|
240
190
|
title: $(el).find('a > div > h3').text(),
|
|
241
191
|
url: $(el).find('a').attr('href')!,
|
|
242
192
|
image: $(el).find('a > img').attr('src'),
|
|
@@ -19,9 +19,7 @@ class AsuraScans extends MangaParser {
|
|
|
19
19
|
|
|
20
20
|
override fetchMangaInfo = async (mangaId: string): Promise<IMangaInfo> => {
|
|
21
21
|
try {
|
|
22
|
-
const { data }: AxiosResponse = await this.client.get(
|
|
23
|
-
`${this.baseUrl}/${mangaId}`
|
|
24
|
-
);
|
|
22
|
+
const { data }: AxiosResponse = await this.client.get(`${this.baseUrl}/${mangaId}`);
|
|
25
23
|
const $: CheerioAPI = load(data);
|
|
26
24
|
|
|
27
25
|
const dom = $('html');
|
|
@@ -33,34 +31,17 @@ class AsuraScans extends MangaParser {
|
|
|
33
31
|
image: $(topInfoWrapper).find('img').attr('src'),
|
|
34
32
|
rating: $(topInfoWrapper).find('div > div.px-2.py-1 > p').text().trim(),
|
|
35
33
|
status: this.determineMediaState(
|
|
36
|
-
$(topInfoWrapper)
|
|
37
|
-
.find(
|
|
38
|
-
'div > div.flex.flex-row > div:nth-child(1) > h3:nth-child(2)'
|
|
39
|
-
)
|
|
40
|
-
.text()
|
|
41
|
-
.trim()
|
|
34
|
+
$(topInfoWrapper).find('div > div.flex.flex-row > div:nth-child(1) > h3:nth-child(2)').text().trim()
|
|
42
35
|
),
|
|
43
36
|
description: dom.find('span.font-medium.text-sm').text().trim(),
|
|
44
37
|
authors: dom
|
|
45
|
-
.find(
|
|
46
|
-
'.grid.grid-cols-1.gap-5.mt-8 > div:nth-child(2) > h3:nth-child(2)'
|
|
47
|
-
)
|
|
38
|
+
.find('.grid.grid-cols-1.gap-5.mt-8 > div:nth-child(2) > h3:nth-child(2)')
|
|
48
39
|
.text()
|
|
49
40
|
.trim()
|
|
50
41
|
.split('/')
|
|
51
42
|
.map((ele) => ele.trim()),
|
|
52
|
-
artist: dom
|
|
53
|
-
|
|
54
|
-
'.grid.grid-cols-1.gap-5.mt-8 > div:nth-child(3) > h3:nth-child(2)'
|
|
55
|
-
)
|
|
56
|
-
.text()
|
|
57
|
-
.trim(),
|
|
58
|
-
updatedOn: dom
|
|
59
|
-
.find(
|
|
60
|
-
'.grid.grid-cols-1.gap-5.mt-8 > div:nth-child(5) > h3:nth-child(2)'
|
|
61
|
-
)
|
|
62
|
-
.text()
|
|
63
|
-
.trim(),
|
|
43
|
+
artist: dom.find('.grid.grid-cols-1.gap-5.mt-8 > div:nth-child(3) > h3:nth-child(2)').text().trim(),
|
|
44
|
+
updatedOn: dom.find('.grid.grid-cols-1.gap-5.mt-8 > div:nth-child(5) > h3:nth-child(2)').text().trim(),
|
|
64
45
|
genres: dom
|
|
65
46
|
.find('.space-y-1.pt-4 > div > button')
|
|
66
47
|
.map((index, ele) => $(ele).text().trim())
|
|
@@ -73,13 +54,8 @@ class AsuraScans extends MangaParser {
|
|
|
73
54
|
title: $(ele).find('div > h2.font-bold').text().trim(),
|
|
74
55
|
image: $(ele).find('div > div > img').attr('src'),
|
|
75
56
|
latestChapter: $(ele).find('div > h2:nth-child(3)').text().trim(),
|
|
76
|
-
status: this.determineMediaState(
|
|
77
|
-
|
|
78
|
-
),
|
|
79
|
-
rating: $(ele)
|
|
80
|
-
.find('div > div.block > span > label')
|
|
81
|
-
.text()
|
|
82
|
-
.trim(),
|
|
57
|
+
status: this.determineMediaState($(ele).find('div > div:nth-child(1) > span').text().trim()),
|
|
58
|
+
rating: $(ele).find('div > div.block > span > label').text().trim(),
|
|
83
59
|
};
|
|
84
60
|
})
|
|
85
61
|
.get(),
|
|
@@ -110,16 +86,10 @@ class AsuraScans extends MangaParser {
|
|
|
110
86
|
}
|
|
111
87
|
};
|
|
112
88
|
|
|
113
|
-
override fetchChapterPages = async (
|
|
114
|
-
chapterId: string
|
|
115
|
-
): Promise<IMangaChapterPage[]> => {
|
|
89
|
+
override fetchChapterPages = async (chapterId: string): Promise<IMangaChapterPage[]> => {
|
|
116
90
|
try {
|
|
117
|
-
const { data }: AxiosResponse = await this.client.get(
|
|
118
|
-
|
|
119
|
-
);
|
|
120
|
-
const chapMatch = data
|
|
121
|
-
.replace(/\\/g, '')
|
|
122
|
-
.match(/pages.*:(\[{['"]order["'].*?}\])/);
|
|
91
|
+
const { data }: AxiosResponse = await this.client.get(`${this.baseUrl}/series/${chapterId}`);
|
|
92
|
+
const chapMatch = data.replace(/\\/g, '').match(/pages.*:(\[{['"]order["'].*?}\])/);
|
|
123
93
|
if (!chapMatch) throw new Error('Parsing error');
|
|
124
94
|
const chap: { order: string; url: string }[] = JSON.parse(chapMatch[1]);
|
|
125
95
|
return chap.map(
|
|
@@ -137,10 +107,7 @@ class AsuraScans extends MangaParser {
|
|
|
137
107
|
*
|
|
138
108
|
* @param query Search query
|
|
139
109
|
*/
|
|
140
|
-
override search = async (
|
|
141
|
-
query: string,
|
|
142
|
-
page: number = 1
|
|
143
|
-
): Promise<ISearch<IMangaResult>> => {
|
|
110
|
+
override search = async (query: string, page: number = 1): Promise<ISearch<IMangaResult>> => {
|
|
144
111
|
try {
|
|
145
112
|
const formattedQuery = encodeURI(query.toLowerCase());
|
|
146
113
|
const { data }: AxiosResponse = await this.client.get(
|
|
@@ -155,24 +122,11 @@ class AsuraScans extends MangaParser {
|
|
|
155
122
|
.map((index, ele): IMangaResult => {
|
|
156
123
|
return {
|
|
157
124
|
id: $(ele).attr('href') as string,
|
|
158
|
-
title: $(ele)
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
.find('div > div > div:nth-child(1) > img')
|
|
164
|
-
.attr('src') as string,
|
|
165
|
-
status: this.determineMediaState(
|
|
166
|
-
$(ele).find('div > div > div:nth-child(1) > span').text().trim()
|
|
167
|
-
),
|
|
168
|
-
latestChapter: $(ele)
|
|
169
|
-
.find('div > div > div:nth-child(2) > span:nth-child(2)')
|
|
170
|
-
.text()
|
|
171
|
-
.trim(),
|
|
172
|
-
rating: $(ele)
|
|
173
|
-
.find('div > div > div:nth-child(2) > span:nth-child(3) > label')
|
|
174
|
-
.text()
|
|
175
|
-
.trim(),
|
|
125
|
+
title: $(ele).find('div > div > div:nth-child(2) > span:nth-child(1)').text().trim() as string,
|
|
126
|
+
image: $(ele).find('div > div > div:nth-child(1) > img').attr('src') as string,
|
|
127
|
+
status: this.determineMediaState($(ele).find('div > div > div:nth-child(1) > span').text().trim()),
|
|
128
|
+
latestChapter: $(ele).find('div > div > div:nth-child(2) > span:nth-child(2)').text().trim(),
|
|
129
|
+
rating: $(ele).find('div > div > div:nth-child(2) > span:nth-child(3) > label').text().trim(),
|
|
176
130
|
};
|
|
177
131
|
})
|
|
178
132
|
.get();
|
|
@@ -180,11 +134,7 @@ class AsuraScans extends MangaParser {
|
|
|
180
134
|
const searchResults: ISearch<IMangaResult> = {
|
|
181
135
|
currentPage: page,
|
|
182
136
|
hasNextPage:
|
|
183
|
-
(
|
|
184
|
-
dom
|
|
185
|
-
.find('.flex.items-center.justify-center > a')
|
|
186
|
-
.attr('style') as string
|
|
187
|
-
)
|
|
137
|
+
(dom.find('.flex.items-center.justify-center > a').attr('style') as string)
|
|
188
138
|
.split('pointer-events:')[1]!
|
|
189
139
|
.slice(1, -1) === 'auto'
|
|
190
140
|
? true
|
|
@@ -13,8 +13,7 @@ import {
|
|
|
13
13
|
class BRMangas extends MangaParser {
|
|
14
14
|
override readonly name = 'BRMangas';
|
|
15
15
|
protected override baseUrl = 'https://www.brmangas.net';
|
|
16
|
-
protected override logo =
|
|
17
|
-
'https://www.brmangas.net/wp-content/themes/brmangasnew/images/svg/logo.svg';
|
|
16
|
+
protected override logo = 'https://www.brmangas.net/wp-content/themes/brmangasnew/images/svg/logo.svg';
|
|
18
17
|
protected override classPath = 'MANGA.BRMangas';
|
|
19
18
|
|
|
20
19
|
override fetchMangaInfo = async (mangaId: string): Promise<IMangaInfo> => {
|
|
@@ -23,14 +22,10 @@ class BRMangas extends MangaParser {
|
|
|
23
22
|
title: '',
|
|
24
23
|
};
|
|
25
24
|
try {
|
|
26
|
-
const { data } = await this.client.get(
|
|
27
|
-
`${this.baseUrl}/manga/${mangaId}`
|
|
28
|
-
);
|
|
25
|
+
const { data } = await this.client.get(`${this.baseUrl}/manga/${mangaId}`);
|
|
29
26
|
const $ = load(data);
|
|
30
27
|
|
|
31
|
-
const title = $(
|
|
32
|
-
'body > div.scroller-inner > div.wrapper > main > section > div > h1.titulo'
|
|
33
|
-
).text();
|
|
28
|
+
const title = $('body > div.scroller-inner > div.wrapper > main > section > div > h1.titulo').text();
|
|
34
29
|
const descriptionAndAltTitles = $(
|
|
35
30
|
'body > div.scroller-inner > div.wrapper > main > div > div > div.col > div.serie-texto > div > p:nth-child(3)'
|
|
36
31
|
)
|
|
@@ -83,9 +78,7 @@ class BRMangas extends MangaParser {
|
|
|
83
78
|
}
|
|
84
79
|
};
|
|
85
80
|
|
|
86
|
-
override fetchChapterPages = async (
|
|
87
|
-
chapterId: string
|
|
88
|
-
): Promise<IMangaChapterPage[]> => {
|
|
81
|
+
override fetchChapterPages = async (chapterId: string): Promise<IMangaChapterPage[]> => {
|
|
89
82
|
try {
|
|
90
83
|
const url = `${this.baseUrl}/ler/${chapterId}`;
|
|
91
84
|
const { data } = await this.client.get(url);
|
|
@@ -125,14 +118,10 @@ class BRMangas extends MangaParser {
|
|
|
125
118
|
*/
|
|
126
119
|
override search = async (query: string): Promise<ISearch<IMangaResult>> => {
|
|
127
120
|
try {
|
|
128
|
-
const { data } = await this.client.get(
|
|
129
|
-
`${this.baseUrl}/?s=${query.replace(/ /g, '+')}`
|
|
130
|
-
);
|
|
121
|
+
const { data } = await this.client.get(`${this.baseUrl}/?s=${query.replace(/ /g, '+')}`);
|
|
131
122
|
const $ = load(data);
|
|
132
123
|
|
|
133
|
-
const results = $(
|
|
134
|
-
'body > div.scroller-inner > div.wrapper > main > div.container > div.listagem > div.col'
|
|
135
|
-
)
|
|
124
|
+
const results = $('body > div.scroller-inner > div.wrapper > main > div.container > div.listagem > div.col')
|
|
136
125
|
.map(
|
|
137
126
|
(i, row): IMangaResult => ({
|
|
138
127
|
id: $(row).find('div.item > a').attr('href')?.split('/')[4]!,
|
|
@@ -11,8 +11,7 @@ import {
|
|
|
11
11
|
class ComicK extends MangaParser {
|
|
12
12
|
override readonly name = 'ComicK';
|
|
13
13
|
protected override baseUrl = 'https://comick.app';
|
|
14
|
-
protected override logo =
|
|
15
|
-
'https://th.bing.com/th/id/OIP.fw4WrmAoA2PmKitiyMzUIgAAAA?pid=ImgDet&rs=1';
|
|
14
|
+
protected override logo = 'https://th.bing.com/th/id/OIP.fw4WrmAoA2PmKitiyMzUIgAAAA?pid=ImgDet&rs=1';
|
|
16
15
|
protected override classPath = 'MANGA.ComicK';
|
|
17
16
|
|
|
18
17
|
private readonly apiUrl = 'https://api.comick.io';
|
|
@@ -36,32 +35,22 @@ class ComicK extends MangaParser {
|
|
|
36
35
|
const req = await this._axios().get(`/comic/${mangaId}`);
|
|
37
36
|
const data: Comic = req.data.comic;
|
|
38
37
|
|
|
39
|
-
const links = Object.values(data.links ?? []).filter(
|
|
40
|
-
(link) => link !== null
|
|
41
|
-
);
|
|
38
|
+
const links = Object.values(data.links ?? []).filter((link) => link !== null);
|
|
42
39
|
|
|
43
40
|
const mangaInfo: IMangaInfo = {
|
|
44
41
|
id: data.hid,
|
|
45
42
|
title: data.title,
|
|
46
|
-
altTitles: data.md_titles
|
|
47
|
-
? data.md_titles.map((title) => title.title)
|
|
48
|
-
: [],
|
|
43
|
+
altTitles: data.md_titles ? data.md_titles.map((title) => title.title) : [],
|
|
49
44
|
description: data.desc,
|
|
50
45
|
genres: data.md_comic_md_genres?.map((genre) => genre.md_genres.name),
|
|
51
|
-
status:
|
|
52
|
-
(data.status ?? 0 === 0)
|
|
53
|
-
? MediaStatus.ONGOING
|
|
54
|
-
: MediaStatus.COMPLETED,
|
|
46
|
+
status: (data.status ?? 0 === 0) ? MediaStatus.ONGOING : MediaStatus.COMPLETED,
|
|
55
47
|
image: `https://meo.comick.pictures${data.md_covers ? data.md_covers[0]!.b2key : ''}`,
|
|
56
48
|
malId: data.links?.mal,
|
|
57
49
|
links: links,
|
|
58
50
|
chapters: [],
|
|
59
51
|
};
|
|
60
52
|
|
|
61
|
-
const allChapters: ChapterData[] = await this.fetchAllChapters(
|
|
62
|
-
mangaId,
|
|
63
|
-
1
|
|
64
|
-
);
|
|
53
|
+
const allChapters: ChapterData[] = await this.fetchAllChapters(mangaId, 1);
|
|
65
54
|
for (const chapter of allChapters) {
|
|
66
55
|
mangaInfo.chapters?.push({
|
|
67
56
|
id: chapter.hid,
|
|
@@ -75,9 +64,7 @@ class ComicK extends MangaParser {
|
|
|
75
64
|
return mangaInfo;
|
|
76
65
|
} catch (err) {
|
|
77
66
|
if ((err as AxiosError).code === 'ERR_BAD_REQUEST')
|
|
78
|
-
throw new Error(
|
|
79
|
-
`[${this.name}] Bad request. Make sure you have entered a valid query.`
|
|
80
|
-
);
|
|
67
|
+
throw new Error(`[${this.name}] Bad request. Make sure you have entered a valid query.`);
|
|
81
68
|
|
|
82
69
|
throw new Error((err as Error).message);
|
|
83
70
|
}
|
|
@@ -88,22 +75,18 @@ class ComicK extends MangaParser {
|
|
|
88
75
|
* @param chapterId Chapter ID (HID)
|
|
89
76
|
* @returns Promise<IMangaChapterPage[]>
|
|
90
77
|
*/
|
|
91
|
-
override fetchChapterPages = async (
|
|
92
|
-
chapterId: string
|
|
93
|
-
): Promise<IMangaChapterPage[]> => {
|
|
78
|
+
override fetchChapterPages = async (chapterId: string): Promise<IMangaChapterPage[]> => {
|
|
94
79
|
try {
|
|
95
80
|
const { data } = await this._axios().get(`/chapter/${chapterId}`);
|
|
96
81
|
|
|
97
82
|
const pages: { img: string; page: number }[] = [];
|
|
98
83
|
|
|
99
|
-
data.chapter.md_images.map(
|
|
100
|
-
(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
);
|
|
84
|
+
data.chapter.md_images.map((image: { b2key: string; w: string }, index: number) => {
|
|
85
|
+
pages.push({
|
|
86
|
+
img: `https://meo.comick.pictures/${image.b2key}?width=${image.w}`,
|
|
87
|
+
page: index,
|
|
88
|
+
});
|
|
89
|
+
});
|
|
107
90
|
|
|
108
91
|
return pages;
|
|
109
92
|
} catch (err) {
|
|
@@ -116,19 +99,13 @@ class ComicK extends MangaParser {
|
|
|
116
99
|
* @param page page number (default: 1)
|
|
117
100
|
* @param limit limit of results to return (default: 20) (max: 100) (min: 1)
|
|
118
101
|
*/
|
|
119
|
-
override search = async (
|
|
120
|
-
query: string,
|
|
121
|
-
page: number = 1,
|
|
122
|
-
limit: number = 20
|
|
123
|
-
): Promise<ISearch<IMangaResult>> => {
|
|
102
|
+
override search = async (query: string, page: number = 1, limit: number = 20): Promise<ISearch<IMangaResult>> => {
|
|
124
103
|
if (page < 1) throw new Error('Page number must be greater than 1');
|
|
125
104
|
if (limit > 300) throw new Error('Limit must be less than or equal to 300');
|
|
126
105
|
if (limit * (page - 1) >= 10000) throw new Error('not enough results');
|
|
127
106
|
|
|
128
107
|
try {
|
|
129
|
-
const req = await this._axios().get(
|
|
130
|
-
`/v1.0/search?q=${encodeURIComponent(query)}&limit=${limit}&page=${page}`
|
|
131
|
-
);
|
|
108
|
+
const req = await this._axios().get(`/v1.0/search?q=${encodeURIComponent(query)}&limit=${limit}&page=${page}`);
|
|
132
109
|
|
|
133
110
|
const results: ISearch<IMangaResult> = {
|
|
134
111
|
currentPage: page,
|
|
@@ -138,9 +115,7 @@ class ComicK extends MangaParser {
|
|
|
138
115
|
const data: SearchResult[] = await req.data;
|
|
139
116
|
|
|
140
117
|
for (const manga of data) {
|
|
141
|
-
let cover: Cover | string | null = manga.md_covers
|
|
142
|
-
? manga.md_covers[0]!
|
|
143
|
-
: null;
|
|
118
|
+
let cover: Cover | string | null = manga.md_covers ? manga.md_covers[0]! : null;
|
|
144
119
|
if (cover && cover.b2key !== undefined) {
|
|
145
120
|
cover = `https://meo.comick.pictures${cover.b2key}`;
|
|
146
121
|
}
|
|
@@ -148,9 +123,7 @@ class ComicK extends MangaParser {
|
|
|
148
123
|
results.results.push({
|
|
149
124
|
id: manga.slug,
|
|
150
125
|
title: manga.title ?? manga.slug,
|
|
151
|
-
altTitles: manga.md_titles
|
|
152
|
-
? manga.md_titles.map((title) => title.title)
|
|
153
|
-
: [],
|
|
126
|
+
altTitles: manga.md_titles ? manga.md_titles.map((title) => title.title) : [],
|
|
154
127
|
image: cover as string,
|
|
155
128
|
});
|
|
156
129
|
}
|
|
@@ -161,17 +134,12 @@ class ComicK extends MangaParser {
|
|
|
161
134
|
}
|
|
162
135
|
};
|
|
163
136
|
|
|
164
|
-
private fetchAllChapters = async (
|
|
165
|
-
mangaId: string,
|
|
166
|
-
page: number
|
|
167
|
-
): Promise<any[]> => {
|
|
137
|
+
private fetchAllChapters = async (mangaId: string, page: number): Promise<any[]> => {
|
|
168
138
|
if (page <= 0) {
|
|
169
139
|
page = 1;
|
|
170
140
|
}
|
|
171
141
|
const comicId = await this.getComicId(mangaId);
|
|
172
|
-
const req = await this._axios().get(
|
|
173
|
-
`/comic/${comicId}/chapters?page=${page}`
|
|
174
|
-
);
|
|
142
|
+
const req = await this._axios().get(`/comic/${comicId}/chapters?page=${page}`);
|
|
175
143
|
return req.data.chapters;
|
|
176
144
|
};
|
|
177
145
|
|