react-native-consumet 1.6.0 → 3.0.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 +2 -2
- package/README.md +24 -15
- package/android/build.gradle +9 -8
- package/android/generated/java/com/consumet/NativeConsumetSpec.java +0 -4
- package/android/generated/jni/RNConsumetSpec-generated.cpp +0 -6
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +0 -10
- package/android/src/androidTest/AndroidManifest.xml +4 -0
- package/android/src/androidTest/java/com/consumet/DeobfuscatorModuleTest.kt +88 -0
- package/android/src/androidTest/java/com/consumet/SynchronyEngineTest.kt +75 -0
- package/android/src/androidTest/java/com/consumet/TestSupport.kt +115 -0
- package/android/src/androidTest/java/com/consumet/WebViewContractTest.kt +125 -0
- package/android/src/main/java/com/consumet/ConsumetModule.kt +0 -13
- package/android/src/main/java/com/consumet/DdosGuardModule.kt +26 -60
- package/android/src/main/java/com/consumet/DeobfuscatorModule.kt +59 -68
- package/android/src/main/java/com/consumet/HttpRequestModule.kt +171 -285
- package/android/src/main/java/com/consumet/Synchrony.kt +65 -0
- package/android/src/main/java/com/consumet/SynchronyScriptCache.kt +121 -0
- package/android/src/main/java/com/consumet/WebViewDebugging.kt +36 -0
- package/android/src/main/java/com/consumet/WebViewTask.kt +101 -0
- package/ios/Consumet.mm +205 -184
- package/ios/RCConsumetSynchronyCache.h +51 -0
- package/ios/RCConsumetSynchronyCache.m +246 -0
- package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec-generated.mm +0 -7
- package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec.h +0 -2
- package/ios/generated/ReactCodegen/RNConsumetSpecJSI.h +0 -10
- package/lib/commonjs/NativeConsumet.ts +68 -2
- package/lib/commonjs/extension-registry.json +174 -54
- package/lib/commonjs/extension-registry.json.sig +1 -0
- package/lib/commonjs/extractors/asianload.js +11 -5
- package/lib/commonjs/extractors/asianload.js.map +1 -1
- package/lib/commonjs/extractors/filemoon.js +11 -6
- package/lib/commonjs/extractors/filemoon.js.map +1 -1
- package/lib/commonjs/extractors/flixcloud.js +0 -2
- package/lib/commonjs/extractors/flixcloud.js.map +1 -1
- package/lib/commonjs/extractors/gdflix.js +0 -2
- package/lib/commonjs/extractors/gdflix.js.map +1 -1
- package/lib/commonjs/extractors/gofile.js +0 -2
- package/lib/commonjs/extractors/gofile.js.map +1 -1
- package/lib/commonjs/extractors/gogocdn.js +13 -7
- package/lib/commonjs/extractors/gogocdn.js.map +1 -1
- package/lib/commonjs/extractors/hubcloud.js +0 -2
- package/lib/commonjs/extractors/hubcloud.js.map +1 -1
- package/lib/commonjs/extractors/index.js +28 -29
- package/lib/commonjs/extractors/index.js.map +1 -1
- package/lib/commonjs/extractors/kwik.js +0 -2
- package/lib/commonjs/extractors/kwik.js.map +1 -1
- package/lib/commonjs/extractors/megaplay.js +0 -2
- package/lib/commonjs/extractors/megaplay.js.map +1 -1
- package/lib/commonjs/extractors/megaup.js +2 -6
- package/lib/commonjs/extractors/megaup.js.map +1 -1
- package/lib/commonjs/extractors/mixdrop.js +10 -5
- package/lib/commonjs/extractors/mixdrop.js.map +1 -1
- package/lib/commonjs/extractors/mp4player.js +11 -6
- package/lib/commonjs/extractors/mp4player.js.map +1 -1
- package/lib/commonjs/extractors/mp4upload.js +10 -5
- package/lib/commonjs/extractors/mp4upload.js.map +1 -1
- package/lib/commonjs/extractors/rapidcloud.js +16 -10
- package/lib/commonjs/extractors/rapidcloud.js.map +1 -1
- package/lib/commonjs/extractors/streamhub.js +11 -6
- package/lib/commonjs/extractors/streamhub.js.map +1 -1
- package/lib/commonjs/extractors/streamlare.js +13 -8
- package/lib/commonjs/extractors/streamlare.js.map +1 -1
- package/lib/commonjs/extractors/streamsb.js +11 -6
- package/lib/commonjs/extractors/streamsb.js.map +1 -1
- package/lib/commonjs/extractors/streamtape.js +10 -5
- package/lib/commonjs/extractors/streamtape.js.map +1 -1
- package/lib/commonjs/extractors/vidhide.js +4 -4
- package/lib/commonjs/extractors/vidhide.js.map +1 -1
- package/lib/commonjs/extractors/vidmoly.js +11 -6
- package/lib/commonjs/extractors/vidmoly.js.map +1 -1
- package/lib/commonjs/extractors/vizcloud.js +11 -6
- package/lib/commonjs/extractors/vizcloud.js.map +1 -1
- package/lib/commonjs/extractors/voe.js +11 -6
- package/lib/commonjs/extractors/voe.js.map +1 -1
- package/lib/commonjs/index.js +130 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/base-provider.js +4 -0
- package/lib/commonjs/models/base-provider.js.map +1 -1
- package/lib/commonjs/models/extension-manifest.js +0 -4
- package/lib/commonjs/models/index.js +7 -0
- package/lib/commonjs/models/index.js.map +1 -1
- package/lib/commonjs/models/meta-error.js +36 -0
- package/lib/commonjs/models/meta-error.js.map +1 -0
- package/lib/commonjs/models/types.js +21 -0
- package/lib/commonjs/models/types.js.map +1 -1
- package/lib/commonjs/providers/anime/anikoto/anikoto.js +14 -10
- package/lib/commonjs/providers/anime/anikoto/anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js +6 -4
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/animekai/animekai.js +14 -8
- package/lib/commonjs/providers/anime/animekai/animekai.js.map +1 -1
- package/lib/commonjs/providers/anime/animekai/create-animekai.js +6 -4
- package/lib/commonjs/providers/anime/animekai/create-animekai.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/animepahe.js +17 -11
- package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +6 -15
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animeunity.js +23 -10
- package/lib/commonjs/providers/anime/animeunity.js.map +1 -1
- package/lib/commonjs/providers/anime/anineko/anineko.js +18 -8
- package/lib/commonjs/providers/anime/anineko/anineko.js.map +1 -1
- package/lib/commonjs/providers/anime/anineko/create-anineko.js +4 -2
- package/lib/commonjs/providers/anime/anineko/create-anineko.js.map +1 -1
- package/lib/commonjs/providers/anime/index.js +26 -35
- package/lib/commonjs/providers/anime/index.js.map +1 -1
- package/lib/commonjs/providers/anime/reanime/create-reanime.js +4 -5
- package/lib/commonjs/providers/anime/reanime/create-reanime.js.map +1 -1
- package/lib/commonjs/providers/anime/reanime/reanime.js +13 -8
- package/lib/commonjs/providers/anime/reanime/reanime.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/create-zoro.js +8 -8
- package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/zoro.js +17 -11
- package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/commonjs/providers/index.js +8 -8
- package/lib/commonjs/providers/index.js.map +1 -1
- package/lib/commonjs/providers/light-novels/index.js +6 -7
- package/lib/commonjs/providers/light-novels/index.js.map +1 -1
- package/lib/commonjs/providers/light-novels/novelupdates.js +32 -11
- package/lib/commonjs/providers/light-novels/novelupdates.js.map +1 -1
- package/lib/commonjs/providers/light-novels/readlightnovels.js +15 -7
- package/lib/commonjs/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/commonjs/providers/manga/asurascans.js +169 -100
- package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
- package/lib/commonjs/providers/manga/flamescans.js +181 -94
- package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
- package/lib/commonjs/providers/manga/index.js +14 -31
- package/lib/commonjs/providers/manga/index.js.map +1 -1
- package/lib/commonjs/providers/manga/mangadex.js +243 -231
- package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahere.js +287 -138
- package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
- package/lib/commonjs/providers/manga/mangakakalot.js +215 -111
- package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapill.js +137 -44
- package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
- package/lib/commonjs/providers/meta/anilist.js +595 -1030
- package/lib/commonjs/providers/meta/anilist.js.map +1 -1
- package/lib/commonjs/providers/meta/index.js +1 -0
- package/lib/commonjs/providers/meta/index.js.map +1 -1
- package/lib/commonjs/providers/meta/mal.js +86 -89
- package/lib/commonjs/providers/meta/mal.js.map +1 -1
- package/lib/commonjs/providers/meta/tmdb-api-key.js +29 -0
- package/lib/commonjs/providers/meta/tmdb-api-key.js.map +1 -0
- package/lib/commonjs/providers/meta/tmdb.js +122 -94
- package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/create-himovies.js +3 -3
- package/lib/commonjs/providers/movies/himovies/create-himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/himovies.js +13 -8
- package/lib/commonjs/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/index.js +20 -30
- package/lib/commonjs/providers/movies/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js +3 -3
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/multimovies.js +13 -8
- package/lib/commonjs/providers/movies/multimovies/multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/index.js +28 -17
- package/lib/commonjs/providers/movies/multistream/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/utils.js +18 -19
- package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js +451 -185
- package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js +22 -0
- package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js.map +1 -0
- package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js +11 -24
- package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js +30 -0
- package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js.map +1 -0
- package/lib/commonjs/providers/movies/netflixmirror/primemirror.js +22 -0
- package/lib/commonjs/providers/movies/netflixmirror/primemirror.js.map +1 -0
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js +57 -40
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
- package/lib/commonjs/providers/movies/vegamovies/vegamovies.js +11 -14
- package/lib/commonjs/providers/movies/vegamovies/vegamovies.js.map +1 -1
- package/lib/commonjs/providers/movies/yflix/create-yflix.js +2 -2
- package/lib/commonjs/providers/movies/yflix/create-yflix.js.map +1 -1
- package/lib/commonjs/providers/movies/yflix/yflix.js +13 -6
- package/lib/commonjs/providers/movies/yflix/yflix.js.map +1 -1
- package/lib/commonjs/providers/provider-args.js +17 -0
- package/lib/commonjs/providers/provider-args.js.map +1 -0
- package/lib/commonjs/registry-signing-keys.js +26 -0
- package/lib/commonjs/registry-signing-keys.js.map +1 -0
- package/lib/commonjs/utils/ExtractorManager.js +136 -233
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +181 -251
- package/lib/commonjs/utils/ProviderManager.js.map +1 -1
- package/lib/commonjs/utils/create-extractor-context.js +0 -1
- package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
- package/lib/commonjs/utils/create-provider-context.js +37 -29
- package/lib/commonjs/utils/create-provider-context.js.map +1 -1
- package/lib/commonjs/utils/extension-integrity.js +62 -0
- package/lib/commonjs/utils/extension-integrity.js.map +1 -0
- package/lib/commonjs/utils/extension-modules.js +109 -0
- package/lib/commonjs/utils/extension-modules.js.map +1 -0
- package/lib/commonjs/utils/extension-utils.js +46 -40
- package/lib/commonjs/utils/extension-utils.js.map +1 -1
- package/lib/commonjs/utils/fetch-with-timeout.js +76 -0
- package/lib/commonjs/utils/fetch-with-timeout.js.map +1 -0
- package/lib/commonjs/utils/index.js +96 -2
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/manga.js +60 -0
- package/lib/commonjs/utils/manga.js.map +1 -0
- package/lib/commonjs/utils/meta-http.js +42 -0
- package/lib/commonjs/utils/meta-http.js.map +1 -0
- package/lib/commonjs/utils/provider-maps.js +26 -18
- package/lib/commonjs/utils/provider-maps.js.map +1 -1
- package/lib/commonjs/utils/queries.js +24 -11
- package/lib/commonjs/utils/queries.js.map +1 -1
- package/lib/commonjs/utils/registry-schema.js +263 -0
- package/lib/commonjs/utils/registry-schema.js.map +1 -0
- package/lib/commonjs/utils/registry-signature.js +180 -0
- package/lib/commonjs/utils/registry-signature.js.map +1 -0
- package/lib/commonjs/utils/url-polyfill.js +1075 -426
- package/lib/commonjs/utils/url-polyfill.js.map +1 -1
- package/lib/commonjs/utils/utils.js +2 -30
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/NativeConsumet.ts +68 -2
- package/lib/module/extension-registry.json +174 -54
- package/lib/module/extension-registry.json.sig +1 -0
- package/lib/module/extractors/asianload.js +10 -5
- package/lib/module/extractors/asianload.js.map +1 -1
- package/lib/module/extractors/filemoon.js +10 -5
- package/lib/module/extractors/filemoon.js.map +1 -1
- package/lib/module/extractors/flixcloud.js +0 -1
- package/lib/module/extractors/flixcloud.js.map +1 -1
- package/lib/module/extractors/gdflix.js +0 -1
- package/lib/module/extractors/gdflix.js.map +1 -1
- package/lib/module/extractors/gofile.js +0 -1
- package/lib/module/extractors/gofile.js.map +1 -1
- package/lib/module/extractors/gogocdn.js +12 -7
- package/lib/module/extractors/gogocdn.js.map +1 -1
- package/lib/module/extractors/hubcloud.js +0 -1
- package/lib/module/extractors/hubcloud.js.map +1 -1
- package/lib/module/extractors/index.js +24 -25
- package/lib/module/extractors/index.js.map +1 -1
- package/lib/module/extractors/kwik.js +0 -1
- package/lib/module/extractors/kwik.js.map +1 -1
- package/lib/module/extractors/megaplay.js +0 -1
- package/lib/module/extractors/megaplay.js.map +1 -1
- package/lib/module/extractors/megaup.js +2 -4
- package/lib/module/extractors/megaup.js.map +1 -1
- package/lib/module/extractors/mixdrop.js +9 -4
- package/lib/module/extractors/mixdrop.js.map +1 -1
- package/lib/module/extractors/mp4player.js +10 -5
- package/lib/module/extractors/mp4player.js.map +1 -1
- package/lib/module/extractors/mp4upload.js +9 -4
- package/lib/module/extractors/mp4upload.js.map +1 -1
- package/lib/module/extractors/rapidcloud.js +15 -10
- package/lib/module/extractors/rapidcloud.js.map +1 -1
- package/lib/module/extractors/streamhub.js +10 -5
- package/lib/module/extractors/streamhub.js.map +1 -1
- package/lib/module/extractors/streamlare.js +11 -6
- package/lib/module/extractors/streamlare.js.map +1 -1
- package/lib/module/extractors/streamsb.js +10 -5
- package/lib/module/extractors/streamsb.js.map +1 -1
- package/lib/module/extractors/streamtape.js +9 -4
- package/lib/module/extractors/streamtape.js.map +1 -1
- package/lib/module/extractors/vidhide.js +4 -3
- package/lib/module/extractors/vidhide.js.map +1 -1
- package/lib/module/extractors/vidmoly.js +10 -5
- package/lib/module/extractors/vidmoly.js.map +1 -1
- package/lib/module/extractors/vizcloud.js +10 -5
- package/lib/module/extractors/vizcloud.js.map +1 -1
- package/lib/module/extractors/voe.js +10 -5
- package/lib/module/extractors/voe.js.map +1 -1
- package/lib/module/index.js +11 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/base-provider.js +4 -0
- package/lib/module/models/base-provider.js.map +1 -1
- package/lib/module/models/extension-manifest.js +0 -2
- package/lib/module/models/index.js +2 -1
- package/lib/module/models/index.js.map +1 -1
- package/lib/module/models/meta-error.js +31 -0
- package/lib/module/models/meta-error.js.map +1 -0
- package/lib/module/models/types.js +30 -0
- package/lib/module/models/types.js.map +1 -1
- package/lib/module/providers/anime/anikoto/anikoto.js +13 -8
- package/lib/module/providers/anime/anikoto/anikoto.js.map +1 -1
- package/lib/module/providers/anime/anikoto/create-anikoto.js +6 -4
- package/lib/module/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/module/providers/anime/animekai/animekai.js +13 -6
- package/lib/module/providers/anime/animekai/animekai.js.map +1 -1
- package/lib/module/providers/anime/animekai/create-animekai.js +6 -4
- package/lib/module/providers/anime/animekai/create-animekai.js.map +1 -1
- package/lib/module/providers/anime/animepahe/animepahe.js +13 -8
- package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/module/providers/anime/animepahe/create-animepahe.js +6 -15
- package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/module/providers/anime/animeunity.js +21 -9
- package/lib/module/providers/anime/animeunity.js.map +1 -1
- package/lib/module/providers/anime/anineko/anineko.js +17 -6
- package/lib/module/providers/anime/anineko/anineko.js.map +1 -1
- package/lib/module/providers/anime/anineko/create-anineko.js +4 -2
- package/lib/module/providers/anime/anineko/create-anineko.js.map +1 -1
- package/lib/module/providers/anime/index.js +13 -21
- package/lib/module/providers/anime/index.js.map +1 -1
- package/lib/module/providers/anime/reanime/create-reanime.js +3 -4
- package/lib/module/providers/anime/reanime/create-reanime.js.map +1 -1
- package/lib/module/providers/anime/reanime/reanime.js +12 -6
- package/lib/module/providers/anime/reanime/reanime.js.map +1 -1
- package/lib/module/providers/anime/zoro/create-zoro.js +8 -9
- package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/module/providers/anime/zoro/zoro.js +13 -8
- package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/module/providers/index.js +4 -4
- package/lib/module/providers/index.js.map +1 -1
- package/lib/module/providers/light-novels/index.js +3 -3
- package/lib/module/providers/light-novels/index.js.map +1 -1
- package/lib/module/providers/light-novels/novelupdates.js +29 -11
- package/lib/module/providers/light-novels/novelupdates.js.map +1 -1
- package/lib/module/providers/light-novels/readlightnovels.js +12 -7
- package/lib/module/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/module/providers/manga/asurascans.js +169 -99
- package/lib/module/providers/manga/asurascans.js.map +1 -1
- package/lib/module/providers/manga/flamescans.js +181 -93
- package/lib/module/providers/manga/flamescans.js.map +1 -1
- package/lib/module/providers/manga/index.js +8 -24
- package/lib/module/providers/manga/index.js.map +1 -1
- package/lib/module/providers/manga/mangadex.js +244 -232
- package/lib/module/providers/manga/mangadex.js.map +1 -1
- package/lib/module/providers/manga/mangahere.js +284 -135
- package/lib/module/providers/manga/mangahere.js.map +1 -1
- package/lib/module/providers/manga/mangakakalot.js +215 -110
- package/lib/module/providers/manga/mangakakalot.js.map +1 -1
- package/lib/module/providers/manga/mangapill.js +137 -44
- package/lib/module/providers/manga/mangapill.js.map +1 -1
- package/lib/module/providers/meta/anilist.js +598 -1031
- package/lib/module/providers/meta/anilist.js.map +1 -1
- package/lib/module/providers/meta/index.js +1 -0
- package/lib/module/providers/meta/index.js.map +1 -1
- package/lib/module/providers/meta/mal.js +87 -89
- package/lib/module/providers/meta/mal.js.map +1 -1
- package/lib/module/providers/meta/tmdb-api-key.js +24 -0
- package/lib/module/providers/meta/tmdb-api-key.js.map +1 -0
- package/lib/module/providers/meta/tmdb.js +123 -93
- package/lib/module/providers/meta/tmdb.js.map +1 -1
- package/lib/module/providers/movies/himovies/create-himovies.js +3 -3
- package/lib/module/providers/movies/himovies/create-himovies.js.map +1 -1
- package/lib/module/providers/movies/himovies/himovies.js +12 -9
- package/lib/module/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/module/providers/movies/index.js +14 -11
- package/lib/module/providers/movies/index.js.map +1 -1
- package/lib/module/providers/movies/multimovies/create-multimovies.js +3 -3
- package/lib/module/providers/movies/multimovies/create-multimovies.js.map +1 -1
- package/lib/module/providers/movies/multimovies/multimovies.js +12 -8
- package/lib/module/providers/movies/multimovies/multimovies.js.map +1 -1
- package/lib/module/providers/movies/multistream/index.js +27 -17
- package/lib/module/providers/movies/multistream/index.js.map +1 -1
- package/lib/module/providers/movies/multistream/utils.js +8 -9
- package/lib/module/providers/movies/multistream/utils.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js +449 -185
- package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/disneymirror.js +17 -0
- package/lib/module/providers/movies/netflixmirror/disneymirror.js.map +1 -0
- package/lib/module/providers/movies/netflixmirror/netflixmirror.js +9 -24
- package/lib/module/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/netmirror-parser.js +25 -0
- package/lib/module/providers/movies/netflixmirror/netmirror-parser.js.map +1 -0
- package/lib/module/providers/movies/netflixmirror/primemirror.js +17 -0
- package/lib/module/providers/movies/netflixmirror/primemirror.js.map +1 -0
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js +57 -40
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
- package/lib/module/providers/movies/vegamovies/vegamovies.js +12 -10
- package/lib/module/providers/movies/vegamovies/vegamovies.js.map +1 -1
- package/lib/module/providers/movies/yflix/create-yflix.js +2 -2
- package/lib/module/providers/movies/yflix/create-yflix.js.map +1 -1
- package/lib/module/providers/movies/yflix/yflix.js +12 -6
- package/lib/module/providers/movies/yflix/yflix.js.map +1 -1
- package/lib/module/providers/provider-args.js +14 -0
- package/lib/module/providers/provider-args.js.map +1 -0
- package/lib/module/registry-signing-keys.js +22 -0
- package/lib/module/registry-signing-keys.js.map +1 -0
- package/lib/module/utils/ExtractorManager.js +138 -234
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +180 -250
- package/lib/module/utils/ProviderManager.js.map +1 -1
- package/lib/module/utils/create-extractor-context.js +1 -2
- package/lib/module/utils/create-extractor-context.js.map +1 -1
- package/lib/module/utils/create-provider-context.js +39 -30
- package/lib/module/utils/create-provider-context.js.map +1 -1
- package/lib/module/utils/extension-integrity.js +52 -0
- package/lib/module/utils/extension-integrity.js.map +1 -0
- package/lib/module/utils/extension-modules.js +101 -0
- package/lib/module/utils/extension-modules.js.map +1 -0
- package/lib/module/utils/extension-utils.js +46 -40
- package/lib/module/utils/extension-utils.js.map +1 -1
- package/lib/module/utils/fetch-with-timeout.js +71 -0
- package/lib/module/utils/fetch-with-timeout.js.map +1 -0
- package/lib/module/utils/index.js +7 -3
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/manga.js +54 -0
- package/lib/module/utils/manga.js.map +1 -0
- package/lib/module/utils/meta-http.js +37 -0
- package/lib/module/utils/meta-http.js.map +1 -0
- package/lib/module/utils/provider-maps.js +26 -18
- package/lib/module/utils/provider-maps.js.map +1 -1
- package/lib/module/utils/queries.js +22 -9
- package/lib/module/utils/queries.js.map +1 -1
- package/lib/module/utils/registry-schema.js +255 -0
- package/lib/module/utils/registry-schema.js.map +1 -0
- package/lib/module/utils/registry-signature.js +168 -0
- package/lib/module/utils/registry-signature.js.map +1 -0
- package/lib/module/utils/url-polyfill.js +1073 -425
- package/lib/module/utils/url-polyfill.js.map +1 -1
- package/lib/module/utils/utils.js +0 -26
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts +68 -2
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/asianload.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/asianload.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/filemoon.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/filemoon.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gdflix.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/gdflix.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gofile.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/gofile.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/index.d.ts +24 -25
- package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megaplay.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/megaplay.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mp4player.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/mp4player.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamhub.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/streamhub.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamlare.d.ts +5 -4
- package/lib/typescript/commonjs/src/extractors/streamlare.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamsb.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/streamsb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamtape.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/streamtape.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/voe.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/voe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +15 -9
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/base-provider.d.ts +5 -1
- package/lib/typescript/commonjs/src/models/base-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts +27 -5
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts +1 -2
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/index.d.ts +6 -4
- package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/meta-error.d.ts +20 -0
- package/lib/typescript/commonjs/src/models/meta-error.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/provider-context.d.ts +21 -16
- package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/types.d.ts +144 -8
- package/lib/typescript/commonjs/src/models/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts +7 -2
- 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 +3 -3
- package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts +11 -3
- package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts +13 -22
- 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 +1 -2
- package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/index.d.ts +3 -4
- package/lib/typescript/commonjs/src/providers/light-novels/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts +7 -3
- package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts +19 -7
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts +23 -6
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/index.d.ts +7 -24
- package/lib/typescript/commonjs/src/providers/manga/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts +27 -8
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts +20 -6
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts +31 -7
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts +21 -5
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts +26 -9
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/providers/meta/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/mal.d.ts +9 -4
- package/lib/typescript/commonjs/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts +7 -0
- package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts +18 -5
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts +8 -3
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts +14 -10
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts +8 -3
- package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts +10 -3
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +7 -6
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts +2 -6
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts +12 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts +9 -17
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts +21 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts +12 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts +8 -5
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts +8 -3
- package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/provider-args.d.ts +8 -0
- package/lib/typescript/commonjs/src/providers/provider-args.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/registry-signing-keys.d.ts +18 -0
- package/lib/typescript/commonjs/src/registry-signing-keys.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts +33 -15
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +73 -21
- 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-integrity.d.ts +40 -0
- package/lib/typescript/commonjs/src/utils/extension-integrity.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/extension-modules.d.ts +49 -0
- package/lib/typescript/commonjs/src/utils/extension-modules.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +24 -46
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts +29 -0
- package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts +12 -4
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/manga.d.ts +19 -0
- package/lib/typescript/commonjs/src/utils/manga.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/meta-http.d.ts +16 -0
- package/lib/typescript/commonjs/src/utils/meta-http.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +14 -7
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/queries.d.ts +17 -8
- package/lib/typescript/commonjs/src/utils/queries.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/registry-schema.d.ts +66 -0
- package/lib/typescript/commonjs/src/utils/registry-schema.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/registry-signature.d.ts +66 -0
- package/lib/typescript/commonjs/src/utils/registry-signature.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts +20 -8
- package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/utils.d.ts +0 -1
- package/lib/typescript/commonjs/src/utils/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/NativeConsumet.d.ts +68 -2
- package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/asianload.d.ts +5 -3
- package/lib/typescript/module/src/extractors/asianload.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/filemoon.d.ts +5 -3
- package/lib/typescript/module/src/extractors/filemoon.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/flixcloud.d.ts +0 -1
- package/lib/typescript/module/src/extractors/flixcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gdflix.d.ts +0 -1
- package/lib/typescript/module/src/extractors/gdflix.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gofile.d.ts +0 -1
- package/lib/typescript/module/src/extractors/gofile.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gogocdn.d.ts +5 -3
- package/lib/typescript/module/src/extractors/gogocdn.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/hubcloud.d.ts +0 -1
- package/lib/typescript/module/src/extractors/hubcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/index.d.ts +24 -25
- package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts +0 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megaplay.d.ts +0 -1
- package/lib/typescript/module/src/extractors/megaplay.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megaup.d.ts +0 -1
- package/lib/typescript/module/src/extractors/megaup.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mixdrop.d.ts +5 -3
- package/lib/typescript/module/src/extractors/mixdrop.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mp4player.d.ts +5 -3
- package/lib/typescript/module/src/extractors/mp4player.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mp4upload.d.ts +5 -3
- package/lib/typescript/module/src/extractors/mp4upload.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/rapidcloud.d.ts +5 -3
- package/lib/typescript/module/src/extractors/rapidcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamhub.d.ts +5 -3
- package/lib/typescript/module/src/extractors/streamhub.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamlare.d.ts +5 -4
- package/lib/typescript/module/src/extractors/streamlare.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamsb.d.ts +5 -3
- package/lib/typescript/module/src/extractors/streamsb.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamtape.d.ts +5 -3
- package/lib/typescript/module/src/extractors/streamtape.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vidhide.d.ts +0 -1
- package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vidmoly.d.ts +5 -3
- package/lib/typescript/module/src/extractors/vidmoly.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vizcloud.d.ts +5 -3
- package/lib/typescript/module/src/extractors/vizcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/voe.d.ts +5 -3
- package/lib/typescript/module/src/extractors/voe.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +15 -9
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/base-provider.d.ts +5 -1
- package/lib/typescript/module/src/models/base-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extension-manifest.d.ts +27 -5
- package/lib/typescript/module/src/models/extension-manifest.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extractor-context.d.ts +1 -2
- package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/index.d.ts +6 -4
- package/lib/typescript/module/src/models/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/meta-error.d.ts +20 -0
- package/lib/typescript/module/src/models/meta-error.d.ts.map +1 -0
- package/lib/typescript/module/src/models/provider-context.d.ts +21 -16
- package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/types.d.ts +144 -8
- package/lib/typescript/module/src/models/types.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts +7 -2
- 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 +3 -3
- package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animeunity.d.ts +11 -3
- package/lib/typescript/module/src/providers/anime/animeunity.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/index.d.ts +13 -22
- 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 +1 -2
- package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/index.d.ts +4 -4
- package/lib/typescript/module/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/index.d.ts +3 -4
- package/lib/typescript/module/src/providers/light-novels/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts +7 -3
- package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts +5 -3
- package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts +19 -7
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts +23 -6
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/index.d.ts +7 -24
- package/lib/typescript/module/src/providers/manga/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts +27 -8
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts +20 -6
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts +31 -7
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts +21 -5
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/anilist.d.ts +26 -9
- package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/index.d.ts +1 -0
- package/lib/typescript/module/src/providers/meta/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/mal.d.ts +9 -4
- package/lib/typescript/module/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts +7 -0
- package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts +18 -5
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts +8 -3
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/index.d.ts +14 -10
- package/lib/typescript/module/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts +8 -3
- package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts +10 -3
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +7 -6
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts +2 -6
- package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts +12 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts +9 -17
- package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts +21 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts +12 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts +8 -5
- package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts +8 -3
- package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/provider-args.d.ts +8 -0
- package/lib/typescript/module/src/providers/provider-args.d.ts.map +1 -0
- package/lib/typescript/module/src/registry-signing-keys.d.ts +18 -0
- package/lib/typescript/module/src/registry-signing-keys.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts +33 -15
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts +73 -21
- 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-integrity.d.ts +40 -0
- package/lib/typescript/module/src/utils/extension-integrity.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/extension-modules.d.ts +49 -0
- package/lib/typescript/module/src/utils/extension-modules.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/extension-utils.d.ts +24 -46
- package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts +29 -0
- package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/index.d.ts +12 -4
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/manga.d.ts +19 -0
- package/lib/typescript/module/src/utils/manga.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/meta-http.d.ts +16 -0
- package/lib/typescript/module/src/utils/meta-http.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/provider-maps.d.ts +14 -7
- package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/queries.d.ts +17 -8
- package/lib/typescript/module/src/utils/queries.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/registry-schema.d.ts +66 -0
- package/lib/typescript/module/src/utils/registry-schema.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/registry-signature.d.ts +66 -0
- package/lib/typescript/module/src/utils/registry-signature.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/url-polyfill.d.ts +20 -8
- package/lib/typescript/module/src/utils/url-polyfill.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/utils.d.ts +0 -1
- package/lib/typescript/module/src/utils/utils.d.ts.map +1 -1
- package/package.json +30 -19
- package/src/NativeConsumet.ts +68 -2
- package/src/extension-registry.json +174 -54
- package/src/extension-registry.json.sig +1 -0
- package/src/extractors/asianload.ts +10 -7
- package/src/extractors/filemoon.ts +10 -7
- package/src/extractors/flixcloud.ts +0 -2
- package/src/extractors/gdflix.ts +0 -2
- package/src/extractors/gofile.ts +0 -2
- package/src/extractors/gogocdn.ts +12 -9
- package/src/extractors/hubcloud.ts +0 -2
- package/src/extractors/index.ts +24 -51
- package/src/extractors/kwik.ts +0 -2
- package/src/extractors/megaplay.ts +0 -2
- package/src/extractors/megaup.ts +2 -6
- package/src/extractors/mixdrop.ts +9 -5
- package/src/extractors/mp4player.ts +10 -6
- package/src/extractors/mp4upload.ts +9 -5
- package/src/extractors/rapidcloud.ts +15 -12
- package/src/extractors/streamhub.ts +10 -6
- package/src/extractors/streamlare.ts +10 -8
- package/src/extractors/streamsb.ts +10 -7
- package/src/extractors/streamtape.ts +9 -5
- package/src/extractors/vidhide.ts +3 -4
- package/src/extractors/vidmoly.ts +10 -6
- package/src/extractors/vizcloud.ts +10 -7
- package/src/extractors/voe.ts +10 -7
- package/src/index.tsx +115 -3
- package/src/models/base-provider.ts +6 -1
- package/src/models/extension-manifest.ts +30 -6
- package/src/models/extractor-context.ts +0 -2
- package/src/models/index.ts +13 -1
- package/src/models/meta-error.ts +33 -0
- package/src/models/provider-context.ts +21 -58
- package/src/models/types.ts +148 -6
- package/src/providers/anime/anikoto/anikoto.ts +14 -10
- package/src/providers/anime/anikoto/create-anikoto.ts +5 -4
- package/src/providers/anime/animekai/animekai.ts +14 -9
- package/src/providers/anime/animekai/create-animekai.ts +5 -5
- package/src/providers/anime/animepahe/animepahe.ts +14 -11
- package/src/providers/anime/animepahe/create-animepahe.ts +5 -14
- package/src/providers/anime/animeunity.ts +20 -10
- package/src/providers/anime/anineko/anineko.ts +18 -8
- package/src/providers/anime/anineko/create-anineko.ts +3 -2
- package/src/providers/anime/index.ts +13 -21
- package/src/providers/anime/reanime/create-reanime.ts +2 -4
- package/src/providers/anime/reanime/reanime.ts +13 -9
- package/src/providers/anime/zoro/create-zoro.ts +6 -7
- package/src/providers/anime/zoro/zoro.ts +14 -11
- package/src/providers/index.ts +4 -4
- package/src/providers/light-novels/index.ts +3 -3
- package/src/providers/light-novels/novelupdates.ts +33 -19
- package/src/providers/light-novels/readlightnovels.ts +12 -8
- package/src/providers/manga/asurascans.ts +207 -136
- package/src/providers/manga/flamescans.ts +229 -122
- package/src/providers/manga/index.ts +7 -23
- package/src/providers/manga/mangadex.ts +343 -286
- package/src/providers/manga/mangahere.ts +317 -160
- package/src/providers/manga/mangakakalot.ts +257 -156
- package/src/providers/manga/mangapill.ts +172 -69
- package/src/providers/meta/anilist.ts +613 -1450
- package/src/providers/meta/index.ts +6 -1
- package/src/providers/meta/mal.ts +102 -139
- package/src/providers/meta/tmdb-api-key.ts +27 -0
- package/src/providers/meta/tmdb.ts +150 -141
- package/src/providers/movies/himovies/create-himovies.ts +3 -3
- package/src/providers/movies/himovies/himovies.ts +13 -11
- package/src/providers/movies/index.ts +14 -12
- package/src/providers/movies/multimovies/create-multimovies.ts +3 -3
- package/src/providers/movies/multimovies/multimovies.ts +13 -11
- package/src/providers/movies/multistream/index.ts +30 -18
- package/src/providers/movies/multistream/utils.ts +27 -15
- package/src/providers/movies/netflixmirror/create-netflixmirror.ts +567 -232
- package/src/providers/movies/netflixmirror/disneymirror.ts +16 -0
- package/src/providers/movies/netflixmirror/netflixmirror.ts +13 -43
- package/src/providers/movies/netflixmirror/netmirror-parser.ts +43 -0
- package/src/providers/movies/netflixmirror/primemirror.ts +16 -0
- package/src/providers/movies/vegamovies/create-vegamovies.ts +75 -50
- package/src/providers/movies/vegamovies/vegamovies.ts +13 -13
- package/src/providers/movies/yflix/create-yflix.ts +2 -2
- package/src/providers/movies/yflix/yflix.ts +13 -10
- package/src/providers/provider-args.ts +15 -0
- package/src/registry-signing-keys.ts +20 -0
- package/src/utils/ExtractorManager.ts +165 -247
- package/src/utils/ProviderManager.ts +235 -285
- package/src/utils/create-extractor-context.ts +0 -2
- package/src/utils/create-provider-context.ts +45 -29
- package/src/utils/extension-integrity.ts +82 -0
- package/src/utils/extension-modules.ts +123 -0
- package/src/utils/extension-utils.ts +45 -42
- package/src/utils/fetch-with-timeout.ts +76 -0
- package/src/utils/index.ts +32 -4
- package/src/utils/manga.ts +58 -0
- package/src/utils/meta-http.ts +35 -0
- package/src/utils/provider-maps.ts +39 -19
- package/src/utils/queries.ts +30 -26
- package/src/utils/registry-schema.ts +273 -0
- package/src/utils/registry-signature.ts +215 -0
- package/src/utils/url-polyfill.ts +1146 -460
- package/src/utils/utils.ts +0 -26
- package/lib/commonjs/extractors/StreamP2P.js +0 -69
- package/lib/commonjs/extractors/StreamP2P.js.map +0 -1
- package/lib/commonjs/extractors/kisskh/kkey.js +0 -98
- package/lib/commonjs/extractors/kisskh/kkey.js.map +0 -1
- package/lib/commonjs/extractors/kisskh/staticdata.js +0 -9
- package/lib/commonjs/extractors/kisskh/staticdata.js.map +0 -1
- package/lib/commonjs/providers/anime/anify.js +0 -195
- package/lib/commonjs/providers/anime/anify.js.map +0 -1
- package/lib/commonjs/providers/anime/animedrive.js +0 -228
- package/lib/commonjs/providers/anime/animedrive.js.map +0 -1
- package/lib/commonjs/providers/anime/animesuge/animesuge.js +0 -78
- package/lib/commonjs/providers/anime/animesuge/animesuge.js.map +0 -1
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js +0 -312
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js.map +0 -1
- package/lib/commonjs/providers/anime/kickassanime.js +0 -48
- package/lib/commonjs/providers/anime/kickassanime.js.map +0 -1
- package/lib/commonjs/providers/anime/marin.js +0 -282
- package/lib/commonjs/providers/anime/marin.js.map +0 -1
- package/lib/commonjs/providers/manga/brmangas.js +0 -105
- package/lib/commonjs/providers/manga/brmangas.js.map +0 -1
- package/lib/commonjs/providers/manga/comick.js +0 -149
- package/lib/commonjs/providers/manga/comick.js.map +0 -1
- package/lib/commonjs/providers/manga/mangahost.js +0 -108
- package/lib/commonjs/providers/manga/mangahost.js.map +0 -1
- package/lib/commonjs/providers/manga/mangapark.js +0 -92
- package/lib/commonjs/providers/manga/mangapark.js.map +0 -1
- package/lib/commonjs/providers/manga/mangareader.js +0 -101
- package/lib/commonjs/providers/manga/mangareader.js.map +0 -1
- package/lib/commonjs/providers/manga/mangasee123.js +0 -156
- package/lib/commonjs/providers/manga/mangasee123.js.map +0 -1
- package/lib/commonjs/providers/manga/readmanga.js +0 -258
- package/lib/commonjs/providers/manga/readmanga.js.map +0 -1
- package/lib/commonjs/providers/manga/vyvymanga.js +0 -161
- package/lib/commonjs/providers/manga/vyvymanga.js.map +0 -1
- package/lib/commonjs/providers/movies/dramacool.js +0 -397
- package/lib/commonjs/providers/movies/dramacool.js.map +0 -1
- package/lib/commonjs/providers/movies/yflix.js +0 -561
- package/lib/commonjs/providers/movies/yflix.js.map +0 -1
- package/lib/module/extractors/StreamP2P.js +0 -63
- package/lib/module/extractors/StreamP2P.js.map +0 -1
- package/lib/module/extractors/kisskh/kkey.js +0 -92
- package/lib/module/extractors/kisskh/kkey.js.map +0 -1
- package/lib/module/extractors/kisskh/staticdata.js +0 -5
- package/lib/module/extractors/kisskh/staticdata.js.map +0 -1
- package/lib/module/providers/anime/anify.js +0 -192
- package/lib/module/providers/anime/anify.js.map +0 -1
- package/lib/module/providers/anime/animedrive.js +0 -223
- package/lib/module/providers/anime/animedrive.js.map +0 -1
- package/lib/module/providers/anime/animesuge/animesuge.js +0 -73
- package/lib/module/providers/anime/animesuge/animesuge.js.map +0 -1
- package/lib/module/providers/anime/animesuge/create-animesuge.js +0 -309
- package/lib/module/providers/anime/animesuge/create-animesuge.js.map +0 -1
- package/lib/module/providers/anime/kickassanime.js +0 -45
- package/lib/module/providers/anime/kickassanime.js.map +0 -1
- package/lib/module/providers/anime/marin.js +0 -281
- package/lib/module/providers/anime/marin.js.map +0 -1
- package/lib/module/providers/manga/brmangas.js +0 -100
- package/lib/module/providers/manga/brmangas.js.map +0 -1
- package/lib/module/providers/manga/comick.js +0 -145
- package/lib/module/providers/manga/comick.js.map +0 -1
- package/lib/module/providers/manga/mangahost.js +0 -103
- package/lib/module/providers/manga/mangahost.js.map +0 -1
- package/lib/module/providers/manga/mangapark.js +0 -87
- package/lib/module/providers/manga/mangapark.js.map +0 -1
- package/lib/module/providers/manga/mangareader.js +0 -97
- package/lib/module/providers/manga/mangareader.js.map +0 -1
- package/lib/module/providers/manga/mangasee123.js +0 -152
- package/lib/module/providers/manga/mangasee123.js.map +0 -1
- package/lib/module/providers/manga/readmanga.js +0 -253
- package/lib/module/providers/manga/readmanga.js.map +0 -1
- package/lib/module/providers/manga/vyvymanga.js +0 -156
- package/lib/module/providers/manga/vyvymanga.js.map +0 -1
- package/lib/module/providers/movies/dramacool.js +0 -397
- package/lib/module/providers/movies/dramacool.js.map +0 -1
- package/lib/module/providers/movies/yflix.js +0 -561
- package/lib/module/providers/movies/yflix.js.map +0 -1
- package/lib/typescript/commonjs/src/extractors/StreamP2P.d.ts +0 -10
- package/lib/typescript/commonjs/src/extractors/StreamP2P.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts +0 -25
- package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts +0 -3
- package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/anify.d.ts +0 -40
- package/lib/typescript/commonjs/src/providers/anime/anify.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts +0 -33
- package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts +0 -34
- package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts +0 -14
- package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts +0 -30
- package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/marin.d.ts +0 -32
- package/lib/typescript/commonjs/src/providers/anime/marin.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts +0 -16
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts +0 -36
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts +0 -16
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts +0 -12
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts +0 -16
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts +0 -15
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts +0 -23
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts +0 -15
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts +0 -1
- package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts +0 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/StreamP2P.d.ts +0 -10
- package/lib/typescript/module/src/extractors/StreamP2P.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts +0 -25
- package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts +0 -3
- package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/anify.d.ts +0 -40
- package/lib/typescript/module/src/providers/anime/anify.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animedrive.d.ts +0 -33
- package/lib/typescript/module/src/providers/anime/animedrive.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts +0 -34
- package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts +0 -14
- package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/kickassanime.d.ts +0 -30
- package/lib/typescript/module/src/providers/anime/kickassanime.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/marin.d.ts +0 -32
- package/lib/typescript/module/src/providers/anime/marin.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts +0 -16
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/comick.d.ts +0 -36
- package/lib/typescript/module/src/providers/manga/comick.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts +0 -16
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts +0 -12
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts +0 -16
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts +0 -15
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts +0 -23
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts +0 -15
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/dramacool.d.ts +0 -1
- package/lib/typescript/module/src/providers/movies/dramacool.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/yflix.d.ts +0 -1
- package/lib/typescript/module/src/providers/movies/yflix.d.ts.map +0 -1
- package/src/extractors/StreamP2P.ts +0 -60
- package/src/extractors/kisskh/kkey.ts +0 -161
- package/src/extractors/kisskh/staticdata.ts +0 -144
- package/src/providers/anime/anify.ts +0 -276
- package/src/providers/anime/animedrive.ts +0 -245
- package/src/providers/anime/animesuge/animesuge.ts +0 -77
- package/src/providers/anime/animesuge/create-animesuge.ts +0 -327
- package/src/providers/anime/kickassanime.ts +0 -51
- package/src/providers/anime/marin.ts +0 -319
- package/src/providers/manga/brmangas.ts +0 -144
- package/src/providers/manga/comick.ts +0 -280
- package/src/providers/manga/mangahost.ts +0 -130
- package/src/providers/manga/mangapark.ts +0 -111
- package/src/providers/manga/mangareader.ts +0 -128
- package/src/providers/manga/mangasee123.ts +0 -183
- package/src/providers/manga/readmanga.ts +0 -367
- package/src/providers/manga/vyvymanga.ts +0 -233
- package/src/providers/movies/dramacool.ts +0 -395
- package/src/providers/movies/yflix.ts +0 -559
|
@@ -1,27 +1,67 @@
|
|
|
1
1
|
import CryptoJS from 'crypto-js';
|
|
2
2
|
import type { ExtractorContext, IVideoExtractor, ExtractorContextConfig } from '../models';
|
|
3
|
-
import { StreamingServers } from '../models';
|
|
4
|
-
import type { ExtractorInfo } from '../models/extension-manifest';
|
|
3
|
+
import { StreamingServers, VideoExtractor } from '../models';
|
|
4
|
+
import type { ExtensionRegistryData, ExtractorInfo } from '../models/extension-manifest';
|
|
5
5
|
import createExtractorContext from './create-extractor-context';
|
|
6
6
|
import { defaultExtractors } from './extension-utils';
|
|
7
7
|
import extensionRegistry from '../extension-registry.json';
|
|
8
|
+
import {
|
|
9
|
+
assertValidIdentifier,
|
|
10
|
+
verifyExtensionCode,
|
|
11
|
+
type ExecuteCodeOptions,
|
|
12
|
+
type IntegrityOptions,
|
|
13
|
+
} from './extension-integrity';
|
|
14
|
+
import { createExtensionFetch, fetchTextWithTimeout } from './fetch-with-timeout';
|
|
15
|
+
import {
|
|
16
|
+
createExtensionRequire,
|
|
17
|
+
deleteEntriesOf,
|
|
18
|
+
evaluateExtensionCode,
|
|
19
|
+
extensionEnums,
|
|
20
|
+
memoiseLoad,
|
|
21
|
+
MODELS_MODULE,
|
|
22
|
+
UTILS_MODULE,
|
|
23
|
+
type CompiledCode,
|
|
24
|
+
} from './extension-modules';
|
|
25
|
+
import { assertCompatibleEntry, validateRegistry } from './registry-schema';
|
|
26
|
+
|
|
27
|
+
/** Build an extractor from a bundled or registry export: classes with `new`, factories by calling them. */
|
|
28
|
+
function instantiate(extractor: any, ctx: ExtractorContext): IVideoExtractor {
|
|
29
|
+
if (typeof extractor !== 'function') return extractor;
|
|
30
|
+
const isClass =
|
|
31
|
+
extractor.prototype instanceof VideoExtractor || /^class\b/.test(Function.prototype.toString.call(extractor));
|
|
32
|
+
return isClass ? new extractor(ctx) : extractor(ctx);
|
|
33
|
+
}
|
|
8
34
|
|
|
9
35
|
export class ExtractorManager {
|
|
10
|
-
|
|
36
|
+
// Loads by `${extractor name}|${sha256}` (`|static` for bundled-only extractors), see loadExtractor
|
|
37
|
+
private loadedExtractors = new Map<string, Promise<IVideoExtractor>>();
|
|
38
|
+
// Compiled registry code by lowercased extractor name
|
|
39
|
+
private compiledExtractors = new Map<string, CompiledCode>();
|
|
11
40
|
private extractorRegistry = new Map<string, ExtractorInfo>();
|
|
12
41
|
private staticExtractors!: Record<string, any>;
|
|
13
42
|
private extractorContext: ExtractorContext;
|
|
43
|
+
private integrityOptions: IntegrityOptions;
|
|
14
44
|
|
|
15
|
-
//
|
|
45
|
+
// Server name alias -> extractor name, from registry `aliases`. The defaults cover registries
|
|
46
|
+
// published before entries carried aliases.
|
|
16
47
|
private extractorAliases: Map<string, string> = new Map([
|
|
17
48
|
['upcloud', 'megacloud'],
|
|
18
49
|
['akcloud', 'megacloud'],
|
|
19
50
|
]);
|
|
20
51
|
|
|
21
|
-
|
|
52
|
+
/**
|
|
53
|
+
* @throws RegistryError if the registry is invalid or uses a newer schema than this library reads
|
|
54
|
+
*/
|
|
55
|
+
constructor(
|
|
56
|
+
registry: ExtensionRegistryData | typeof extensionRegistry,
|
|
57
|
+
extractorConfig: ExtractorContextConfig = {},
|
|
58
|
+
integrityOptions: IntegrityOptions = {}
|
|
59
|
+
) {
|
|
60
|
+
const { extractors } = validateRegistry(registry);
|
|
22
61
|
this.extractorContext = createExtractorContext(extractorConfig);
|
|
62
|
+
this.integrityOptions = integrityOptions;
|
|
23
63
|
this.initializeStaticExtractors();
|
|
24
|
-
this.loadRegistry(
|
|
64
|
+
this.loadRegistry(extractors);
|
|
25
65
|
//console.log('🔧 Dynamic Extractor Manager initialized');
|
|
26
66
|
}
|
|
27
67
|
|
|
@@ -36,28 +76,16 @@ export class ExtractorManager {
|
|
|
36
76
|
}
|
|
37
77
|
|
|
38
78
|
/**
|
|
39
|
-
*
|
|
79
|
+
* Index the validated registry extractors (and their aliases) by lowercased name
|
|
40
80
|
*/
|
|
41
|
-
private loadRegistry(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
version: extractor.version,
|
|
50
|
-
main: extractor.main,
|
|
51
|
-
};
|
|
52
|
-
this.extractorRegistry.set(extractor.name.toLowerCase(), manifest);
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
// const totalExtractors = this.extractorRegistry.size;
|
|
58
|
-
//console.log(`🔧 Loaded ${totalExtractors} dynamic extractors from extension registry`);
|
|
59
|
-
} catch (error) {
|
|
60
|
-
console.error('❌ Failed to load extractors from extension registry:', error);
|
|
81
|
+
private loadRegistry(extractors: ExtractorInfo[]): void {
|
|
82
|
+
// Keep the whole entry: dropping `sha256` here used to disable integrity checks for extractors.
|
|
83
|
+
for (const extractor of extractors) {
|
|
84
|
+
const name = extractor.name.toLowerCase();
|
|
85
|
+
this.extractorRegistry.set(name, { ...extractor });
|
|
86
|
+
for (const alias of extractor.aliases ?? []) {
|
|
87
|
+
this.extractorAliases.set(alias.toLowerCase(), name);
|
|
88
|
+
}
|
|
61
89
|
}
|
|
62
90
|
}
|
|
63
91
|
|
|
@@ -97,279 +125,182 @@ export class ExtractorManager {
|
|
|
97
125
|
}
|
|
98
126
|
|
|
99
127
|
/**
|
|
100
|
-
*
|
|
128
|
+
* Resolve a server name to its extractor name: the longest registry extractor name or alias
|
|
129
|
+
* the server name starts with (bundled extractor names are a fallback), lowercased.
|
|
101
130
|
* Examples:
|
|
102
131
|
* - 'megacloud-hd-1' -> 'megacloud'
|
|
103
132
|
* - 'kwik-pahe' -> 'kwik'
|
|
104
|
-
* - 'upcloud' -> 'megacloud' (alias
|
|
105
|
-
* - '
|
|
106
|
-
* - 'MegaCloud' -> 'megacloud'
|
|
133
|
+
* - 'upcloud' -> 'megacloud' (alias)
|
|
134
|
+
* - 'newhost-hd-1' -> 'newhost' (any extractor present in the registry)
|
|
107
135
|
*/
|
|
108
136
|
public extractBaseExtractorName(serverName: string): string | null {
|
|
109
137
|
const lowerName = serverName.toLowerCase();
|
|
110
138
|
|
|
111
|
-
//
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
return extractor.toLowerCase();
|
|
139
|
+
// Ordered so that on equal length a registry name beats an alias, and an alias beats a bundled name.
|
|
140
|
+
const candidates: Array<[prefix: string, extractor: string]> = [
|
|
141
|
+
...Array.from(this.extractorRegistry.keys(), (name): [string, string] => [name, name]),
|
|
142
|
+
...Array.from(this.extractorAliases.entries()),
|
|
143
|
+
...Object.values(StreamingServers as Record<string, string>).map((v): [string, string] => [
|
|
144
|
+
v.toLowerCase(),
|
|
145
|
+
v.toLowerCase(),
|
|
146
|
+
]),
|
|
147
|
+
];
|
|
148
|
+
|
|
149
|
+
let best: [string, string] | undefined;
|
|
150
|
+
for (const candidate of candidates) {
|
|
151
|
+
if (lowerName.startsWith(candidate[0]) && (!best || candidate[0].length > best[0].length)) {
|
|
152
|
+
best = candidate;
|
|
126
153
|
}
|
|
127
154
|
}
|
|
128
|
-
|
|
129
|
-
// If no match found, try splitting by hyphen and taking first part
|
|
130
|
-
const firstPart = lowerName.split('-')[0];
|
|
131
|
-
|
|
132
|
-
// Check if first part is an alias
|
|
133
|
-
if (firstPart && this.extractorAliases.has(firstPart)) {
|
|
134
|
-
return this.extractorAliases.get(firstPart)!;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Check if first part is a known extractor
|
|
138
|
-
if (firstPart && knownExtractors.some((e) => e.toLowerCase() === firstPart)) {
|
|
139
|
-
return firstPart;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
return null;
|
|
155
|
+
return best ? best[1] : null;
|
|
143
156
|
}
|
|
144
157
|
|
|
145
158
|
/**
|
|
146
|
-
* Load an extractor by ID from the registry
|
|
159
|
+
* Load an extractor by server name or extractor ID from the registry, or the bundled version
|
|
160
|
+
* when the registry has none or its code can't be used. Always an instance built with this
|
|
161
|
+
* manager's extractor context.
|
|
147
162
|
* Handles server names with suffixes like 'megacloud-hd-1', 'kwik-pahe', etc.
|
|
148
163
|
* Also resolves aliases like 'upcloud' -> 'megacloud', 'akcloud' -> 'megacloud'
|
|
149
164
|
*/
|
|
150
|
-
async loadExtractor(extractorId:
|
|
151
|
-
const metadata = this.getExtractorMetadata(extractorId
|
|
165
|
+
async loadExtractor(extractorId: string): Promise<IVideoExtractor> {
|
|
166
|
+
const metadata = this.getExtractorMetadata(extractorId);
|
|
152
167
|
if (!metadata) {
|
|
153
|
-
//
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
if (staticExtractor) {
|
|
158
|
-
//console.log(`🔧 Using static fallback for extractor '${extractorId}' (resolved: '${resolvedName}')`);
|
|
159
|
-
return staticExtractor;
|
|
168
|
+
// Not in the registry: use the bundled extractor, if there is one
|
|
169
|
+
const name = (this.extractBaseExtractorName(extractorId) ?? extractorId).toLowerCase();
|
|
170
|
+
if (!this.staticExtractors[name]) {
|
|
171
|
+
throw new Error(`Extractor '${extractorId}' not found in registry or static extractors`);
|
|
160
172
|
}
|
|
161
|
-
|
|
173
|
+
return memoiseLoad(this.loadedExtractors, `${name}|static`, async () => this.createStaticExtractor(name));
|
|
162
174
|
}
|
|
175
|
+
// Refuse a registry version that needs a newer extension context before downloading it.
|
|
176
|
+
// Providers still fall back to the bundled extractor (see createProviderContext).
|
|
177
|
+
assertCompatibleEntry(metadata);
|
|
178
|
+
|
|
179
|
+
// Keyed on the extractor name, so every server name it serves ('megacloud-hd-1', 'MegaCloud',
|
|
180
|
+
// 'upcloud') shares one load, and on its hash, so a new version is loaded again.
|
|
181
|
+
const key = `${metadata.name.toLowerCase()}|${metadata.sha256 ?? ''}`;
|
|
182
|
+
return memoiseLoad(this.loadedExtractors, key, () => this.fetchExtractor(metadata));
|
|
183
|
+
}
|
|
163
184
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Forget a loaded extractor and its compiled code, so the next load fetches and runs it again.
|
|
187
|
+
* Takes the same names as loadExtractor ('megacloud-hd-1', 'MegaCloud', 'upcloud').
|
|
188
|
+
*/
|
|
189
|
+
invalidate(extractorId: string): void {
|
|
190
|
+
const name = (
|
|
191
|
+
this.getExtractorMetadata(extractorId)?.name ??
|
|
192
|
+
this.extractBaseExtractorName(extractorId) ??
|
|
193
|
+
extractorId
|
|
194
|
+
).toLowerCase();
|
|
195
|
+
deleteEntriesOf(this.loadedExtractors, name);
|
|
196
|
+
this.compiledExtractors.delete(name);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/** The bundled version of an extractor, built with this manager's context */
|
|
200
|
+
private createStaticExtractor(name: string): IVideoExtractor {
|
|
201
|
+
return instantiate(this.staticExtractors[name.toLowerCase()], this.extractorContext);
|
|
202
|
+
}
|
|
169
203
|
|
|
204
|
+
/**
|
|
205
|
+
* Fetch and run the registry version of an extractor, falling back to the bundled version
|
|
206
|
+
*/
|
|
207
|
+
private async fetchExtractor(metadata: ExtractorInfo): Promise<IVideoExtractor> {
|
|
170
208
|
try {
|
|
171
209
|
// Handle static extractors (legacy)
|
|
172
210
|
if (metadata.main.startsWith('static://')) {
|
|
173
211
|
const staticId = metadata.main.replace('static://', '');
|
|
174
|
-
|
|
175
|
-
if (staticExtractor) {
|
|
176
|
-
this.loadedExtractors.set(extractorId, staticExtractor);
|
|
177
|
-
//console.log(`🔧 Static extractor '${extractorId}' loaded`);
|
|
178
|
-
return staticExtractor;
|
|
179
|
-
}
|
|
212
|
+
if (this.staticExtractors[staticId.toLowerCase()]) return this.createStaticExtractor(staticId);
|
|
180
213
|
throw new Error(`Static extractor '${staticId}' not found`);
|
|
181
214
|
}
|
|
182
215
|
|
|
183
|
-
//console.log(`🔧 Loading dynamic extractor '${
|
|
216
|
+
//console.log(`🔧 Loading dynamic extractor '${metadata.name}' from ${metadata.main}`);
|
|
184
217
|
|
|
185
|
-
|
|
186
|
-
const fetchOptions = {
|
|
218
|
+
const response = await fetchTextWithTimeout(metadata.main, {
|
|
187
219
|
method: 'GET',
|
|
188
220
|
headers: {
|
|
189
221
|
'Accept': 'text/plain, application/javascript, */*',
|
|
190
|
-
'Content-Type': 'application/javascript',
|
|
191
222
|
'User-Agent': 'React-Native-Consumet/1.0.0',
|
|
192
223
|
},
|
|
193
|
-
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
const response = await fetch(metadata.main, fetchOptions);
|
|
224
|
+
});
|
|
197
225
|
if (!response.ok) {
|
|
198
226
|
throw new Error(`Failed to fetch extractor: ${response.status} ${response.statusText}`);
|
|
199
227
|
}
|
|
200
|
-
const extractorCode = await response.text();
|
|
201
|
-
|
|
202
|
-
// Integrity check — reject if hash doesn't match the bundled registry
|
|
203
|
-
this.verifyCodeIntegrity(extractorCode, metadata.sha256, metadata.name as string);
|
|
204
|
-
|
|
205
|
-
// Execute the extractor code
|
|
206
|
-
const extractorInstance = await this.executeExtractorCode(extractorCode, metadata);
|
|
207
228
|
|
|
208
|
-
//
|
|
209
|
-
this.
|
|
210
|
-
|
|
211
|
-
//console.log(`✅ Dynamic extractor '${extractorId}' loaded successfully (encryption: ${metadata.version})`);
|
|
212
|
-
return extractorInstance;
|
|
229
|
+
// Verifies the code against the registry hash and the extractor name before running it
|
|
230
|
+
return await this.executeExtractorCode(response.text, metadata);
|
|
213
231
|
} catch (error) {
|
|
214
|
-
console.error(`❌ Failed to load extractor '${
|
|
232
|
+
console.error(`❌ Failed to load extractor '${metadata.name}':`, error);
|
|
215
233
|
|
|
216
|
-
// Fallback to
|
|
217
|
-
|
|
218
|
-
if (staticExtractor) {
|
|
219
|
-
//console.log(`🔧 Falling back to static extractor for '${extractorId}'`);
|
|
220
|
-
this.loadedExtractors.set(extractorId, staticExtractor);
|
|
221
|
-
return staticExtractor;
|
|
222
|
-
}
|
|
234
|
+
// Fallback to the bundled version of the extractor, if there is one
|
|
235
|
+
if (this.staticExtractors[metadata.name.toLowerCase()]) return this.createStaticExtractor(metadata.name);
|
|
223
236
|
|
|
224
237
|
throw error;
|
|
225
238
|
}
|
|
226
239
|
}
|
|
227
240
|
|
|
228
241
|
/**
|
|
229
|
-
* Execute extractor code and create instance
|
|
242
|
+
* Execute extractor code and create instance.
|
|
243
|
+
* The code must match `metadata.sha256` unless `options.skipIntegrity` is set. Verified code is
|
|
244
|
+
* compiled once per extractor name and sha256; each call returns a new instance.
|
|
245
|
+
*
|
|
246
|
+
* @throws RegistryError before running anything if the entry needs a newer extension context
|
|
247
|
+
* @throws IntegrityError before running anything if the hash or extractor name is invalid
|
|
230
248
|
*/
|
|
231
|
-
public async executeExtractorCode(
|
|
232
|
-
|
|
249
|
+
public async executeExtractorCode(
|
|
250
|
+
code: string,
|
|
251
|
+
metadata: ExtractorInfo,
|
|
252
|
+
options: ExecuteCodeOptions = {}
|
|
253
|
+
): Promise<IVideoExtractor> {
|
|
254
|
+
assertCompatibleEntry(metadata);
|
|
255
|
+
// The name is interpolated into the generated code.
|
|
256
|
+
assertValidIdentifier(metadata?.name, 'extractor name', String(metadata?.name));
|
|
257
|
+
|
|
258
|
+
// The same code verified against the same hash before runs from its compiled copy.
|
|
259
|
+
const key = metadata.name.toLowerCase();
|
|
260
|
+
const sha256 = metadata.sha256 ?? '';
|
|
261
|
+
const compiled = this.compiledExtractors.get(key);
|
|
262
|
+
let factory = compiled?.sha256 === sha256 && compiled.code === code ? compiled.factory : undefined;
|
|
263
|
+
if (!factory && !options.skipIntegrity) {
|
|
264
|
+
verifyExtensionCode(code, metadata, this.integrityOptions);
|
|
265
|
+
}
|
|
233
266
|
|
|
234
267
|
try {
|
|
235
|
-
let executeFunction;
|
|
236
|
-
try {
|
|
237
|
-
executeFunction = new Function(
|
|
238
|
-
'context',
|
|
239
|
-
`
|
|
240
|
-
const exports = context.exports;
|
|
241
|
-
const require = context.require;
|
|
242
|
-
const module = context.module;
|
|
243
|
-
const console = context.console;
|
|
244
|
-
const Promise = context.Promise;
|
|
245
|
-
const Object = context.Object;
|
|
246
|
-
const fetch = context.fetch;
|
|
247
|
-
const URL = context.URL;
|
|
248
|
-
const URLSearchParams = context.URLSearchParams;
|
|
249
|
-
const axios = context.axios;
|
|
250
|
-
const load = context.load;
|
|
251
|
-
const CryptoJS = context.CryptoJS;
|
|
252
|
-
const sharedUtils = context.sharedUtils;
|
|
253
|
-
|
|
254
|
-
try {
|
|
255
|
-
${code}
|
|
256
|
-
} catch (execError) {
|
|
257
|
-
console.error('Error during extractor code execution:', execError);
|
|
258
|
-
throw new Error('Extractor code execution failed: ' + execError.message);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
return { exports, ${metadata.name}: typeof ${metadata.name} !== 'undefined' ? ${metadata.name} : exports.${metadata.name} };
|
|
262
|
-
`
|
|
263
|
-
);
|
|
264
|
-
} catch (syntaxError: any) {
|
|
265
|
-
console.error('Syntax error in extractor code:', syntaxError);
|
|
266
|
-
throw new Error(`Failed to parse extractor code: ${syntaxError.message}`);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
const result = executeFunction(context);
|
|
270
|
-
const factory = result[metadata.name || `create${metadata.name}`];
|
|
271
|
-
|
|
272
268
|
if (!factory) {
|
|
273
|
-
|
|
269
|
+
const context = this.createExecutionContext(metadata.name);
|
|
270
|
+
factory = evaluateExtensionCode(code, metadata.name, context, 'extractor');
|
|
271
|
+
if (!factory) {
|
|
272
|
+
throw new Error(`Factory function '${metadata.name}' not found in extractor code`);
|
|
273
|
+
}
|
|
274
|
+
// Unverified code is never reused: the next call checks its hash again.
|
|
275
|
+
if (!options.skipIntegrity) this.compiledExtractors.set(key, { sha256, code, factory });
|
|
274
276
|
}
|
|
275
|
-
return factory
|
|
277
|
+
return instantiate(factory, this.extractorContext);
|
|
276
278
|
} catch (error) {
|
|
277
279
|
console.error(`❌ Failed to execute extractor code for '${metadata.name}':`, error);
|
|
278
280
|
throw error;
|
|
279
281
|
}
|
|
280
282
|
}
|
|
281
283
|
|
|
282
|
-
/**
|
|
283
|
-
* Create models context
|
|
284
|
-
*/
|
|
285
|
-
private createModelsContext() {
|
|
286
|
-
return {
|
|
287
|
-
SubOrSub: { SUB: 'sub', DUB: 'dub', BOTH: 'both' },
|
|
288
|
-
StreamingServers: {
|
|
289
|
-
StreamSB: 'streamsb',
|
|
290
|
-
StreamTape: 'streamtape',
|
|
291
|
-
VidStreaming: 'vidstreaming',
|
|
292
|
-
MegaCloud: 'megacloud',
|
|
293
|
-
MegaUp: 'megaup',
|
|
294
|
-
MegaPlay: 'megaplay',
|
|
295
|
-
Kwik: 'kwik',
|
|
296
|
-
VidHide: 'vidhide',
|
|
297
|
-
HubCloud: 'hubcloud',
|
|
298
|
-
GDFlix: 'gdflix',
|
|
299
|
-
Gofile: 'gofile',
|
|
300
|
-
},
|
|
301
|
-
MediaStatus: {
|
|
302
|
-
COMPLETED: 'completed',
|
|
303
|
-
ONGOING: 'ongoing',
|
|
304
|
-
NOT_YET_AIRED: 'not_yet_aired',
|
|
305
|
-
UNKNOWN: 'unknown',
|
|
306
|
-
},
|
|
307
|
-
TvType: {
|
|
308
|
-
MOVIE: 'movie',
|
|
309
|
-
TVSERIES: 'tvseries',
|
|
310
|
-
ANIME: 'anime',
|
|
311
|
-
},
|
|
312
|
-
WatchListType: {
|
|
313
|
-
WATCHING: 'watching',
|
|
314
|
-
COMPLETED: 'completed',
|
|
315
|
-
ONHOLD: 'onhold',
|
|
316
|
-
DROPPED: 'dropped',
|
|
317
|
-
PLAN_TO_WATCH: 'plan_to_watch',
|
|
318
|
-
NONE: 'none',
|
|
319
|
-
},
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
|
|
323
284
|
/**
|
|
324
285
|
* Create execution context for extractor code
|
|
325
286
|
*/
|
|
326
|
-
private createExecutionContext() {
|
|
287
|
+
private createExecutionContext(extractorName: string) {
|
|
327
288
|
const extractorContext = this.extractorContext;
|
|
328
|
-
|
|
329
|
-
const
|
|
330
|
-
'cheerio': { load:
|
|
331
|
-
'axios':
|
|
332
|
-
'
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
'../../utils/create-extractor-context': {
|
|
336
|
-
createExtractorContext: () => this.extractorContext,
|
|
337
|
-
},
|
|
338
|
-
'../../utils/create-extractor-context.js': {
|
|
339
|
-
createExtractorContext: () => this.extractorContext,
|
|
340
|
-
},
|
|
341
|
-
'../../utils': {
|
|
342
|
-
createExtractorContext: () => this.extractorContext,
|
|
343
|
-
},
|
|
289
|
+
// The only modules extractor code can require; anything else throws (EXT-5).
|
|
290
|
+
const modules: Record<string, unknown> = {
|
|
291
|
+
'cheerio': { load: extractorContext.load },
|
|
292
|
+
'axios': extractorContext.axios,
|
|
293
|
+
'crypto-js': CryptoJS,
|
|
294
|
+
[MODELS_MODULE]: { VideoExtractor, ...extensionEnums },
|
|
295
|
+
[UTILS_MODULE]: { createExtractorContext: () => extractorContext },
|
|
344
296
|
};
|
|
345
297
|
return {
|
|
346
298
|
exports: {},
|
|
347
299
|
module: { exports: {} },
|
|
348
|
-
require: (
|
|
300
|
+
require: createExtensionRequire(extractorName, modules),
|
|
349
301
|
Promise,
|
|
350
302
|
Object,
|
|
351
|
-
fetch:
|
|
352
|
-
try {
|
|
353
|
-
const response = await this.extractorContext.axios({
|
|
354
|
-
url,
|
|
355
|
-
method: options.method || 'GET',
|
|
356
|
-
headers: options.headers || {},
|
|
357
|
-
data: options.body,
|
|
358
|
-
timeout: 30000,
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
return {
|
|
362
|
-
ok: response.status >= 200 && response.status < 300,
|
|
363
|
-
status: response.status,
|
|
364
|
-
statusText: response.statusText,
|
|
365
|
-
headers: response.headers,
|
|
366
|
-
text: async () => response.data,
|
|
367
|
-
json: async () => (typeof response.data === 'string' ? JSON.parse(response.data) : response.data),
|
|
368
|
-
};
|
|
369
|
-
} catch (error: any) {
|
|
370
|
-
throw new Error(`fetch failed: ${error.message || error}`);
|
|
371
|
-
}
|
|
372
|
-
},
|
|
303
|
+
fetch: createExtensionFetch(extractorContext.axios),
|
|
373
304
|
axios: extractorContext.axios,
|
|
374
305
|
load: extractorContext.load,
|
|
375
306
|
CryptoJS,
|
|
@@ -378,19 +309,6 @@ export class ExtractorManager {
|
|
|
378
309
|
URLSearchParams: extractorContext.PolyURLSearchParams,
|
|
379
310
|
};
|
|
380
311
|
}
|
|
381
|
-
|
|
382
|
-
private verifyCodeIntegrity(code: string, expectedHash: string | undefined, id: string): void {
|
|
383
|
-
if (!expectedHash) {
|
|
384
|
-
console.warn(`⚠️ No integrity hash for '${id}' — skipping verification`);
|
|
385
|
-
return;
|
|
386
|
-
}
|
|
387
|
-
const actual = CryptoJS.SHA256(code).toString(CryptoJS.enc.Hex);
|
|
388
|
-
if (actual !== expectedHash) {
|
|
389
|
-
throw new Error(
|
|
390
|
-
`Integrity check failed for '${id}': expected ${expectedHash.slice(0, 12)}… got ${actual.slice(0, 12)}…`
|
|
391
|
-
);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
312
|
}
|
|
395
313
|
|
|
396
314
|
export default ExtractorManager;
|