react-native-consumet 1.3.1 → 1.5.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 +98 -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/flixcloud.js +179 -0
- package/lib/commonjs/extractors/flixcloud.js.map +1 -0
- 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 +35 -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 +59 -74
- package/lib/commonjs/extractors/kwik.js.map +1 -1
- package/lib/commonjs/extractors/megacloud.js.map +1 -1
- package/lib/commonjs/extractors/megaplay.js +241 -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 +9 -2
- 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 +5 -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 +107 -137
- 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/anineko/anineko.js +31 -0
- package/lib/commonjs/providers/anime/anineko/anineko.js.map +1 -0
- package/lib/commonjs/providers/anime/anineko/create-anineko.js +447 -0
- package/lib/commonjs/providers/anime/anineko/create-anineko.js.map +1 -0
- package/lib/commonjs/providers/anime/index.js +9 -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/reanime/create-reanime.js +255 -0
- package/lib/commonjs/providers/anime/reanime/create-reanime.js.map +1 -0
- package/lib/commonjs/providers/anime/reanime/reanime.js +31 -0
- package/lib/commonjs/providers/anime/reanime/reanime.js.map +1 -0
- 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 +17 -2
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +8 -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 +3 -0
- package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
- package/lib/commonjs/utils/create-provider-context.js +2 -0
- package/lib/commonjs/utils/create-provider-context.js.map +1 -1
- package/lib/commonjs/utils/extension-utils.js +15 -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 +98 -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/flixcloud.js +174 -0
- package/lib/module/extractors/flixcloud.js.map +1 -0
- 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 +6 -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 +58 -74
- package/lib/module/extractors/kwik.js.map +1 -1
- package/lib/module/extractors/megacloud.js.map +1 -1
- package/lib/module/extractors/megaplay.js +236 -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 +8 -2
- 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 +5 -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 +107 -138
- 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/anineko/anineko.js +25 -0
- package/lib/module/providers/anime/anineko/anineko.js.map +1 -0
- package/lib/module/providers/anime/anineko/create-anineko.js +443 -0
- package/lib/module/providers/anime/anineko/create-anineko.js.map +1 -0
- package/lib/module/providers/anime/index.js +9 -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/reanime/create-reanime.js +251 -0
- package/lib/module/providers/anime/reanime/create-reanime.js.map +1 -0
- package/lib/module/providers/anime/reanime/reanime.js +25 -0
- package/lib/module/providers/anime/reanime/reanime.js.map +1 -0
- 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 +17 -2
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +8 -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 +2 -0
- package/lib/module/utils/create-extractor-context.js.map +1 -1
- package/lib/module/utils/create-provider-context.js +2 -0
- package/lib/module/utils/create-provider-context.js.map +1 -1
- package/lib/module/utils/extension-utils.js +16 -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/flixcloud.d.ts +18 -0
- package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts.map +1 -0
- 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 +6 -1
- package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts +1 -0
- package/lib/typescript/commonjs/src/extractors/kwik.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/extractors/vidhide.d.ts +1 -0
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
- 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/extractor-context.d.ts +3 -0
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/provider-context.d.ts +18 -0
- package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/types.d.ts +10 -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/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts +23 -0
- package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts +52 -0
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts +18 -0
- package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts +19 -0
- package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts.map +1 -0
- 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/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +11 -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/flixcloud.d.ts +18 -0
- package/lib/typescript/module/src/extractors/flixcloud.d.ts.map +1 -0
- 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 +6 -1
- package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts +1 -0
- package/lib/typescript/module/src/extractors/kwik.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/extractors/vidhide.d.ts +1 -0
- package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
- 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/extractor-context.d.ts +3 -0
- package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/provider-context.d.ts +18 -0
- package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/types.d.ts +10 -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/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts +23 -0
- package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts +52 -0
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/index.d.ts +8 -0
- package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts +18 -0
- package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts +19 -0
- package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts.map +1 -0
- 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/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/extension-utils.d.ts +11 -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 +98 -3
- package/src/extractors/flixcloud.ts +139 -0
- 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 +10 -0
- package/src/extractors/kwik.ts +74 -93
- package/src/extractors/megaplay.ts +254 -0
- package/src/extractors/vidhide.ts +12 -4
- package/src/index.tsx +8 -0
- package/src/models/extractor-context.ts +3 -0
- package/src/models/provider-context.ts +18 -0
- package/src/models/types.ts +9 -0
- package/src/providers/anime/anikoto/anikoto.ts +84 -67
- package/src/providers/anime/anikoto/create-anikoto.ts +413 -419
- package/src/providers/anime/animepahe/create-animepahe.ts +118 -158
- package/src/providers/anime/anineko/anineko.ts +44 -0
- package/src/providers/anime/anineko/create-anineko.ts +489 -0
- package/src/providers/anime/index.ts +8 -0
- package/src/providers/anime/reanime/create-reanime.ts +283 -0
- package/src/providers/anime/reanime/reanime.ts +41 -0
- 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 +14 -1
- package/src/utils/ProviderManager.ts +7 -0
- package/src/utils/create-extractor-context.ts +2 -0
- package/src/utils/create-provider-context.ts +2 -0
- package/src/utils/extension-utils.ts +18 -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
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { type ExtractorContext, type ISource, type IVideo, type IVideoExtractor, type ISubtitle } from '../models';
|
|
2
|
+
import type { PolyURL } from '../utils/url-polyfill';
|
|
3
|
+
|
|
4
|
+
const MEGA_KEY_STR = 'i?LMTAx0Q6,:}50U';
|
|
5
|
+
const MEGA_IV_STR = "W0;27ToaUpl_P%'c";
|
|
6
|
+
|
|
7
|
+
/** Matches the encrypted segment token inside a URL: `/segment/<base64url-token>` */
|
|
8
|
+
const SEGMENT_RE = /\/segment\/([A-Za-z0-9_-]+)/;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* MegaPlay extractor factory that relies on the shared extractor context
|
|
12
|
+
* @param ctx ExtractorContext containing axios, load, CryptoJS, USER_AGENT, PolyURL
|
|
13
|
+
* @returns Object with extract method implementing IVideoExtractor interface
|
|
14
|
+
*/
|
|
15
|
+
export function MegaPlay(ctx: ExtractorContext): IVideoExtractor {
|
|
16
|
+
const serverName = 'MegaPlay';
|
|
17
|
+
const sources: IVideo[] = [];
|
|
18
|
+
const client = ctx.axios;
|
|
19
|
+
const load = ctx.load;
|
|
20
|
+
const CryptoJS = ctx.CryptoJS;
|
|
21
|
+
const userAgent =
|
|
22
|
+
ctx.USER_AGENT ||
|
|
23
|
+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36';
|
|
24
|
+
|
|
25
|
+
function megaPlayDecrypt(encB64Url: string): string {
|
|
26
|
+
// base64url → base64 (with padding)
|
|
27
|
+
const b64 = encB64Url.replace(/-/g, '+').replace(/_/g, '/');
|
|
28
|
+
const padded = b64 + '='.repeat((4 - (b64.length % 4)) % 4);
|
|
29
|
+
|
|
30
|
+
// AES-256 key: 16-char string + 16 null bytes (Latin1 = 1 byte per char for ASCII)
|
|
31
|
+
const key = CryptoJS.enc.Latin1.parse(MEGA_KEY_STR + '\0'.repeat(16));
|
|
32
|
+
|
|
33
|
+
// IV: raw bytes of the 16-char IV string
|
|
34
|
+
const iv = CryptoJS.enc.Latin1.parse(MEGA_IV_STR);
|
|
35
|
+
|
|
36
|
+
const ciphertext = CryptoJS.enc.Base64.parse(padded);
|
|
37
|
+
const cipherParams = CryptoJS.lib.CipherParams.create({ ciphertext });
|
|
38
|
+
|
|
39
|
+
const decrypted = CryptoJS.AES.decrypt(cipherParams, key, {
|
|
40
|
+
iv,
|
|
41
|
+
mode: CryptoJS.mode.CBC,
|
|
42
|
+
padding: CryptoJS.pad.Pkcs7,
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
return decrypted.toString(CryptoJS.enc.Utf8);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function resolveSegmentUrl(raw: string): string {
|
|
49
|
+
const m = raw.match(SEGMENT_RE);
|
|
50
|
+
if (!m || !m[1]) return raw;
|
|
51
|
+
try {
|
|
52
|
+
const decrypted = megaPlayDecrypt(m[1]);
|
|
53
|
+
return decrypted || raw;
|
|
54
|
+
} catch {
|
|
55
|
+
return raw;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function extractStreamUrl(data: any): string | null {
|
|
60
|
+
if (!data || typeof data !== 'object') return null;
|
|
61
|
+
|
|
62
|
+
// ── Case 1: encrypted payload { enc: "base64url…" } ──────────────────
|
|
63
|
+
if (typeof data.enc === 'string' && data.enc.length > 0) {
|
|
64
|
+
try {
|
|
65
|
+
const plain = megaPlayDecrypt(data.enc);
|
|
66
|
+
if (plain) {
|
|
67
|
+
// Decrypted value might be JSON: { sources: [{ file: "..." }] }
|
|
68
|
+
try {
|
|
69
|
+
const parsed = JSON.parse(plain);
|
|
70
|
+
const url =
|
|
71
|
+
(typeof parsed?.sources?.file === 'string' ? parsed.sources.file : null) ||
|
|
72
|
+
(Array.isArray(parsed?.sources) && parsed.sources[0]?.file ? String(parsed.sources[0].file) : null) ||
|
|
73
|
+
(typeof parsed?.file === 'string' ? parsed.file : null);
|
|
74
|
+
if (url) return resolveSegmentUrl(url);
|
|
75
|
+
} catch {
|
|
76
|
+
// not JSON — fall through and treat as raw URL
|
|
77
|
+
}
|
|
78
|
+
if (/^https?:\/\//i.test(plain) || plain.includes('.m3u8')) {
|
|
79
|
+
return plain.trim();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
} catch {
|
|
83
|
+
// decrypt failed — fall through to plain sources
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// ── Case 2: plain / segment-token sources ──────────────────────────────
|
|
88
|
+
const rawUrl: string | null =
|
|
89
|
+
(typeof data?.sources?.file === 'string' ? data.sources.file : null) ||
|
|
90
|
+
(Array.isArray(data?.sources) && data.sources[0]?.file ? String(data.sources[0].file) : null);
|
|
91
|
+
|
|
92
|
+
if (rawUrl) return resolveSegmentUrl(rawUrl);
|
|
93
|
+
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const extract = async (videoUrl: PolyURL, referer?: string): Promise<ISource> => {
|
|
98
|
+
const embedHref = typeof videoUrl === 'string' ? videoUrl : videoUrl.href;
|
|
99
|
+
const urlObj = typeof videoUrl === 'object' && videoUrl.origin ? videoUrl : new (ctx.PolyURL || URL)(embedHref);
|
|
100
|
+
const origin = urlObj.origin || 'https://megaplay.buzz';
|
|
101
|
+
const pageReferer = referer || embedHref;
|
|
102
|
+
|
|
103
|
+
// ── Collect cookies across requests so the video player can send them ────
|
|
104
|
+
const cookieJar: string[] = [];
|
|
105
|
+
|
|
106
|
+
const parseCookies = (headers: any): string[] => {
|
|
107
|
+
const raw = headers?.['set-cookie'];
|
|
108
|
+
if (!raw) return [];
|
|
109
|
+
const arr = Array.isArray(raw) ? raw : [raw];
|
|
110
|
+
// Keep only the name=value part (strip path/domain/etc.)
|
|
111
|
+
return arr.map((c: string) => c.split(';')[0] ?? '').filter(Boolean);
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const pageRes = await client.get(embedHref, {
|
|
115
|
+
headers: {
|
|
116
|
+
'User-Agent': userAgent,
|
|
117
|
+
'Referer': pageReferer,
|
|
118
|
+
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
cookieJar.push(...parseCookies(pageRes.headers));
|
|
122
|
+
|
|
123
|
+
const $ = load(pageRes.data);
|
|
124
|
+
const playerDiv = $('#megaplay-player');
|
|
125
|
+
|
|
126
|
+
if (!playerDiv.length) {
|
|
127
|
+
throw new Error('[MegaPlay] Could not find player element (#megaplay-player)');
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const mediaId = playerDiv.attr('data-id');
|
|
131
|
+
if (!mediaId) {
|
|
132
|
+
throw new Error('[MegaPlay] Could not find data-id on player element');
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const sParam = urlObj.searchParams?.get('s');
|
|
136
|
+
const sQuery = sParam ? `&s=${encodeURIComponent(sParam)}` : '';
|
|
137
|
+
|
|
138
|
+
const cookieHeader = () => cookieJar.join('; ');
|
|
139
|
+
|
|
140
|
+
const ajaxHeaders = (): Record<string, string> => ({
|
|
141
|
+
'X-Requested-With': 'XMLHttpRequest',
|
|
142
|
+
'Referer': `${origin}/`,
|
|
143
|
+
'Origin': origin,
|
|
144
|
+
'User-Agent': userAgent,
|
|
145
|
+
'Accept': 'application/json, text/javascript, */*; q=0.01',
|
|
146
|
+
...(cookieJar.length ? { Cookie: cookieHeader() } : {}),
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
const fetchJson = async (url: string): Promise<any | null> => {
|
|
150
|
+
try {
|
|
151
|
+
const res = await client.get(url, { headers: ajaxHeaders() });
|
|
152
|
+
cookieJar.push(...parseCookies(res.headers));
|
|
153
|
+
const data = res.data;
|
|
154
|
+
return typeof data === 'string' ? JSON.parse(data) : data;
|
|
155
|
+
} catch {
|
|
156
|
+
return null;
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
const [defSourcesJson, newSourcesJson] = await Promise.all([
|
|
161
|
+
fetchJson(`${origin}/stream/getSources?id=${mediaId}${sQuery}`),
|
|
162
|
+
fetchJson(`${origin}/stream/getSourcesNew?id=${mediaId}${sQuery}`),
|
|
163
|
+
]);
|
|
164
|
+
|
|
165
|
+
const streamUrl = extractStreamUrl(defSourcesJson) || extractStreamUrl(newSourcesJson);
|
|
166
|
+
|
|
167
|
+
if (!streamUrl) {
|
|
168
|
+
throw new Error('[MegaPlay] No video stream URL found from /getSources or /getSourcesNew');
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const cleanStreamUrl = streamUrl.replace(/\\/g, '').trim();
|
|
172
|
+
const isM3U8 = cleanStreamUrl.includes('.m3u8');
|
|
173
|
+
|
|
174
|
+
const extractedSources: IVideo[] = [];
|
|
175
|
+
const defaultSource: IVideo = { url: cleanStreamUrl, isM3U8, quality: 'auto' };
|
|
176
|
+
|
|
177
|
+
if (isM3U8) {
|
|
178
|
+
try {
|
|
179
|
+
const { data: m3u8Data } = await client.get(cleanStreamUrl, {
|
|
180
|
+
headers: { 'Referer': `${origin}/`, 'User-Agent': userAgent },
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
if (typeof m3u8Data === 'string' && m3u8Data.includes('#EXT-X-STREAM-INF')) {
|
|
184
|
+
const lines = m3u8Data.split('\n');
|
|
185
|
+
const streamBasePath = cleanStreamUrl.substring(0, cleanStreamUrl.lastIndexOf('/'));
|
|
186
|
+
const streamOrigin = new (ctx.PolyURL || URL)(cleanStreamUrl).origin;
|
|
187
|
+
|
|
188
|
+
for (let i = 0; i < lines.length; i++) {
|
|
189
|
+
const line = lines[i]?.trim();
|
|
190
|
+
if (line?.startsWith('#EXT-X-STREAM-INF')) {
|
|
191
|
+
const resMatch = line.match(/RESOLUTION=\d+x(\d+)/);
|
|
192
|
+
const quality = resMatch ? `${resMatch[1]}p` : `quality_${extractedSources.length + 1}`;
|
|
193
|
+
const next = lines[i + 1]?.trim();
|
|
194
|
+
if (next && !next.startsWith('#')) {
|
|
195
|
+
const variantUrl =
|
|
196
|
+
next.startsWith('http://') || next.startsWith('https://')
|
|
197
|
+
? next
|
|
198
|
+
: next.startsWith('/')
|
|
199
|
+
? `${streamOrigin}${next}`
|
|
200
|
+
: `${streamBasePath}/${next}`;
|
|
201
|
+
extractedSources.push({ url: variantUrl, isM3U8: true, quality });
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
} catch {
|
|
207
|
+
// variants fetch failed — defaultSource will be used
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const finalSources = extractedSources.length > 0 ? [...extractedSources, defaultSource] : [defaultSource];
|
|
212
|
+
|
|
213
|
+
const tracks = defSourcesJson?.tracks ?? newSourcesJson?.tracks ?? [];
|
|
214
|
+
const subtitles: ISubtitle[] = [];
|
|
215
|
+
if (Array.isArray(tracks)) {
|
|
216
|
+
for (const track of tracks) {
|
|
217
|
+
if (track?.file) {
|
|
218
|
+
subtitles.push({
|
|
219
|
+
url: String(track.file).replace(/\\/g, ''),
|
|
220
|
+
lang: track.label || track.kind || 'English',
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
const intro = defSourcesJson?.intro ?? newSourcesJson?.intro;
|
|
227
|
+
const outro = defSourcesJson?.outro ?? newSourcesJson?.outro;
|
|
228
|
+
|
|
229
|
+
// Build player headers — these must be sent with every HLS request.
|
|
230
|
+
// The CDN (fetch.nexabloom.top) is IP-bound: the URL is generated for the
|
|
231
|
+
// requesting IP, so extraction and playback must share the same IP.
|
|
232
|
+
const playerHeaders: Record<string, string> = {
|
|
233
|
+
'Referer': `${origin}/`,
|
|
234
|
+
'Origin': origin,
|
|
235
|
+
'User-Agent': userAgent,
|
|
236
|
+
};
|
|
237
|
+
if (cookieJar.length) {
|
|
238
|
+
playerHeaders.Cookie = cookieHeader();
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
return {
|
|
242
|
+
sources: finalSources,
|
|
243
|
+
subtitles,
|
|
244
|
+
headers: playerHeaders,
|
|
245
|
+
intro: intro ? { start: intro.start, end: intro.end } : undefined,
|
|
246
|
+
outro: outro ? { start: outro.start, end: outro.end } : undefined,
|
|
247
|
+
embedURL: embedHref,
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
return { serverName, sources, extract };
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export default MegaPlay;
|
|
@@ -9,7 +9,7 @@ import type { PolyURL } from '../utils/url-polyfill';
|
|
|
9
9
|
export function VidHide(ctx: ExtractorContext): IVideoExtractor {
|
|
10
10
|
const serverName = 'VidHide';
|
|
11
11
|
const sources: IVideo[] = [];
|
|
12
|
-
const { axios, USER_AGENT } = ctx;
|
|
12
|
+
const { axios, USER_AGENT, NativeConsumet } = ctx;
|
|
13
13
|
|
|
14
14
|
const extract = async (videoUrl: PolyURL): Promise<ISource> => {
|
|
15
15
|
try {
|
|
@@ -24,11 +24,17 @@ export function VidHide(ctx: ExtractorContext): IVideoExtractor {
|
|
|
24
24
|
throw new Error('Video not found');
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
);
|
|
27
|
+
const packedScript = /(eval)(\(f.*?)(\n<\/script>)/m.exec(data.replace(/\n/g, ' '))?.[2]?.replace('eval', '');
|
|
28
|
+
|
|
29
|
+
if (!packedScript) throw new Error('No packed script found');
|
|
30
|
+
|
|
31
|
+
const unpackedData = await NativeConsumet.deobfuscateScript(packedScript);
|
|
32
|
+
if (!unpackedData) throw new Error('Failed to deobfuscate script');
|
|
33
|
+
|
|
30
34
|
const links = unpackedData.match(/https?:\/\/[^"]+?\.m3u8[^"]*/g) ?? [];
|
|
31
35
|
const m3u8Link = links[0];
|
|
36
|
+
if (!m3u8Link) throw new Error('No m3u8 link found');
|
|
37
|
+
|
|
32
38
|
const m3u8Content = await axios.get(m3u8Link, {
|
|
33
39
|
headers: {
|
|
34
40
|
'Referer': m3u8Link,
|
|
@@ -76,3 +82,5 @@ export function VidHide(ctx: ExtractorContext): IVideoExtractor {
|
|
|
76
82
|
extract,
|
|
77
83
|
};
|
|
78
84
|
}
|
|
85
|
+
|
|
86
|
+
export default VidHide;
|
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
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AxiosInstance } from 'axios';
|
|
2
2
|
import type { CheerioAPI } from 'cheerio';
|
|
3
|
+
import type CryptoJS from 'crypto-js';
|
|
3
4
|
import type { PolyURL, PolyURLSearchParams } from '../utils/url-polyfill';
|
|
4
5
|
import type {
|
|
5
6
|
bypassDdosGuard,
|
|
@@ -18,6 +19,8 @@ import type {
|
|
|
18
19
|
export interface ExtractorContext {
|
|
19
20
|
axios: AxiosInstance;
|
|
20
21
|
load: (html: string) => CheerioAPI;
|
|
22
|
+
/** CryptoJS library — use instead of importing crypto-js directly */
|
|
23
|
+
CryptoJS: typeof CryptoJS;
|
|
21
24
|
USER_AGENT?: string;
|
|
22
25
|
PolyURL: typeof PolyURL;
|
|
23
26
|
PolyURLSearchParams: typeof PolyURLSearchParams;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AxiosInstance } from 'axios';
|
|
2
2
|
import type { CheerioAPI } from 'cheerio';
|
|
3
|
+
import type CryptoJS from 'crypto-js';
|
|
3
4
|
import type AnimeParser from './anime-parser';
|
|
4
5
|
import type MovieParser from './movie-parser';
|
|
5
6
|
import type { ExtractorContext, ExtractorContextConfig } from './extractor-context';
|
|
@@ -119,6 +120,21 @@ export interface ExtractorRegistry {
|
|
|
119
120
|
MegaUp: (ctx?: ExtractorContext) => {
|
|
120
121
|
extract: (url: PolyURL) => Promise<any>;
|
|
121
122
|
};
|
|
123
|
+
MegaPlay: (ctx?: ExtractorContext) => {
|
|
124
|
+
extract: (url: PolyURL, referer?: string) => Promise<any>;
|
|
125
|
+
};
|
|
126
|
+
GDFlix: (ctx?: ExtractorContext) => {
|
|
127
|
+
extract: (url: PolyURL | string, ...args: any[]) => Promise<any>;
|
|
128
|
+
};
|
|
129
|
+
Gofile: (ctx?: ExtractorContext) => {
|
|
130
|
+
extract: (url: PolyURL | string, ...args: any[]) => Promise<any>;
|
|
131
|
+
};
|
|
132
|
+
HubCloud: (ctx?: ExtractorContext) => {
|
|
133
|
+
extract: (url: PolyURL | string, ...args: any[]) => Promise<any>;
|
|
134
|
+
};
|
|
135
|
+
FlixCloud: (ctx?: ExtractorContext) => {
|
|
136
|
+
extract: (url: PolyURL, referer?: string) => Promise<any>;
|
|
137
|
+
};
|
|
122
138
|
}
|
|
123
139
|
|
|
124
140
|
export type ProviderConfig = {
|
|
@@ -139,6 +155,8 @@ export type ProviderConfig = {
|
|
|
139
155
|
export interface ProviderContext {
|
|
140
156
|
axios: AxiosInstance;
|
|
141
157
|
load: (html: string) => CheerioAPI;
|
|
158
|
+
/** CryptoJS library — use instead of importing crypto-js directly */
|
|
159
|
+
CryptoJS: typeof CryptoJS;
|
|
142
160
|
USER_AGENT: string;
|
|
143
161
|
AnimeParser: typeof AnimeParser;
|
|
144
162
|
MovieParser: typeof MovieParser;
|
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,11 @@ 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',
|
|
224
|
+
FlixCloud = 'flixcloud',
|
|
216
225
|
}
|
|
217
226
|
|
|
218
227
|
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;
|