react-native-consumet 1.3.1 → 1.4.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/Consumet.podspec +26 -26
- package/LICENSE +673 -673
- package/README.md +102 -102
- package/android/build.gradle +106 -106
- package/android/gradle.properties +5 -5
- package/android/src/main/AndroidManifest.xml +4 -4
- package/android/src/main/AndroidManifestNew.xml +3 -3
- package/android/src/main/java/com/consumet/ConsumetModule.kt +63 -63
- package/android/src/main/java/com/consumet/ConsumetPackage.kt +33 -33
- package/android/src/main/java/com/consumet/DdosGuardModule.kt +213 -213
- package/android/src/main/java/com/consumet/DeobfuscatorModule.kt +89 -89
- package/android/src/main/java/com/consumet/HttpRequestModule.kt +417 -417
- package/ios/Consumet.h +6 -6
- package/ios/Consumet.mm +18 -18
- package/lib/commonjs/extension-registry.json +69 -3
- package/lib/commonjs/extractors/{streamp2p.js → StreamP2P.js} +1 -1
- package/lib/commonjs/extractors/StreamP2P.js.map +1 -0
- package/lib/commonjs/extractors/asianload.js.map +1 -1
- package/lib/commonjs/extractors/filemoon.js.map +1 -1
- package/lib/commonjs/extractors/gdflix.js +167 -0
- package/lib/commonjs/extractors/gdflix.js.map +1 -0
- package/lib/commonjs/extractors/gofile.js +152 -0
- package/lib/commonjs/extractors/gofile.js.map +1 -0
- package/lib/commonjs/extractors/gogocdn.js.map +1 -1
- package/lib/commonjs/extractors/hubcloud.js +320 -0
- package/lib/commonjs/extractors/hubcloud.js.map +1 -0
- package/lib/commonjs/extractors/index.js +28 -0
- package/lib/commonjs/extractors/index.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.js.map +1 -1
- package/lib/commonjs/extractors/megaplay.js +169 -0
- package/lib/commonjs/extractors/megaplay.js.map +1 -0
- 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/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/streamtape.js.map +1 -1
- package/lib/commonjs/extractors/streamwish.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 +24 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/anime-parser.js.map +1 -1
- package/lib/commonjs/models/base-parser.js.map +1 -1
- package/lib/commonjs/models/base-provider.js.map +1 -1
- package/lib/commonjs/models/base-types.js.map +1 -1
- package/lib/commonjs/models/extension-manifest.js.map +1 -1
- package/lib/commonjs/models/extractor-context.js.map +1 -1
- package/lib/commonjs/models/index.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/provider-context.js.map +1 -1
- package/lib/commonjs/models/types.js +4 -0
- package/lib/commonjs/models/types.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/anikoto/anikoto.js +62 -63
- package/lib/commonjs/providers/anime/anikoto/anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js +359 -406
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/animedrive.js.map +1 -1
- package/lib/commonjs/providers/anime/animekai/animekai.js.map +1 -1
- package/lib/commonjs/providers/anime/animekai/create-animekai.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animesuge/animesuge.js.map +1 -1
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js.map +1 -1
- package/lib/commonjs/providers/anime/animeunity.js.map +1 -1
- 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/zoro/create-zoro.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/commonjs/providers/index.js.map +1 -1
- package/lib/commonjs/providers/light-novels/index.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/index.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.map +1 -1
- package/lib/commonjs/providers/meta/index.js.map +1 -1
- package/lib/commonjs/providers/meta/mal.js.map +1 -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/himovies/create-himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/index.js +18 -1
- package/lib/commonjs/providers/movies/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js +812 -0
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js.map +1 -0
- package/lib/commonjs/providers/movies/vegamovies/vegamovies.js +56 -0
- package/lib/commonjs/providers/movies/vegamovies/vegamovies.js.map +1 -0
- package/lib/commonjs/providers/movies/yflix/create-yflix.js.map +1 -1
- package/lib/commonjs/providers/movies/yflix/yflix.js.map +1 -1
- package/lib/commonjs/providers/movies/yflix.js.map +1 -1
- package/lib/commonjs/utils/ExtractorManager.js +10 -2
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js.map +1 -1
- package/lib/commonjs/utils/constants.js.map +1 -1
- package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
- package/lib/commonjs/utils/create-provider-context.js.map +1 -1
- package/lib/commonjs/utils/extension-utils.js +11 -2
- package/lib/commonjs/utils/extension-utils.js.map +1 -1
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/provider-maps.js +3 -0
- package/lib/commonjs/utils/provider-maps.js.map +1 -1
- package/lib/commonjs/utils/queries.js.map +1 -1
- package/lib/commonjs/utils/url-polyfill.js.map +1 -1
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/extension-registry.json +69 -3
- package/lib/module/extractors/{streamp2p.js → StreamP2P.js} +1 -1
- package/lib/module/extractors/StreamP2P.js.map +1 -0
- package/lib/module/extractors/asianload.js.map +1 -1
- package/lib/module/extractors/filemoon.js.map +1 -1
- package/lib/module/extractors/gdflix.js +162 -0
- package/lib/module/extractors/gdflix.js.map +1 -0
- package/lib/module/extractors/gofile.js +147 -0
- package/lib/module/extractors/gofile.js.map +1 -0
- package/lib/module/extractors/gogocdn.js.map +1 -1
- package/lib/module/extractors/hubcloud.js +315 -0
- package/lib/module/extractors/hubcloud.js.map +1 -0
- package/lib/module/extractors/index.js +5 -1
- package/lib/module/extractors/index.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.js.map +1 -1
- package/lib/module/extractors/megaplay.js +163 -0
- package/lib/module/extractors/megaplay.js.map +1 -0
- 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/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/streamtape.js.map +1 -1
- package/lib/module/extractors/streamwish.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 +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/anime-parser.js.map +1 -1
- package/lib/module/models/base-parser.js.map +1 -1
- package/lib/module/models/base-provider.js.map +1 -1
- package/lib/module/models/base-types.js.map +1 -1
- package/lib/module/models/extension-manifest.js.map +1 -1
- package/lib/module/models/extractor-context.js.map +1 -1
- package/lib/module/models/index.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/provider-context.js.map +1 -1
- package/lib/module/models/types.js +4 -0
- package/lib/module/models/types.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/anikoto/anikoto.js +61 -64
- package/lib/module/providers/anime/anikoto/anikoto.js.map +1 -1
- package/lib/module/providers/anime/anikoto/create-anikoto.js +359 -407
- package/lib/module/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/module/providers/anime/animedrive.js.map +1 -1
- package/lib/module/providers/anime/animekai/animekai.js.map +1 -1
- package/lib/module/providers/anime/animekai/create-animekai.js.map +1 -1
- package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/module/providers/anime/animesuge/animesuge.js.map +1 -1
- package/lib/module/providers/anime/animesuge/create-animesuge.js.map +1 -1
- package/lib/module/providers/anime/animeunity.js.map +1 -1
- 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/zoro/create-zoro.js.map +1 -1
- package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/module/providers/index.js.map +1 -1
- package/lib/module/providers/light-novels/index.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/index.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.map +1 -1
- package/lib/module/providers/meta/index.js.map +1 -1
- package/lib/module/providers/meta/mal.js.map +1 -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/himovies/create-himovies.js.map +1 -1
- package/lib/module/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/module/providers/movies/index.js +6 -1
- package/lib/module/providers/movies/index.js.map +1 -1
- package/lib/module/providers/movies/multimovies/create-multimovies.js.map +1 -1
- package/lib/module/providers/movies/multimovies/multimovies.js.map +1 -1
- package/lib/module/providers/movies/multistream/index.js.map +1 -1
- package/lib/module/providers/movies/multistream/utils.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js +808 -0
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js.map +1 -0
- package/lib/module/providers/movies/vegamovies/vegamovies.js +47 -0
- package/lib/module/providers/movies/vegamovies/vegamovies.js.map +1 -0
- package/lib/module/providers/movies/yflix/create-yflix.js.map +1 -1
- package/lib/module/providers/movies/yflix/yflix.js.map +1 -1
- package/lib/module/providers/movies/yflix.js.map +1 -1
- package/lib/module/utils/ExtractorManager.js +10 -2
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js.map +1 -1
- package/lib/module/utils/constants.js.map +1 -1
- package/lib/module/utils/create-extractor-context.js.map +1 -1
- package/lib/module/utils/create-provider-context.js.map +1 -1
- package/lib/module/utils/extension-utils.js +12 -3
- package/lib/module/utils/extension-utils.js.map +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/provider-maps.js +3 -0
- package/lib/module/utils/provider-maps.js.map +1 -1
- package/lib/module/utils/queries.js.map +1 -1
- package/lib/module/utils/url-polyfill.js.map +1 -1
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/commonjs/src/extractors/{streamp2p.d.ts → StreamP2P.d.ts} +1 -1
- package/lib/typescript/commonjs/src/extractors/{streamp2p.d.ts.map → StreamP2P.d.ts.map} +1 -1
- package/lib/typescript/commonjs/src/extractors/gdflix.d.ts +8 -0
- package/lib/typescript/commonjs/src/extractors/gdflix.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/gofile.d.ts +8 -0
- package/lib/typescript/commonjs/src/extractors/gofile.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts +8 -0
- package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/index.d.ts +5 -1
- package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megaplay.d.ts +9 -0
- package/lib/typescript/commonjs/src/extractors/megaplay.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/provider-context.d.ts +12 -0
- package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/types.d.ts +9 -1
- package/lib/typescript/commonjs/src/models/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts +59 -49
- package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts +6 -8
- package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/create-vegamovies.d.ts +22 -0
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts +25 -0
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +9 -0
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/{streamp2p.d.ts → StreamP2P.d.ts} +1 -1
- package/lib/typescript/module/src/extractors/{streamp2p.d.ts.map → StreamP2P.d.ts.map} +1 -1
- package/lib/typescript/module/src/extractors/gdflix.d.ts +8 -0
- package/lib/typescript/module/src/extractors/gdflix.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/gofile.d.ts +8 -0
- package/lib/typescript/module/src/extractors/gofile.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/hubcloud.d.ts +8 -0
- package/lib/typescript/module/src/extractors/hubcloud.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/index.d.ts +5 -1
- package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megaplay.d.ts +9 -0
- package/lib/typescript/module/src/extractors/megaplay.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +2 -2
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/provider-context.d.ts +12 -0
- package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/types.d.ts +9 -1
- package/lib/typescript/module/src/models/types.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts +59 -49
- package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts +6 -8
- package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/index.d.ts +5 -0
- package/lib/typescript/module/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/vegamovies/create-vegamovies.d.ts +22 -0
- package/lib/typescript/module/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts +25 -0
- package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/extension-utils.d.ts +9 -0
- package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/provider-maps.d.ts +1 -0
- package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -1
- package/package.json +217 -217
- package/react-native.config.js +12 -12
- package/src/extension-registry.json +69 -3
- package/src/extractors/gdflix.ts +167 -0
- package/src/extractors/gofile.ts +182 -0
- package/src/extractors/hubcloud.ts +357 -0
- package/src/extractors/index.ts +8 -0
- package/src/extractors/megaplay.ts +182 -0
- package/src/index.tsx +8 -0
- package/src/models/provider-context.ts +12 -0
- package/src/models/types.ts +8 -0
- package/src/providers/anime/anikoto/anikoto.ts +84 -67
- package/src/providers/anime/anikoto/create-anikoto.ts +413 -419
- package/src/providers/movies/index.ts +6 -0
- package/src/providers/movies/vegamovies/create-vegamovies.ts +921 -0
- package/src/providers/movies/vegamovies/vegamovies.ts +63 -0
- package/src/utils/ExtractorManager.ts +7 -1
- package/src/utils/extension-utils.ts +13 -0
- package/src/utils/provider-maps.ts +3 -0
- package/lib/commonjs/extractors/streamp2p.js.map +0 -1
- package/lib/module/extractors/streamp2p.js.map +0 -1
- /package/src/extractors/{streamp2p.ts → StreamP2P.ts} +0 -0
package/src/extractors/index.ts
CHANGED
|
@@ -17,6 +17,10 @@ import VizCloud from './vizcloud';
|
|
|
17
17
|
import { VidHide } from './vidhide';
|
|
18
18
|
import Voe from './voe';
|
|
19
19
|
import { MegaUp } from './megaup';
|
|
20
|
+
import { MegaPlay } from './megaplay';
|
|
21
|
+
import { GDFlix } from './gdflix';
|
|
22
|
+
import { Gofile } from './gofile';
|
|
23
|
+
import { HubCloud } from './hubcloud';
|
|
20
24
|
|
|
21
25
|
export {
|
|
22
26
|
AsianLoad,
|
|
@@ -38,4 +42,8 @@ export {
|
|
|
38
42
|
VidHide,
|
|
39
43
|
Voe,
|
|
40
44
|
MegaUp,
|
|
45
|
+
MegaPlay,
|
|
46
|
+
GDFlix,
|
|
47
|
+
Gofile,
|
|
48
|
+
HubCloud,
|
|
41
49
|
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
|
|
3
|
+
import { type ExtractorContext, type ISource, type IVideo, type IVideoExtractor, type ISubtitle } from '../models';
|
|
4
|
+
import type { PolyURL } from '../utils/url-polyfill';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* MegaPlay extractor factory that relies on the shared extractor context
|
|
8
|
+
* @param ctx ExtractorContext containing axios, load, USER_AGENT, PolyURL
|
|
9
|
+
* @returns Object with extract method implementing IVideoExtractor interface
|
|
10
|
+
*/
|
|
11
|
+
export function MegaPlay(ctx: ExtractorContext): IVideoExtractor {
|
|
12
|
+
const serverName = 'MegaPlay';
|
|
13
|
+
const sources: IVideo[] = [];
|
|
14
|
+
const client = ctx.axios ?? axios;
|
|
15
|
+
const load = ctx.load;
|
|
16
|
+
const userAgent =
|
|
17
|
+
ctx.USER_AGENT ||
|
|
18
|
+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36';
|
|
19
|
+
|
|
20
|
+
const extract = async (videoUrl: PolyURL, referer?: string): Promise<ISource> => {
|
|
21
|
+
try {
|
|
22
|
+
const embedHref = typeof videoUrl === 'string' ? videoUrl : videoUrl.href;
|
|
23
|
+
const urlObj = typeof videoUrl === 'object' && videoUrl.origin ? videoUrl : new (ctx.PolyURL || URL)(embedHref);
|
|
24
|
+
const origin = urlObj.origin || 'https://megaplay.buzz';
|
|
25
|
+
const pageReferer = referer || embedHref;
|
|
26
|
+
|
|
27
|
+
const pageHeaders = {
|
|
28
|
+
'User-Agent': userAgent,
|
|
29
|
+
'Referer': pageReferer,
|
|
30
|
+
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const { data: html } = await client.get(embedHref, { headers: pageHeaders });
|
|
34
|
+
|
|
35
|
+
const $ = load(html);
|
|
36
|
+
const playerDiv = $('#megaplay-player');
|
|
37
|
+
|
|
38
|
+
if (!playerDiv.length) {
|
|
39
|
+
throw new Error('[MegaPlay] Could not find player element (#megaplay-player)');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const mediaId = playerDiv.attr('data-id');
|
|
43
|
+
if (!mediaId) {
|
|
44
|
+
throw new Error('[MegaPlay] Could not find data-id on player element');
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const sParam = urlObj.searchParams?.get('s');
|
|
48
|
+
const sQuery = sParam ? `&s=${encodeURIComponent(sParam)}` : '';
|
|
49
|
+
|
|
50
|
+
const ajaxHeaders = {
|
|
51
|
+
'X-Requested-With': 'XMLHttpRequest',
|
|
52
|
+
'Referer': `${origin}/`,
|
|
53
|
+
'User-Agent': userAgent,
|
|
54
|
+
'Accept': 'application/json, text/javascript, */*; q=0.01',
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
let defSourcesJson: any = null;
|
|
58
|
+
let defStreamUrl: string | null = null;
|
|
59
|
+
try {
|
|
60
|
+
const { data: resData } = await client.get(`${origin}/stream/getSources?id=${mediaId}${sQuery}`, {
|
|
61
|
+
headers: ajaxHeaders,
|
|
62
|
+
});
|
|
63
|
+
defSourcesJson = typeof resData === 'string' ? JSON.parse(resData) : resData;
|
|
64
|
+
defStreamUrl =
|
|
65
|
+
defSourcesJson?.sources?.file ||
|
|
66
|
+
(Array.isArray(defSourcesJson?.sources) ? defSourcesJson.sources[0]?.file : null);
|
|
67
|
+
} catch {
|
|
68
|
+
// Fallback to getSourcesNew
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
let newSourcesJson: any = null;
|
|
72
|
+
let newStreamUrl: string | null = null;
|
|
73
|
+
try {
|
|
74
|
+
const { data: newResData } = await client.get(`${origin}/stream/getSourcesNew?id=${mediaId}${sQuery}`, {
|
|
75
|
+
headers: ajaxHeaders,
|
|
76
|
+
});
|
|
77
|
+
newSourcesJson = typeof newResData === 'string' ? JSON.parse(newResData) : newResData;
|
|
78
|
+
newStreamUrl =
|
|
79
|
+
newSourcesJson?.sources?.file ||
|
|
80
|
+
(Array.isArray(newSourcesJson?.sources) ? newSourcesJson.sources[0]?.file : null);
|
|
81
|
+
} catch {
|
|
82
|
+
// Ignore if defStreamUrl succeeded
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const streamUrl = defStreamUrl || newStreamUrl;
|
|
86
|
+
if (!streamUrl) {
|
|
87
|
+
throw new Error('[MegaPlay] No video stream URL found from /getSources or /getSourcesNew');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const cleanStreamUrl = String(streamUrl).replace(/\\/g, '');
|
|
91
|
+
const isM3U8 = cleanStreamUrl.includes('.m3u8');
|
|
92
|
+
|
|
93
|
+
const extractedSources: IVideo[] = [];
|
|
94
|
+
const defaultSource: IVideo = {
|
|
95
|
+
url: cleanStreamUrl,
|
|
96
|
+
isM3U8,
|
|
97
|
+
quality: 'auto',
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
if (isM3U8) {
|
|
101
|
+
try {
|
|
102
|
+
const { data: m3u8Data } = await client.get(cleanStreamUrl, {
|
|
103
|
+
headers: {
|
|
104
|
+
'Referer': `${origin}/`,
|
|
105
|
+
'User-Agent': userAgent,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
if (typeof m3u8Data === 'string' && m3u8Data.includes('#EXT-X-STREAM-INF')) {
|
|
110
|
+
const lines = m3u8Data.split('\n');
|
|
111
|
+
const streamBasePath = cleanStreamUrl.substring(0, cleanStreamUrl.lastIndexOf('/'));
|
|
112
|
+
const streamOrigin = new (ctx.PolyURL || URL)(cleanStreamUrl).origin;
|
|
113
|
+
|
|
114
|
+
for (let i = 0; i < lines.length; i++) {
|
|
115
|
+
const line = lines[i]?.trim();
|
|
116
|
+
if (line && line.startsWith('#EXT-X-STREAM-INF')) {
|
|
117
|
+
const resolutionMatch = line.match(/RESOLUTION=\d+x(\d+)/);
|
|
118
|
+
const quality = resolutionMatch ? `${resolutionMatch[1]}p` : `quality_${extractedSources.length + 1}`;
|
|
119
|
+
const nextLine = lines[i + 1]?.trim();
|
|
120
|
+
if (nextLine && !nextLine.startsWith('#')) {
|
|
121
|
+
const variantUrl =
|
|
122
|
+
nextLine.startsWith('http://') || nextLine.startsWith('https://')
|
|
123
|
+
? nextLine
|
|
124
|
+
: nextLine.startsWith('/')
|
|
125
|
+
? `${streamOrigin}${nextLine}`
|
|
126
|
+
: `${streamBasePath}/${nextLine}`;
|
|
127
|
+
|
|
128
|
+
extractedSources.push({
|
|
129
|
+
url: variantUrl,
|
|
130
|
+
isM3U8: true,
|
|
131
|
+
quality,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
} catch {
|
|
138
|
+
// If fetching variants fails, defaultSource will be returned
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const finalSources = extractedSources.length > 0 ? [...extractedSources, defaultSource] : [defaultSource];
|
|
143
|
+
|
|
144
|
+
const tracks = defSourcesJson?.tracks || newSourcesJson?.tracks || [];
|
|
145
|
+
const subtitles: ISubtitle[] = [];
|
|
146
|
+
if (Array.isArray(tracks)) {
|
|
147
|
+
for (const track of tracks) {
|
|
148
|
+
if (track?.file) {
|
|
149
|
+
subtitles.push({
|
|
150
|
+
url: String(track.file).replace(/\\/g, ''),
|
|
151
|
+
lang: track.label || track.kind || 'English',
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const intro = defSourcesJson?.intro || newSourcesJson?.intro;
|
|
158
|
+
const outro = defSourcesJson?.outro || newSourcesJson?.outro;
|
|
159
|
+
|
|
160
|
+
return {
|
|
161
|
+
sources: finalSources,
|
|
162
|
+
subtitles,
|
|
163
|
+
headers: {
|
|
164
|
+
Referer: `${origin}/`,
|
|
165
|
+
},
|
|
166
|
+
intro: intro ? { start: intro.start, end: intro.end } : undefined,
|
|
167
|
+
outro: outro ? { start: outro.start, end: outro.end } : undefined,
|
|
168
|
+
embedURL: embedHref,
|
|
169
|
+
};
|
|
170
|
+
} catch (error) {
|
|
171
|
+
throw new Error((error as Error).message);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
return {
|
|
176
|
+
serverName,
|
|
177
|
+
sources,
|
|
178
|
+
extract,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export default MegaPlay;
|
package/src/index.tsx
CHANGED
|
@@ -51,6 +51,10 @@ import {
|
|
|
51
51
|
VidHide,
|
|
52
52
|
Voe,
|
|
53
53
|
MegaUp,
|
|
54
|
+
MegaPlay,
|
|
55
|
+
GDFlix,
|
|
56
|
+
Gofile,
|
|
57
|
+
HubCloud,
|
|
54
58
|
} from './extractors';
|
|
55
59
|
|
|
56
60
|
// Models (domain types, enums, and constants)
|
|
@@ -127,6 +131,10 @@ export {
|
|
|
127
131
|
MegaCloud,
|
|
128
132
|
VidHide,
|
|
129
133
|
Voe,
|
|
134
|
+
MegaPlay,
|
|
135
|
+
GDFlix,
|
|
136
|
+
Gofile,
|
|
137
|
+
HubCloud,
|
|
130
138
|
};
|
|
131
139
|
|
|
132
140
|
// Models: TypeScript types
|
|
@@ -119,6 +119,18 @@ export interface ExtractorRegistry {
|
|
|
119
119
|
MegaUp: (ctx?: ExtractorContext) => {
|
|
120
120
|
extract: (url: PolyURL) => Promise<any>;
|
|
121
121
|
};
|
|
122
|
+
MegaPlay: (ctx?: ExtractorContext) => {
|
|
123
|
+
extract: (url: PolyURL, referer?: string) => Promise<any>;
|
|
124
|
+
};
|
|
125
|
+
GDFlix: (ctx?: ExtractorContext) => {
|
|
126
|
+
extract: (url: PolyURL | string, ...args: any[]) => Promise<any>;
|
|
127
|
+
};
|
|
128
|
+
Gofile: (ctx?: ExtractorContext) => {
|
|
129
|
+
extract: (url: PolyURL | string, ...args: any[]) => Promise<any>;
|
|
130
|
+
};
|
|
131
|
+
HubCloud: (ctx?: ExtractorContext) => {
|
|
132
|
+
extract: (url: PolyURL | string, ...args: any[]) => Promise<any>;
|
|
133
|
+
};
|
|
122
134
|
}
|
|
123
135
|
|
|
124
136
|
export type ProviderConfig = {
|
package/src/models/types.ts
CHANGED
|
@@ -169,6 +169,10 @@ export interface IVideo {
|
|
|
169
169
|
* The **MAIN URL** of the video provider that should take you to the video
|
|
170
170
|
*/
|
|
171
171
|
url: string;
|
|
172
|
+
/**
|
|
173
|
+
* The name of the server providing this video stream
|
|
174
|
+
*/
|
|
175
|
+
server?: string;
|
|
172
176
|
/**
|
|
173
177
|
* The Quality of the video should include the `p` suffix
|
|
174
178
|
*/
|
|
@@ -213,6 +217,10 @@ export enum StreamingServers {
|
|
|
213
217
|
Luffy = 'luffy',
|
|
214
218
|
Multi = 'multi',
|
|
215
219
|
Kwik = 'kwik',
|
|
220
|
+
MegaPlay = 'megaplay',
|
|
221
|
+
GDFlix = 'gdflix',
|
|
222
|
+
Gofile = 'gofile',
|
|
223
|
+
HubCloud = 'hubcloud',
|
|
216
224
|
}
|
|
217
225
|
|
|
218
226
|
export enum MediaStatus {
|
|
@@ -2,8 +2,7 @@ import { AnimeParser } from '../../../models';
|
|
|
2
2
|
import { createProviderContext } from '../../../utils/create-provider-context';
|
|
3
3
|
import createAniKoto, { type AniKotoProviderInstance } from './create-anikoto';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
export class AniWatchTv extends AnimeParser {
|
|
5
|
+
export class AniKoto extends AnimeParser {
|
|
7
6
|
private instance: AniKotoProviderInstance;
|
|
8
7
|
override logo: string;
|
|
9
8
|
override name: string;
|
|
@@ -52,147 +51,165 @@ export class AniWatchTv extends AnimeParser {
|
|
|
52
51
|
this.fetchSchedule = this.instance.fetchSchedule;
|
|
53
52
|
this.fetchSpotlight = this.instance.fetchSpotlight;
|
|
54
53
|
this.fetchSearchSuggestions = this.instance.fetchSearchSuggestions;
|
|
55
|
-
this.fetchContinueWatching = this.instance.fetchContinueWatching;
|
|
56
|
-
this.fetchWatchList = this.instance.fetchWatchList;
|
|
57
54
|
this.fetchAnimeInfo = this.instance.fetchAnimeInfo;
|
|
58
55
|
this.fetchEpisodeSources = this.instance.fetchEpisodeSources;
|
|
59
56
|
this.fetchEpisodeServers = this.instance.fetchEpisodeServers;
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @param
|
|
60
|
+
* Search for anime titles
|
|
61
|
+
* @param query Search keyword
|
|
62
|
+
* @param page Page number (default: 1)
|
|
65
63
|
*/
|
|
66
64
|
search!: AniKotoProviderInstance['search'];
|
|
65
|
+
|
|
67
66
|
/**
|
|
68
|
-
* Fetch advanced anime search results with various filters
|
|
69
|
-
*
|
|
70
|
-
* @param page Page number (default: 1)
|
|
71
|
-
* @param type One of (Optional): movie, tv, ova, ona, special, music
|
|
72
|
-
* @param status One of (Optional): finished_airing, currently_airing, not_yet_aired
|
|
73
|
-
* @param rated One of (Optional): g, pg, pg_13, r, r_plus, rx
|
|
74
|
-
* @param score Number from 1 to 10 (Optional)
|
|
75
|
-
* @param season One of (Optional): spring, summer, fall, winter
|
|
76
|
-
* @param language One of (Optional): sub, dub, sub_dub
|
|
77
|
-
* @param startDate Start date object { year, month, day } (Optional)
|
|
78
|
-
* @param endDate End date object { year, month, day } (Optional)
|
|
79
|
-
* @param sort One of (Optional): recently_added, recently_updated, score, name_az, released_date, most_watched
|
|
80
|
-
* @param genres Array of genres (Optional): action, adventure, cars, comedy, dementia, demons, mystery, drama, ecchi, fantasy, game, historical, horror, kids, magic, martial_arts, mecha, music, parody, samurai, romance, school, sci_fi, shoujo, shoujo_ai, shounen, shounen_ai, space, sports, super_power, vampire, harem, military, slice_of_life, supernatural, police, psychological, thriller, seinen, isekai, josei
|
|
81
|
-
* @returns A Promise resolving to the search results.
|
|
67
|
+
* Fetch advanced anime search results with various filters
|
|
82
68
|
*/
|
|
83
69
|
fetchAdvancedSearch!: AniKotoProviderInstance['fetchAdvancedSearch'];
|
|
70
|
+
|
|
84
71
|
/**
|
|
85
|
-
*
|
|
72
|
+
* Fetch top airing anime
|
|
73
|
+
* @param page Page number (default: 1)
|
|
86
74
|
*/
|
|
87
75
|
fetchTopAiring!: AniKotoProviderInstance['fetchTopAiring'];
|
|
76
|
+
|
|
88
77
|
/**
|
|
89
|
-
*
|
|
78
|
+
* Fetch most popular anime
|
|
79
|
+
* @param page Page number (default: 1)
|
|
90
80
|
*/
|
|
91
81
|
fetchMostPopular!: AniKotoProviderInstance['fetchMostPopular'];
|
|
82
|
+
|
|
92
83
|
/**
|
|
93
|
-
*
|
|
84
|
+
* Fetch most favorite anime
|
|
85
|
+
* @param page Page number (default: 1)
|
|
94
86
|
*/
|
|
95
87
|
fetchMostFavorite!: AniKotoProviderInstance['fetchMostFavorite'];
|
|
88
|
+
|
|
96
89
|
/**
|
|
97
|
-
*
|
|
90
|
+
* Fetch latest completed anime
|
|
91
|
+
* @param page Page number (default: 1)
|
|
98
92
|
*/
|
|
99
93
|
fetchLatestCompleted!: AniKotoProviderInstance['fetchLatestCompleted'];
|
|
94
|
+
|
|
100
95
|
/**
|
|
101
|
-
*
|
|
96
|
+
* Fetch recently updated anime
|
|
97
|
+
* @param page Page number (default: 1)
|
|
102
98
|
*/
|
|
103
99
|
fetchRecentlyUpdated!: AniKotoProviderInstance['fetchRecentlyUpdated'];
|
|
100
|
+
|
|
104
101
|
/**
|
|
105
|
-
*
|
|
102
|
+
* Fetch recently added anime
|
|
103
|
+
* @param page Page number (default: 1)
|
|
106
104
|
*/
|
|
107
105
|
fetchRecentlyAdded!: AniKotoProviderInstance['fetchRecentlyAdded'];
|
|
106
|
+
|
|
108
107
|
/**
|
|
109
|
-
*
|
|
108
|
+
* Fetch top upcoming anime
|
|
109
|
+
* @param page Page number (default: 1)
|
|
110
110
|
*/
|
|
111
111
|
fetchTopUpcoming!: AniKotoProviderInstance['fetchTopUpcoming'];
|
|
112
|
+
|
|
112
113
|
/**
|
|
113
|
-
*
|
|
114
|
-
* @param
|
|
114
|
+
* Fetch anime by studio
|
|
115
|
+
* @param studioId Studio slug / id
|
|
116
|
+
* @param page Page number (default: 1)
|
|
115
117
|
*/
|
|
116
118
|
fetchStudio!: AniKotoProviderInstance['fetchStudio'];
|
|
119
|
+
|
|
117
120
|
/**
|
|
118
|
-
*
|
|
121
|
+
* Fetch subbed anime
|
|
122
|
+
* @param page Page number (default: 1)
|
|
119
123
|
*/
|
|
120
124
|
fetchSubbedAnime!: AniKotoProviderInstance['fetchSubbedAnime'];
|
|
125
|
+
|
|
121
126
|
/**
|
|
122
|
-
*
|
|
127
|
+
* Fetch dubbed anime
|
|
128
|
+
* @param page Page number (default: 1)
|
|
123
129
|
*/
|
|
124
130
|
fetchDubbedAnime!: AniKotoProviderInstance['fetchDubbedAnime'];
|
|
131
|
+
|
|
125
132
|
/**
|
|
126
|
-
*
|
|
133
|
+
* Fetch movie anime
|
|
134
|
+
* @param page Page number (default: 1)
|
|
127
135
|
*/
|
|
128
136
|
fetchMovie!: AniKotoProviderInstance['fetchMovie'];
|
|
137
|
+
|
|
129
138
|
/**
|
|
130
|
-
*
|
|
139
|
+
* Fetch TV series anime
|
|
140
|
+
* @param page Page number (default: 1)
|
|
131
141
|
*/
|
|
132
142
|
fetchTV!: AniKotoProviderInstance['fetchTV'];
|
|
143
|
+
|
|
133
144
|
/**
|
|
134
|
-
*
|
|
145
|
+
* Fetch OVA anime
|
|
146
|
+
* @param page Page number (default: 1)
|
|
135
147
|
*/
|
|
136
148
|
fetchOVA!: AniKotoProviderInstance['fetchOVA'];
|
|
149
|
+
|
|
137
150
|
/**
|
|
138
|
-
*
|
|
151
|
+
* Fetch ONA anime
|
|
152
|
+
* @param page Page number (default: 1)
|
|
139
153
|
*/
|
|
140
154
|
fetchONA!: AniKotoProviderInstance['fetchONA'];
|
|
155
|
+
|
|
141
156
|
/**
|
|
142
|
-
*
|
|
157
|
+
* Fetch special anime
|
|
158
|
+
* @param page Page number (default: 1)
|
|
143
159
|
*/
|
|
144
160
|
fetchSpecial!: AniKotoProviderInstance['fetchSpecial'];
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Fetch genres list
|
|
164
|
+
*/
|
|
145
165
|
fetchGenres!: AniKotoProviderInstance['fetchGenres'];
|
|
166
|
+
|
|
146
167
|
/**
|
|
147
|
-
*
|
|
168
|
+
* Search anime by genre
|
|
169
|
+
* @param genre Genre name / slug
|
|
170
|
+
* @param page Page number (default: 1)
|
|
148
171
|
*/
|
|
149
172
|
genreSearch!: AniKotoProviderInstance['genreSearch'];
|
|
173
|
+
|
|
150
174
|
/**
|
|
151
|
-
*
|
|
152
|
-
* @param date
|
|
153
|
-
* @returns A promise that resolves to an object containing the search results.
|
|
175
|
+
* Fetch anime release schedule
|
|
176
|
+
* @param date Date in YYYY-MM-DD format
|
|
154
177
|
*/
|
|
155
178
|
fetchSchedule!: AniKotoProviderInstance['fetchSchedule'];
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Fetch spotlight anime from homepage
|
|
182
|
+
*/
|
|
156
183
|
fetchSpotlight!: AniKotoProviderInstance['fetchSpotlight'];
|
|
157
|
-
|
|
184
|
+
|
|
158
185
|
/**
|
|
159
|
-
*
|
|
160
|
-
* @param
|
|
161
|
-
* @returns A promise that resolves to an array of anime episodes.
|
|
186
|
+
* Fetch search suggestions
|
|
187
|
+
* @param query Search query
|
|
162
188
|
*/
|
|
163
|
-
|
|
164
|
-
|
|
189
|
+
fetchSearchSuggestions!: AniKotoProviderInstance['fetchSearchSuggestions'];
|
|
190
|
+
|
|
165
191
|
/**
|
|
166
|
-
*
|
|
192
|
+
* Fetch anime info and episode list
|
|
193
|
+
* @param id Anime slug / id
|
|
167
194
|
*/
|
|
168
195
|
fetchAnimeInfo!: AniKotoProviderInstance['fetchAnimeInfo'];
|
|
196
|
+
|
|
169
197
|
/**
|
|
170
|
-
*
|
|
198
|
+
* Fetch episode video sources
|
|
171
199
|
* @param episodeId Episode id
|
|
172
|
-
* @param server
|
|
173
|
-
* @param subOrDub
|
|
200
|
+
* @param server Server type (default: MegaPlay)
|
|
201
|
+
* @param subOrDub Sub or Dub (default: Sub)
|
|
174
202
|
*/
|
|
175
203
|
fetchEpisodeSources!: AniKotoProviderInstance['fetchEpisodeSources'];
|
|
204
|
+
|
|
176
205
|
/**
|
|
177
|
-
*
|
|
206
|
+
* Fetch episode servers
|
|
178
207
|
* @param episodeId Episode id
|
|
208
|
+
* @param subOrDub Sub or Dub (default: Sub)
|
|
179
209
|
*/
|
|
180
210
|
fetchEpisodeServers!: AniKotoProviderInstance['fetchEpisodeServers'];
|
|
181
211
|
}
|
|
182
212
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
// // tsx ./src/providers/anime/aniwatchtv/aniwatchtv.ts
|
|
187
|
-
// const aniwatchtv = new AniWatchTv();
|
|
188
|
-
// const anime = await aniwatchtv.search('Dandadan');
|
|
189
|
-
// const info = await aniwatchtv.fetchAnimeInfo('solo-leveling-season-2-arise-from-the-shadow-19413');
|
|
190
|
-
// // console.log(info.episodes);
|
|
191
|
-
// const sources = await aniwatchtv.fetchEpisodeServers(
|
|
192
|
-
// 'solo-leveling-season-2-arise-from-the-shadow-19413$episode$131394',
|
|
193
|
-
// // 'megacloud-hd-2',
|
|
194
|
-
// // undefined,
|
|
195
|
-
// SubOrDub.DUB
|
|
196
|
-
// );
|
|
197
|
-
// // console.log(sources);
|
|
198
|
-
// })();
|
|
213
|
+
// Export AniKoto as AniWatchTv as well for backwards compatibility
|
|
214
|
+
export { AniKoto as AniWatchTv };
|
|
215
|
+
export default AniKoto;
|