react-native-consumet 1.5.0 → 2.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 +11 -2
- package/README.md +30 -14
- package/android/build.gradle +9 -8
- package/android/generated/java/com/consumet/NativeConsumetSpec.java +0 -4
- package/android/generated/jni/CMakeLists.txt +1 -9
- package/android/generated/jni/RNConsumetSpec-generated.cpp +0 -6
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +56 -93
- 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.h +1 -1
- package/ios/Consumet.mm +703 -8
- package/ios/RCConsumetSynchronyCache.h +51 -0
- package/ios/RCConsumetSynchronyCache.m +246 -0
- package/ios/generated/Package.swift +66 -0
- package/ios/generated/ReactAppDependencyProvider/RCTAppDependencyProvider.h +25 -0
- package/ios/generated/ReactAppDependencyProvider/RCTAppDependencyProvider.mm +40 -0
- package/ios/generated/ReactAppDependencyProvider/ReactAppDependencyProvider.podspec +34 -0
- package/ios/generated/ReactCodegen/RCTModuleProviders.h +16 -0
- package/ios/generated/ReactCodegen/RCTModuleProviders.mm +51 -0
- package/ios/generated/ReactCodegen/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/ios/generated/ReactCodegen/RCTModulesConformingToProtocolsProvider.mm +54 -0
- package/ios/generated/ReactCodegen/RCTThirdPartyComponentsProvider.h +16 -0
- package/ios/generated/ReactCodegen/RCTThirdPartyComponentsProvider.mm +30 -0
- package/ios/generated/ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.h +14 -0
- package/ios/generated/ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.mm +19 -0
- package/ios/generated/{RNConsumetSpec → ReactCodegen/RNConsumetSpec}/RNConsumetSpec-generated.mm +0 -7
- package/ios/generated/{RNConsumetSpec → ReactCodegen/RNConsumetSpec}/RNConsumetSpec.h +0 -2
- package/ios/generated/ReactCodegen/RNConsumetSpecJSI.h +88 -0
- package/ios/generated/ReactCodegen/ReactCodegen.podspec +114 -0
- package/lib/commonjs/NativeConsumet.ts +68 -2
- package/lib/commonjs/extension-registry.json +229 -61
- 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 +112 -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 +15 -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 +17 -8
- 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 +12 -7
- package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
- package/lib/commonjs/providers/manga/brmangas.js +12 -7
- package/lib/commonjs/providers/manga/brmangas.js.map +1 -1
- package/lib/commonjs/providers/manga/comick.js +21 -16
- package/lib/commonjs/providers/manga/comick.js.map +1 -1
- package/lib/commonjs/providers/manga/flamescans.js +12 -7
- package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
- package/lib/commonjs/providers/manga/index.js +28 -31
- package/lib/commonjs/providers/manga/index.js.map +1 -1
- package/lib/commonjs/providers/manga/mangadex.js +18 -13
- package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahere.js +13 -8
- package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahost.js +12 -7
- package/lib/commonjs/providers/manga/mangahost.js.map +1 -1
- package/lib/commonjs/providers/manga/mangakakalot.js +12 -7
- package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapark.js +12 -7
- package/lib/commonjs/providers/manga/mangapark.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapill.js +12 -7
- package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
- package/lib/commonjs/providers/manga/mangareader.js +13 -8
- package/lib/commonjs/providers/manga/mangareader.js.map +1 -1
- package/lib/commonjs/providers/manga/mangasee123.js +12 -7
- package/lib/commonjs/providers/manga/mangasee123.js.map +1 -1
- package/lib/commonjs/providers/manga/readmanga.js +20 -9
- package/lib/commonjs/providers/manga/readmanga.js.map +1 -1
- package/lib/commonjs/providers/manga/vyvymanga.js +13 -8
- package/lib/commonjs/providers/manga/vyvymanga.js.map +1 -1
- package/lib/commonjs/providers/meta/anilist.js +560 -1024
- 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 +67 -50
- 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 -247
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +179 -259
- 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 +77 -2
- package/lib/commonjs/utils/index.js.map +1 -1
- 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 +229 -61
- 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 +21 -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 +17 -8
- 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 +11 -6
- package/lib/module/providers/manga/asurascans.js.map +1 -1
- package/lib/module/providers/manga/brmangas.js +11 -6
- package/lib/module/providers/manga/brmangas.js.map +1 -1
- package/lib/module/providers/manga/comick.js +20 -16
- package/lib/module/providers/manga/comick.js.map +1 -1
- package/lib/module/providers/manga/flamescans.js +11 -6
- package/lib/module/providers/manga/flamescans.js.map +1 -1
- package/lib/module/providers/manga/index.js +14 -16
- package/lib/module/providers/manga/index.js.map +1 -1
- package/lib/module/providers/manga/mangadex.js +17 -13
- package/lib/module/providers/manga/mangadex.js.map +1 -1
- package/lib/module/providers/manga/mangahere.js +12 -7
- package/lib/module/providers/manga/mangahere.js.map +1 -1
- package/lib/module/providers/manga/mangahost.js +11 -6
- package/lib/module/providers/manga/mangahost.js.map +1 -1
- package/lib/module/providers/manga/mangakakalot.js +11 -6
- package/lib/module/providers/manga/mangakakalot.js.map +1 -1
- package/lib/module/providers/manga/mangapark.js +11 -6
- package/lib/module/providers/manga/mangapark.js.map +1 -1
- package/lib/module/providers/manga/mangapill.js +11 -7
- package/lib/module/providers/manga/mangapill.js.map +1 -1
- package/lib/module/providers/manga/mangareader.js +12 -8
- package/lib/module/providers/manga/mangareader.js.map +1 -1
- package/lib/module/providers/manga/mangasee123.js +11 -7
- package/lib/module/providers/manga/mangasee123.js.map +1 -1
- package/lib/module/providers/manga/readmanga.js +19 -8
- package/lib/module/providers/manga/readmanga.js.map +1 -1
- package/lib/module/providers/manga/vyvymanga.js +12 -7
- package/lib/module/providers/manga/vyvymanga.js.map +1 -1
- package/lib/module/providers/meta/anilist.js +562 -1024
- 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 +67 -50
- 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 -248
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +178 -258
- 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 +6 -3
- package/lib/module/utils/index.js.map +1 -1
- 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 +31 -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 +106 -3
- 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 +5 -3
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts +7 -4
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/index.d.ts +14 -17
- package/lib/typescript/commonjs/src/providers/manga/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts +11 -3
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.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 -14
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +72 -19
- 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 +11 -4
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- 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 +31 -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 +106 -3
- 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 +5 -3
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts +5 -3
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/comick.d.ts +7 -4
- package/lib/typescript/module/src/providers/manga/comick.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts +5 -3
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/index.d.ts +14 -17
- package/lib/typescript/module/src/providers/manga/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts +5 -3
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts +5 -3
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts +5 -3
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts +5 -3
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts +5 -3
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts +5 -3
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts +5 -3
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts +5 -3
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts +11 -3
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts +5 -3
- package/lib/typescript/module/src/providers/manga/vyvymanga.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 -14
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts +72 -19
- 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 +11 -4
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- 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 +36 -25
- package/src/NativeConsumet.ts +68 -2
- package/src/extension-registry.json +229 -61
- 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 +109 -3
- package/src/models/base-provider.ts +6 -1
- package/src/models/extension-manifest.ts +35 -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 +110 -3
- package/src/providers/anime/anikoto/anikoto.ts +14 -10
- package/src/providers/anime/anikoto/create-anikoto.ts +15 -7
- 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 +13 -7
- package/src/providers/manga/brmangas.ts +11 -7
- package/src/providers/manga/comick.ts +17 -12
- package/src/providers/manga/flamescans.ts +11 -7
- package/src/providers/manga/index.ts +14 -16
- package/src/providers/manga/mangadex.ts +18 -14
- package/src/providers/manga/mangahere.ts +12 -8
- package/src/providers/manga/mangahost.ts +11 -7
- package/src/providers/manga/mangakakalot.ts +11 -7
- package/src/providers/manga/mangapark.ts +11 -7
- package/src/providers/manga/mangapill.ts +11 -7
- package/src/providers/manga/mangareader.ts +12 -8
- package/src/providers/manga/mangasee123.ts +11 -7
- package/src/providers/manga/readmanga.ts +36 -23
- package/src/providers/manga/vyvymanga.ts +12 -8
- package/src/providers/meta/anilist.ts +566 -1439
- 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 +85 -60
- 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 -258
- package/src/utils/ProviderManager.ts +236 -293
- 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 +31 -4
- 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/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI-generated.cpp +0 -75
- package/ios/generated/RNConsumetSpecJSI-generated.cpp +0 -75
- package/ios/generated/RNConsumetSpecJSI.h +0 -125
- 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/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/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/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/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/movies/dramacool.ts +0 -395
- package/src/providers/movies/yflix.ts +0 -559
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
makeGetRequestWithWebView,
|
|
11
11
|
makePostRequestWithWebView,
|
|
12
12
|
makePostRequest,
|
|
13
|
-
multiply,
|
|
14
13
|
deobfuscateScript,
|
|
15
14
|
} from '../NativeConsumet';
|
|
16
15
|
|
|
@@ -32,7 +31,6 @@ export function createExtractorContext(config: ExtractorContextConfig = {}): Ext
|
|
|
32
31
|
makeGetRequestWithWebView,
|
|
33
32
|
makePostRequestWithWebView,
|
|
34
33
|
makePostRequest,
|
|
35
|
-
multiply,
|
|
36
34
|
bypassDdosGuard,
|
|
37
35
|
deobfuscateScript,
|
|
38
36
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { load } from 'cheerio';
|
|
2
2
|
import CryptoJS from 'crypto-js';
|
|
3
3
|
import type { ProviderContext, ProviderContextConfig } from '../models/provider-context';
|
|
4
|
+
import type { ExtractorContext, IVideoExtractor } from '../models';
|
|
4
5
|
import {
|
|
5
6
|
AnimeParser,
|
|
6
7
|
MovieParser,
|
|
@@ -15,18 +16,16 @@ import {
|
|
|
15
16
|
Topics,
|
|
16
17
|
} from '../models';
|
|
17
18
|
|
|
18
|
-
import { defaultAxios, defaultExtractors
|
|
19
|
+
import { defaultAxios, defaultExtractors } from './extension-utils';
|
|
19
20
|
import { PolyURL, PolyURLSearchParams } from './url-polyfill';
|
|
20
21
|
import {
|
|
21
22
|
getDdosGuardCookiesWithWebView,
|
|
22
23
|
makeGetRequestWithWebView,
|
|
23
24
|
makePostRequestWithWebView,
|
|
24
25
|
makePostRequest,
|
|
25
|
-
multiply,
|
|
26
26
|
bypassDdosGuard,
|
|
27
27
|
deobfuscateScript,
|
|
28
28
|
} from '../NativeConsumet';
|
|
29
|
-
import extensionRegistry from '../extension-registry.json';
|
|
30
29
|
|
|
31
30
|
/**
|
|
32
31
|
* Creates a provider context with sensible defaults for extensions
|
|
@@ -35,40 +34,57 @@ import extensionRegistry from '../extension-registry.json';
|
|
|
35
34
|
* @returns Complete ProviderContext ready for use with extensions
|
|
36
35
|
*/
|
|
37
36
|
export function createProviderContext(config: ProviderContextConfig = {}): ProviderContext {
|
|
38
|
-
|
|
37
|
+
const extractorManager = config.extractorManager;
|
|
38
|
+
|
|
39
|
+
// A factory shaped like the bundled ones (`X(ctx).extract(url)`) that runs the registry version of
|
|
40
|
+
// the extractor, verified and cached by the shared manager, falling back to the bundled version.
|
|
41
|
+
const registryBacked =
|
|
42
|
+
(name: string, bundled?: (ctx?: ExtractorContext) => IVideoExtractor) =>
|
|
43
|
+
(callerCtx?: ExtractorContext): IVideoExtractor => ({
|
|
44
|
+
serverName: name,
|
|
45
|
+
sources: [],
|
|
46
|
+
extract: async (...args: any[]) => {
|
|
47
|
+
let extractor: any;
|
|
48
|
+
try {
|
|
49
|
+
extractor = await extractorManager!.loadExtractor(name);
|
|
50
|
+
} catch (error) {
|
|
51
|
+
if (!bundled) throw error;
|
|
52
|
+
}
|
|
53
|
+
// loadExtractor returns the bundled extractor itself when the registry code fails; it throws
|
|
54
|
+
// when the entry can't be used at all (e.g. it needs a newer context), so build it here.
|
|
55
|
+
if (typeof extractor?.extract !== 'function') {
|
|
56
|
+
if (!bundled) throw new Error(`Extractor '${name}' is not available`);
|
|
57
|
+
extractor = bundled(callerCtx);
|
|
58
|
+
}
|
|
59
|
+
return extractor.extract(...(args as [any]));
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
|
|
39
63
|
const finalExtractors = new Proxy(defaultExtractors, {
|
|
40
|
-
get: (target: any, prop: string) => {
|
|
41
|
-
|
|
64
|
+
get: (target: any, prop: string | symbol) => {
|
|
65
|
+
if (typeof prop !== 'string') return target[prop];
|
|
66
|
+
|
|
67
|
+
// Custom extractors from the config always win
|
|
42
68
|
if (config.extractors && config.extractors[prop]) {
|
|
43
69
|
return config.extractors[prop];
|
|
44
70
|
}
|
|
45
71
|
|
|
46
|
-
//
|
|
72
|
+
// Extractors in the app's registry run their registry version
|
|
73
|
+
if (extractorManager?.getExtractorMetadata(prop)) {
|
|
74
|
+
return registryBacked(prop, target[prop]);
|
|
75
|
+
}
|
|
76
|
+
|
|
47
77
|
if (target[prop]) {
|
|
48
78
|
return target[prop];
|
|
49
79
|
}
|
|
50
80
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
load: config.load || defaultExtractorContext.load,
|
|
59
|
-
userAgent: config.userAgent || defaultExtractorContext.USER_AGENT,
|
|
60
|
-
});
|
|
61
|
-
const extractor = await extractorManager.loadExtractor(prop.toLowerCase() as StreamingServers);
|
|
62
|
-
return extractor.extract(args[0], ...args.slice(1));
|
|
63
|
-
} catch (error) {
|
|
64
|
-
console.warn(`⚠️ Failed to load dynamic extractor '${prop}', falling back to static:`, error);
|
|
65
|
-
// Fallback to static if available
|
|
66
|
-
if (target[prop]) {
|
|
67
|
-
return target[prop](...args);
|
|
68
|
-
}
|
|
69
|
-
throw new Error(`Extractor '${prop}' not found in dynamic or static extractors`);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
81
|
+
return (): IVideoExtractor => ({
|
|
82
|
+
serverName: prop,
|
|
83
|
+
sources: [],
|
|
84
|
+
extract: async () => {
|
|
85
|
+
throw new Error(`Extractor '${prop}' not found in the registry or the bundled extractors`);
|
|
86
|
+
},
|
|
87
|
+
});
|
|
72
88
|
},
|
|
73
89
|
});
|
|
74
90
|
|
|
@@ -96,6 +112,7 @@ export function createProviderContext(config: ProviderContextConfig = {}): Provi
|
|
|
96
112
|
MovieParser: config.MovieParser || MovieParser,
|
|
97
113
|
MangaParser: config.MangaParser || MangaParser,
|
|
98
114
|
extractors: finalExtractors,
|
|
115
|
+
extractorManager,
|
|
99
116
|
PolyURL: PolyURL,
|
|
100
117
|
PolyURLSearchParams: PolyURLSearchParams,
|
|
101
118
|
createCustomBaseUrl,
|
|
@@ -114,7 +131,6 @@ export function createProviderContext(config: ProviderContextConfig = {}): Provi
|
|
|
114
131
|
makeGetRequestWithWebView,
|
|
115
132
|
makePostRequestWithWebView,
|
|
116
133
|
makePostRequest,
|
|
117
|
-
multiply,
|
|
118
134
|
bypassDdosGuard,
|
|
119
135
|
deobfuscateScript,
|
|
120
136
|
},
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import CryptoJS from 'crypto-js';
|
|
2
|
+
|
|
3
|
+
export type IntegrityErrorCode = 'INTEGRITY_MISMATCH' | 'INTEGRITY_MISSING' | 'INVALID_IDENTIFIER';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Thrown when extension/extractor code doesn't match its registry entry, or the entry
|
|
7
|
+
* can't be safely turned into executable code.
|
|
8
|
+
*/
|
|
9
|
+
export class IntegrityError extends Error {
|
|
10
|
+
readonly code: IntegrityErrorCode;
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly expected?: string;
|
|
13
|
+
readonly actual?: string;
|
|
14
|
+
|
|
15
|
+
constructor(
|
|
16
|
+
code: IntegrityErrorCode,
|
|
17
|
+
id: string,
|
|
18
|
+
message: string,
|
|
19
|
+
details: { expected?: string; actual?: string } = {}
|
|
20
|
+
) {
|
|
21
|
+
super(message);
|
|
22
|
+
this.name = 'IntegrityError';
|
|
23
|
+
this.code = code;
|
|
24
|
+
this.id = id;
|
|
25
|
+
this.expected = details.expected;
|
|
26
|
+
this.actual = details.actual;
|
|
27
|
+
// Keep `instanceof IntegrityError` working when compiled to ES5-style classes.
|
|
28
|
+
Object.setPrototypeOf(this, IntegrityError.prototype);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface IntegrityOptions {
|
|
33
|
+
/** Run code whose registry entry has no `sha256`. Off by default. */
|
|
34
|
+
allowUnhashed?: boolean;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface ExecuteCodeOptions {
|
|
38
|
+
/** Run the code without checking it against the registry `sha256`. Only for code you already trust. */
|
|
39
|
+
skipIntegrity?: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const IDENTIFIER_RE = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
43
|
+
|
|
44
|
+
export const sha256Hex = (code: string): string => CryptoJS.SHA256(code).toString(CryptoJS.enc.Hex);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Factory and extractor names are interpolated into generated code, so they must be plain identifiers.
|
|
48
|
+
*/
|
|
49
|
+
export function assertValidIdentifier(value: unknown, what: string, id: string): asserts value is string {
|
|
50
|
+
if (typeof value !== 'string' || !IDENTIFIER_RE.test(value)) {
|
|
51
|
+
throw new IntegrityError('INVALID_IDENTIFIER', id, `Invalid ${what} '${String(value)}' for '${id}'`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Verify code against the `sha256` of its registry entry before it is executed.
|
|
57
|
+
* Apps can call this when installing/caching extension code.
|
|
58
|
+
*
|
|
59
|
+
* @throws IntegrityError when the hash is missing (unless `allowUnhashed`) or doesn't match
|
|
60
|
+
*/
|
|
61
|
+
export function verifyExtensionCode(
|
|
62
|
+
code: string,
|
|
63
|
+
manifest: { id?: string; name?: string; sha256?: string },
|
|
64
|
+
options: IntegrityOptions = {}
|
|
65
|
+
): void {
|
|
66
|
+
const id = manifest.id || manifest.name || 'unknown';
|
|
67
|
+
|
|
68
|
+
if (!manifest.sha256) {
|
|
69
|
+
if (options.allowUnhashed) return;
|
|
70
|
+
throw new IntegrityError('INTEGRITY_MISSING', id, `No integrity hash for '${id}'; refusing to run unverified code`);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const actual = sha256Hex(code);
|
|
74
|
+
if (actual !== manifest.sha256) {
|
|
75
|
+
throw new IntegrityError(
|
|
76
|
+
'INTEGRITY_MISMATCH',
|
|
77
|
+
id,
|
|
78
|
+
`Integrity check failed for '${id}': expected ${manifest.sha256.slice(0, 12)}… got ${actual.slice(0, 12)}…`,
|
|
79
|
+
{ expected: manifest.sha256, actual }
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StreamingServers,
|
|
3
|
+
MediaFormat,
|
|
4
|
+
MediaStatus,
|
|
5
|
+
SubOrDub,
|
|
6
|
+
WatchListType,
|
|
7
|
+
TvType,
|
|
8
|
+
Genres,
|
|
9
|
+
Topics,
|
|
10
|
+
} from '../models/types';
|
|
11
|
+
|
|
12
|
+
/** Module names registry bundles import from the runtime (see scripts/build-extensions.js). */
|
|
13
|
+
export const MODELS_MODULE = 'react-native-consumet/models';
|
|
14
|
+
export const UTILS_MODULE = 'react-native-consumet/utils';
|
|
15
|
+
|
|
16
|
+
// Paths tsc-built extensions used for the same modules, at any depth (`../models`, `../../../models/index.js`).
|
|
17
|
+
const LEGACY_MODELS = /^(\.\.\/)+models(\/index)?(\.js)?$/;
|
|
18
|
+
const LEGACY_UTILS = /^(\.\.\/)+utils(\/index|\/create-provider-context|\/create-extractor-context)?(\.js)?$/;
|
|
19
|
+
|
|
20
|
+
/** The library's enums, handed to extensions as-is so their values always match. */
|
|
21
|
+
export const extensionEnums = {
|
|
22
|
+
StreamingServers,
|
|
23
|
+
MediaFormat,
|
|
24
|
+
MediaStatus,
|
|
25
|
+
SubOrDub,
|
|
26
|
+
WatchListType,
|
|
27
|
+
TvType,
|
|
28
|
+
Genres,
|
|
29
|
+
Topics,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Builds the `require` extension code runs with. Only the modules passed in resolve; anything
|
|
34
|
+
* else throws, so a bundle that depends on a file the runtime can't provide fails at load
|
|
35
|
+
* instead of getting `{}` and losing features silently.
|
|
36
|
+
*/
|
|
37
|
+
export function createExtensionRequire(extensionId: string, modules: Record<string, unknown>) {
|
|
38
|
+
return (specifier: string): any => {
|
|
39
|
+
const key = LEGACY_MODELS.test(specifier) ? MODELS_MODULE : LEGACY_UTILS.test(specifier) ? UTILS_MODULE : specifier;
|
|
40
|
+
if (Object.prototype.hasOwnProperty.call(modules, key)) return modules[key];
|
|
41
|
+
throw new Error(
|
|
42
|
+
`Extension '${extensionId}' requires '${specifier}', which the extension runtime does not provide. ` +
|
|
43
|
+
'Registry code must be a single-file bundle (yarn build).'
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type ExtensionFactory = (...args: any[]) => any;
|
|
49
|
+
|
|
50
|
+
/** The globals extension code runs with; each key becomes a local constant of that name. */
|
|
51
|
+
export type ExtensionGlobals = { exports: Record<string, any>; module: { exports: any } } & Record<string, unknown>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Run single-file extension code and return the function it provides as `name`: `exports[name]`,
|
|
55
|
+
* `module.exports[name]`, a top-level `function name` (code without exports), or its default
|
|
56
|
+
* export. Undefined when it provides none. `name` must be a valid identifier (assertValidIdentifier).
|
|
57
|
+
*/
|
|
58
|
+
export function evaluateExtensionCode(
|
|
59
|
+
code: string,
|
|
60
|
+
name: string,
|
|
61
|
+
globals: ExtensionGlobals,
|
|
62
|
+
kind: 'provider' | 'extractor'
|
|
63
|
+
): ExtensionFactory | undefined {
|
|
64
|
+
const label = kind === 'provider' ? 'Provider' : 'Extractor';
|
|
65
|
+
let run: (context: ExtensionGlobals) => unknown;
|
|
66
|
+
try {
|
|
67
|
+
run = new Function(
|
|
68
|
+
'context',
|
|
69
|
+
`
|
|
70
|
+
${Object.keys(globals)
|
|
71
|
+
.map((key) => `const ${key} = context.${key};`)
|
|
72
|
+
.join('\n ')}
|
|
73
|
+
|
|
74
|
+
try {
|
|
75
|
+
${code}
|
|
76
|
+
} catch (execError) {
|
|
77
|
+
console.error('Error during ${kind} code execution:', execError);
|
|
78
|
+
throw new Error('${label} code execution failed: ' + execError.message);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return typeof ${name} !== 'undefined' ? ${name} : undefined;
|
|
82
|
+
`
|
|
83
|
+
) as typeof run;
|
|
84
|
+
} catch (syntaxError: any) {
|
|
85
|
+
console.error(`Syntax error in ${kind} code:`, syntaxError);
|
|
86
|
+
throw new Error(`Failed to parse ${kind} code: ${syntaxError.message}`);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// The top-level declaration comes first: it always binds its own name, while bundle export
|
|
90
|
+
// getters built without block scoping can point at another export on Hermes (see
|
|
91
|
+
// scripts/hermes-safe-dist.js). Exports cover code without a top-level declaration, and the
|
|
92
|
+
// default export (`export default`) is the last resort.
|
|
93
|
+
const declared = run(globals);
|
|
94
|
+
const { exports, module } = globals;
|
|
95
|
+
return [declared, exports[name], module.exports?.[name], exports.default, module.exports?.default].find(
|
|
96
|
+
(candidate): candidate is ExtensionFactory => typeof candidate === 'function'
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** Compiled extension code, reused only for the same code and sha256 (one entry per key). */
|
|
101
|
+
export type CompiledCode = { sha256: string; code: string; factory: ExtensionFactory };
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Share one load per key: concurrent callers get the same promise, later callers the result.
|
|
105
|
+
* A failed load is forgotten, so the next call tries again.
|
|
106
|
+
*/
|
|
107
|
+
export function memoiseLoad<T>(cache: Map<string, Promise<T>>, key: string, load: () => Promise<T>): Promise<T> {
|
|
108
|
+
const cached = cache.get(key);
|
|
109
|
+
if (cached) return cached;
|
|
110
|
+
const pending = load();
|
|
111
|
+
cache.set(key, pending);
|
|
112
|
+
pending.catch(() => {
|
|
113
|
+
if (cache.get(key) === pending) cache.delete(key);
|
|
114
|
+
});
|
|
115
|
+
return pending;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** Delete the entries of one extension or extractor: keys `${id}` and `${id}|…`. */
|
|
119
|
+
export function deleteEntriesOf(cache: Map<string, unknown>, id: string): void {
|
|
120
|
+
for (const key of Array.from(cache.keys())) {
|
|
121
|
+
if (key === id || key.startsWith(`${id}|`)) cache.delete(key);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -37,7 +37,6 @@ import {
|
|
|
37
37
|
makeGetRequestWithWebView,
|
|
38
38
|
makePostRequestWithWebView,
|
|
39
39
|
makePostRequest,
|
|
40
|
-
multiply,
|
|
41
40
|
bypassDdosGuard,
|
|
42
41
|
deobfuscateScript,
|
|
43
42
|
} from '../NativeConsumet';
|
|
@@ -67,32 +66,61 @@ export const defaultExtractorContext: ExtractorContext = {
|
|
|
67
66
|
makeGetRequestWithWebView,
|
|
68
67
|
makePostRequestWithWebView,
|
|
69
68
|
makePostRequest,
|
|
70
|
-
multiply,
|
|
71
69
|
bypassDdosGuard,
|
|
72
70
|
deobfuscateScript,
|
|
73
71
|
},
|
|
74
72
|
};
|
|
75
73
|
|
|
76
|
-
// Default static extractors (for backward compatibility)
|
|
74
|
+
// Default static extractors (for backward compatibility). The class-based extractors default to
|
|
75
|
+
// defaultExtractorContext, so they import this module while it imports them. Getters read each class
|
|
76
|
+
// when it's used, after both modules have loaded, whichever of them loaded first.
|
|
77
77
|
export const defaultExtractors = {
|
|
78
|
-
AsianLoad
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
get AsianLoad() {
|
|
79
|
+
return AsianLoad;
|
|
80
|
+
},
|
|
81
|
+
get Filemoon() {
|
|
82
|
+
return Filemoon;
|
|
83
|
+
},
|
|
84
|
+
get GogoCDN() {
|
|
85
|
+
return GogoCDN;
|
|
86
|
+
},
|
|
81
87
|
Kwik: (ctx: ExtractorContext) => Kwik(ctx || defaultExtractorContext),
|
|
82
|
-
MixDrop
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
get MixDrop() {
|
|
89
|
+
return MixDrop;
|
|
90
|
+
},
|
|
91
|
+
get Mp4Player() {
|
|
92
|
+
return Mp4Player;
|
|
93
|
+
},
|
|
94
|
+
get Mp4Upload() {
|
|
95
|
+
return Mp4Upload;
|
|
96
|
+
},
|
|
97
|
+
get RapidCloud() {
|
|
98
|
+
return RapidCloud;
|
|
99
|
+
},
|
|
86
100
|
MegaCloud: (ctx: ExtractorContext) => MegaCloud(ctx || defaultExtractorContext),
|
|
87
|
-
StreamHub
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
101
|
+
get StreamHub() {
|
|
102
|
+
return StreamHub;
|
|
103
|
+
},
|
|
104
|
+
get StreamLare() {
|
|
105
|
+
return StreamLare;
|
|
106
|
+
},
|
|
107
|
+
get StreamSB() {
|
|
108
|
+
return StreamSB;
|
|
109
|
+
},
|
|
110
|
+
get StreamTape() {
|
|
111
|
+
return StreamTape;
|
|
112
|
+
},
|
|
91
113
|
StreamWish: (ctx?: ExtractorContext) => StreamWish(ctx || defaultExtractorContext),
|
|
92
|
-
VidMoly
|
|
93
|
-
|
|
114
|
+
get VidMoly() {
|
|
115
|
+
return VidMoly;
|
|
116
|
+
},
|
|
117
|
+
get VizCloud() {
|
|
118
|
+
return VizCloud;
|
|
119
|
+
},
|
|
94
120
|
VidHide: (ctx?: ExtractorContext) => VidHide(ctx || defaultExtractorContext),
|
|
95
|
-
Voe
|
|
121
|
+
get Voe() {
|
|
122
|
+
return Voe;
|
|
123
|
+
},
|
|
96
124
|
MegaUp: (ctx?: ExtractorContext) => MegaUp(ctx || defaultExtractorContext),
|
|
97
125
|
MegaPlay: (ctx?: ExtractorContext) => MegaPlay(ctx || defaultExtractorContext),
|
|
98
126
|
GDFlix: (ctx?: ExtractorContext) => GDFlix(ctx || defaultExtractorContext),
|
|
@@ -100,28 +128,3 @@ export const defaultExtractors = {
|
|
|
100
128
|
HubCloud: (ctx?: ExtractorContext) => HubCloud(ctx || defaultExtractorContext),
|
|
101
129
|
FlixCloud: (ctx?: ExtractorContext) => FlixCloud(ctx || defaultExtractorContext),
|
|
102
130
|
};
|
|
103
|
-
|
|
104
|
-
export const extractors = {
|
|
105
|
-
GogoCDN: defaultExtractors.GogoCDN,
|
|
106
|
-
StreamSB: defaultExtractors.StreamSB,
|
|
107
|
-
StreamTape: defaultExtractors.StreamTape,
|
|
108
|
-
MixDrop: defaultExtractors.MixDrop,
|
|
109
|
-
Kwik: defaultExtractors.Kwik,
|
|
110
|
-
RapidCloud: defaultExtractors.RapidCloud,
|
|
111
|
-
StreamWish: defaultExtractors.StreamWish,
|
|
112
|
-
Filemoon: defaultExtractors.Filemoon,
|
|
113
|
-
Voe: defaultExtractors.Voe,
|
|
114
|
-
AsianLoad: defaultExtractors.AsianLoad,
|
|
115
|
-
StreamLare: defaultExtractors.StreamLare,
|
|
116
|
-
VidMoly: defaultExtractors.VidMoly,
|
|
117
|
-
MegaCloud: defaultExtractors.MegaCloud,
|
|
118
|
-
MegaUp: defaultExtractors.MegaUp,
|
|
119
|
-
MegaPlay: defaultExtractors.MegaPlay,
|
|
120
|
-
GDFlix: defaultExtractors.GDFlix,
|
|
121
|
-
Gofile: defaultExtractors.Gofile,
|
|
122
|
-
HubCloud: defaultExtractors.HubCloud,
|
|
123
|
-
FlixCloud: defaultExtractors.FlixCloud,
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
// Type definitions for provider and extractor instances
|
|
127
|
-
export type Extractor = keyof typeof extractors;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* `fetch` has no timeout option (the `timeout` key is silently ignored), so a stalled
|
|
5
|
+
* request would hang forever. Abort it after `timeoutMs`, including reading the body.
|
|
6
|
+
*/
|
|
7
|
+
export async function fetchTextWithTimeout(
|
|
8
|
+
url: string,
|
|
9
|
+
init: RequestInit = {},
|
|
10
|
+
timeoutMs = 30000
|
|
11
|
+
): Promise<{ ok: boolean; status: number; statusText: string; text: string }> {
|
|
12
|
+
const controller = new AbortController();
|
|
13
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
14
|
+
try {
|
|
15
|
+
const response = await fetch(url, { ...init, signal: controller.signal });
|
|
16
|
+
const text = response.ok ? await response.text() : '';
|
|
17
|
+
return { ok: response.ok, status: response.status, statusText: response.statusText, text };
|
|
18
|
+
} catch (error) {
|
|
19
|
+
if (controller.signal.aborted) throw new Error(`Timed out after ${timeoutMs}ms fetching ${url}`);
|
|
20
|
+
throw error;
|
|
21
|
+
} finally {
|
|
22
|
+
clearTimeout(timer);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** What the `fetch` extension code runs with resolves to. */
|
|
27
|
+
export interface ExtensionFetchResponse {
|
|
28
|
+
/** Whether the status is 2xx; HTTP errors resolve with `ok: false` instead of throwing */
|
|
29
|
+
ok: boolean;
|
|
30
|
+
status: number;
|
|
31
|
+
statusText: string;
|
|
32
|
+
headers: AxiosResponse['headers'];
|
|
33
|
+
/** The body as a string, also for JSON responses */
|
|
34
|
+
text(): Promise<string>;
|
|
35
|
+
json(): Promise<any>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const bodyText = (data: unknown): string =>
|
|
39
|
+
typeof data === 'string' ? data : data == null ? '' : typeof data === 'object' ? JSON.stringify(data) : String(data);
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The `fetch` extension code runs with, sent through the app's axios (its proxy, headers and
|
|
43
|
+
* interceptors apply). Like `fetch`, it rejects only when no response arrives (network error,
|
|
44
|
+
* timeout); an HTTP error status resolves with `ok: false`.
|
|
45
|
+
*/
|
|
46
|
+
export function createExtensionFetch(axios: AxiosInstance, timeoutMs = 30000) {
|
|
47
|
+
return async (url: string, options: any = {}): Promise<ExtensionFetchResponse> => {
|
|
48
|
+
let response: AxiosResponse;
|
|
49
|
+
try {
|
|
50
|
+
response = await axios({
|
|
51
|
+
url,
|
|
52
|
+
method: options.method || 'GET',
|
|
53
|
+
headers: options.headers || {},
|
|
54
|
+
data: options.body,
|
|
55
|
+
timeout: timeoutMs,
|
|
56
|
+
// Keep the body as text (axios parses JSON by default) and resolve for every status.
|
|
57
|
+
responseType: 'text',
|
|
58
|
+
validateStatus: () => true,
|
|
59
|
+
});
|
|
60
|
+
} catch (error: any) {
|
|
61
|
+
// An app's axios can still reject an HTTP error (e.g. in an interceptor); it carries the response.
|
|
62
|
+
if (!error?.response) throw new Error(`fetch failed: ${error?.message || error}`);
|
|
63
|
+
response = error.response;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const { data } = response;
|
|
67
|
+
return {
|
|
68
|
+
ok: response.status >= 200 && response.status < 300,
|
|
69
|
+
status: response.status,
|
|
70
|
+
statusText: response.statusText,
|
|
71
|
+
headers: response.headers,
|
|
72
|
+
text: async () => bodyText(data),
|
|
73
|
+
json: async () => (typeof data === 'string' ? JSON.parse(data) : data),
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}
|
package/src/utils/index.ts
CHANGED
|
@@ -18,7 +18,6 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
anilistSearchQuery,
|
|
20
20
|
anilistMediaDetailQuery,
|
|
21
|
-
kitsuSearchQuery,
|
|
22
21
|
anilistTrendingQuery,
|
|
23
22
|
anilistPopularQuery,
|
|
24
23
|
anilistAiringScheduleQuery,
|
|
@@ -47,7 +46,6 @@ export {
|
|
|
47
46
|
calculateStringSimilarity,
|
|
48
47
|
anilistSearchQuery,
|
|
49
48
|
anilistMediaDetailQuery,
|
|
50
|
-
kitsuSearchQuery,
|
|
51
49
|
anilistTrendingQuery,
|
|
52
50
|
anilistPopularQuery,
|
|
53
51
|
anilistAiringScheduleQuery,
|
|
@@ -60,9 +58,38 @@ export {
|
|
|
60
58
|
|
|
61
59
|
// Export provider context utilities
|
|
62
60
|
export { createProviderContext } from './create-provider-context';
|
|
63
|
-
export { ProviderManager } from './ProviderManager';
|
|
61
|
+
export { ProviderManager, REQUIRED_PROVIDER_METHODS } from './ProviderManager';
|
|
62
|
+
export type { ProviderLoadOptions, ProviderOfCategory } from './ProviderManager';
|
|
64
63
|
export { ExtractorManager } from './ExtractorManager';
|
|
64
|
+
export { verifyExtensionCode, IntegrityError } from './extension-integrity';
|
|
65
|
+
export type { IntegrityErrorCode, IntegrityOptions, ExecuteCodeOptions } from './extension-integrity';
|
|
66
|
+
export {
|
|
67
|
+
CONTEXT_VERSION,
|
|
68
|
+
REGISTRY_SCHEMA_VERSION,
|
|
69
|
+
RegistryError,
|
|
70
|
+
validateRegistry,
|
|
71
|
+
isCompatibleEntry,
|
|
72
|
+
assertCompatibleEntry,
|
|
73
|
+
} from './registry-schema';
|
|
74
|
+
export type { RegistryErrorCode } from './registry-schema';
|
|
75
|
+
export {
|
|
76
|
+
REGISTRY_SIGNING_KEYS,
|
|
77
|
+
RegistrySignatureError,
|
|
78
|
+
verifyRegistrySignature,
|
|
79
|
+
parseSignedRegistry,
|
|
80
|
+
} from './registry-signature';
|
|
81
|
+
export type { RegistrySignatureErrorCode, RegistrySignatureOptions } from './registry-signature';
|
|
65
82
|
export { createExtractorContext } from './create-extractor-context';
|
|
66
83
|
export { defaultAxios, defaultExtractorContext, defaultExtractors } from './extension-utils';
|
|
67
84
|
export { PolyURL, PolyURLSearchParams } from './url-polyfill';
|
|
68
|
-
export type {
|
|
85
|
+
export type {
|
|
86
|
+
AnimeProvider,
|
|
87
|
+
MovieProvider,
|
|
88
|
+
animeProviders,
|
|
89
|
+
movieProviders,
|
|
90
|
+
AnimeProviderId,
|
|
91
|
+
MovieProviderId,
|
|
92
|
+
KnownAnimeProviderId,
|
|
93
|
+
KnownMovieProviderId,
|
|
94
|
+
ProviderInstanceOf,
|
|
95
|
+
} from './provider-maps';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import axios, { type AxiosError, type AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
/** Default timeout for metadata APIs (AniList, TMDB, MAL). */
|
|
4
|
+
export const META_TIMEOUT_MS = 15000;
|
|
5
|
+
/** Timeout for optional enrichment (ani.zip, filler lists); the call still succeeds without it. */
|
|
6
|
+
export const ENRICHMENT_TIMEOUT_MS = 5000;
|
|
7
|
+
|
|
8
|
+
const MAX_RETRY_DELAY_MS = 5000;
|
|
9
|
+
|
|
10
|
+
const isRetryable = (status?: number) => status === 429 || (status !== undefined && status >= 500);
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Retry a request once (by default) when the server answers 429 or 5xx, waiting for
|
|
14
|
+
* `Retry-After` when present (capped) or a short linear backoff.
|
|
15
|
+
*/
|
|
16
|
+
export function withRetry(instance: AxiosInstance, { retries = 1, baseDelayMs = 500 } = {}): AxiosInstance {
|
|
17
|
+
instance.interceptors.response.use(undefined, async (error: AxiosError) => {
|
|
18
|
+
const config = error.config as (typeof error.config & { __retryCount?: number }) | undefined;
|
|
19
|
+
const attempt = config?.__retryCount ?? 0;
|
|
20
|
+
if (!config || attempt >= retries || !isRetryable(error.response?.status)) throw error;
|
|
21
|
+
|
|
22
|
+
config.__retryCount = attempt + 1;
|
|
23
|
+
const retryAfterSeconds = Number(error.response?.headers?.['retry-after']);
|
|
24
|
+
const delay =
|
|
25
|
+
Number.isFinite(retryAfterSeconds) && retryAfterSeconds > 0
|
|
26
|
+
? Math.min(retryAfterSeconds * 1000, MAX_RETRY_DELAY_MS)
|
|
27
|
+
: baseDelayMs * config.__retryCount;
|
|
28
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
29
|
+
return instance.request(config);
|
|
30
|
+
});
|
|
31
|
+
return instance;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** Shared client for meta providers: bounded by a timeout, with one retry on 429/5xx. */
|
|
35
|
+
export const metaHttp = withRetry(axios.create({ timeout: META_TIMEOUT_MS }));
|