react-native-consumet 3.0.0 → 4.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/README.md +1 -1
- package/android/build.gradle +1 -18
- package/android/generated/java/com/consumet/NativeConsumetSpec.java +0 -8
- package/android/generated/jni/RNConsumetSpec-generated.cpp +0 -12
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +0 -18
- package/android/src/androidTest/java/com/consumet/WebViewContractTest.kt +41 -21
- package/android/src/main/AndroidManifest.xml +2 -3
- package/android/src/main/java/com/consumet/ConsumetModule.kt +0 -11
- package/android/src/main/java/com/consumet/DeobfuscatorModule.kt +6 -11
- package/android/src/main/java/com/consumet/HttpClients.kt +26 -0
- package/android/src/main/java/com/consumet/HttpRequestModule.kt +174 -197
- package/android/src/main/java/com/consumet/RequestHeaders.kt +39 -0
- package/android/src/main/java/com/consumet/WebViewTask.kt +32 -7
- package/ios/Consumet.mm +366 -381
- package/ios/RCConsumetSynchronyCache.m +3 -1
- package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec-generated.mm +0 -14
- package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec.h +0 -6
- package/ios/generated/ReactCodegen/RNConsumetSpecJSI.h +0 -18
- package/lib/commonjs/NativeConsumet.ts +44 -45
- package/lib/commonjs/extension-registry.json +42 -153
- package/lib/commonjs/extension-registry.json.sig +1 -1
- package/lib/commonjs/extractors/file-hosts.js +42 -0
- package/lib/commonjs/extractors/file-hosts.js.map +1 -0
- package/lib/commonjs/extractors/flixcloud.js +25 -60
- package/lib/commonjs/extractors/flixcloud.js.map +1 -1
- package/lib/commonjs/extractors/gofile.js +85 -96
- package/lib/commonjs/extractors/gofile.js.map +1 -1
- package/lib/commonjs/extractors/hls.js +46 -0
- package/lib/commonjs/extractors/hls.js.map +1 -0
- package/lib/commonjs/extractors/hubcloud.js +109 -273
- package/lib/commonjs/extractors/hubcloud.js.map +1 -1
- package/lib/commonjs/extractors/index.js +4 -116
- package/lib/commonjs/extractors/index.js.map +1 -1
- package/lib/commonjs/extractors/kwik.js +23 -58
- package/lib/commonjs/extractors/kwik.js.map +1 -1
- package/lib/commonjs/extractors/megacloud.js +67 -140
- package/lib/commonjs/extractors/megacloud.js.map +1 -1
- package/lib/commonjs/extractors/megaplay.js +78 -128
- package/lib/commonjs/extractors/megaplay.js.map +1 -1
- package/lib/commonjs/extractors/packer.js +40 -0
- package/lib/commonjs/extractors/packer.js.map +1 -0
- package/lib/commonjs/extractors/streamwish.js +47 -103
- package/lib/commonjs/extractors/streamwish.js.map +1 -1
- package/lib/commonjs/extractors/url.js +11 -0
- package/lib/commonjs/extractors/url.js.map +1 -0
- package/lib/commonjs/extractors/vidhide.js +32 -59
- package/lib/commonjs/extractors/vidhide.js.map +1 -1
- package/lib/commonjs/index.js +111 -219
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/anime-parser.js +4 -17
- package/lib/commonjs/models/anime-parser.js.map +1 -1
- package/lib/commonjs/models/base-parser.js.map +1 -1
- package/lib/commonjs/models/base-provider.js +6 -33
- package/lib/commonjs/models/base-provider.js.map +1 -1
- package/lib/commonjs/models/index.js +21 -56
- package/lib/commonjs/models/index.js.map +1 -1
- package/lib/commonjs/models/lightnovel-parser.js.map +1 -1
- package/lib/commonjs/models/manga-parser.js.map +1 -1
- package/lib/commonjs/models/meta-error.js +4 -1
- package/lib/commonjs/models/meta-error.js.map +1 -1
- package/lib/commonjs/models/movie-parser.js.map +1 -1
- package/lib/commonjs/models/types.js +13 -22
- package/lib/commonjs/models/types.js.map +1 -1
- package/lib/commonjs/models/video-extractor.js +0 -10
- package/lib/commonjs/models/video-extractor.js.map +1 -1
- package/lib/commonjs/providers/anime/anikoto/anikoto.js +3 -182
- package/lib/commonjs/providers/anime/anikoto/anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js +258 -440
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/animepahe.js +2 -66
- package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +173 -197
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/anineko/anineko.js +2 -32
- package/lib/commonjs/providers/anime/anineko/anineko.js.map +1 -1
- package/lib/commonjs/providers/anime/anineko/create-anineko.js +119 -210
- package/lib/commonjs/providers/anime/anineko/create-anineko.js.map +1 -1
- package/lib/commonjs/providers/anime/helpers.js +16 -0
- package/lib/commonjs/providers/anime/helpers.js.map +1 -0
- package/lib/commonjs/providers/anime/hianime.js +77 -0
- package/lib/commonjs/providers/anime/hianime.js.map +1 -0
- package/lib/commonjs/providers/anime/index.js +0 -4
- package/lib/commonjs/providers/anime/index.js.map +1 -1
- package/lib/commonjs/providers/anime/reanime/create-reanime.js +36 -60
- package/lib/commonjs/providers/anime/reanime/create-reanime.js.map +1 -1
- package/lib/commonjs/providers/anime/reanime/reanime.js +2 -27
- package/lib/commonjs/providers/anime/reanime/reanime.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/create-zoro.js +283 -507
- package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/zoro.js +2 -184
- package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/commonjs/providers/common/enc-dec.js +9 -0
- package/lib/commonjs/providers/common/enc-dec.js.map +1 -0
- package/lib/commonjs/providers/common/media-status.js +20 -0
- package/lib/commonjs/providers/common/media-status.js.map +1 -0
- package/lib/commonjs/providers/common/search.js +15 -0
- package/lib/commonjs/providers/common/search.js.map +1 -0
- package/lib/commonjs/providers/common/servers.js +39 -0
- package/lib/commonjs/providers/common/servers.js.map +1 -0
- package/lib/commonjs/providers/index.js +2 -3
- package/lib/commonjs/providers/index.js.map +1 -1
- package/lib/commonjs/providers/light-novels/novelupdates.js +49 -98
- package/lib/commonjs/providers/light-novels/novelupdates.js.map +1 -1
- package/lib/commonjs/providers/light-novels/readlightnovels.js +51 -93
- package/lib/commonjs/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/commonjs/providers/manga/asurascans.js +14 -49
- package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
- package/lib/commonjs/providers/manga/flamescans.js +11 -33
- package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
- package/lib/commonjs/providers/manga/mangadex.js +18 -17
- package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahere.js +107 -169
- package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
- package/lib/commonjs/providers/manga/mangakakalot.js +26 -56
- package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapill.js +82 -120
- package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
- package/lib/commonjs/providers/manga/shared.js +72 -0
- package/lib/commonjs/providers/manga/shared.js.map +1 -0
- package/lib/commonjs/providers/meta/anilist-media.js +242 -0
- package/lib/commonjs/providers/meta/anilist-media.js.map +1 -0
- package/lib/commonjs/providers/meta/anilist.js +420 -838
- package/lib/commonjs/providers/meta/anilist.js.map +1 -1
- package/lib/commonjs/providers/meta/index.js +2 -2
- package/lib/commonjs/providers/meta/index.js.map +1 -1
- package/lib/commonjs/providers/meta/mal.js +137 -321
- package/lib/commonjs/providers/meta/mal.js.map +1 -1
- package/lib/commonjs/providers/meta/shared.js +127 -0
- package/lib/commonjs/providers/meta/shared.js.map +1 -0
- package/lib/commonjs/providers/meta/tmdb.js +138 -291
- package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/create-himovies.js +161 -366
- package/lib/commonjs/providers/movies/himovies/create-himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/himovies.js +2 -70
- package/lib/commonjs/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/index.js +7 -11
- package/lib/commonjs/providers/movies/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js +216 -409
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/multimovies.js +2 -42
- package/lib/commonjs/providers/movies/multimovies/multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/create-multistream.js +130 -0
- package/lib/commonjs/providers/movies/multistream/create-multistream.js.map +1 -0
- package/lib/commonjs/providers/movies/multistream/multistream.js +12 -0
- package/lib/commonjs/providers/movies/multistream/multistream.js.map +1 -0
- package/lib/commonjs/providers/movies/multistream/utils.js +330 -406
- package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js +27 -6
- package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js +6 -15
- package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
- package/lib/commonjs/providers/movies/site-paths.js +33 -0
- package/lib/commonjs/providers/movies/site-paths.js.map +1 -0
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js +427 -658
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
- package/lib/commonjs/providers/movies/vegamovies/vegamovies.js +2 -44
- package/lib/commonjs/providers/movies/vegamovies/vegamovies.js.map +1 -1
- package/lib/commonjs/providers/provider-class.js +28 -0
- package/lib/commonjs/providers/provider-class.js.map +1 -0
- package/lib/commonjs/registry-signing-keys.json +6 -0
- package/lib/commonjs/utils/ExtractorManager.js +83 -221
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +93 -243
- package/lib/commonjs/utils/ProviderManager.js.map +1 -1
- package/lib/commonjs/utils/constants.js +3 -9
- package/lib/commonjs/utils/constants.js.map +1 -1
- package/lib/commonjs/utils/create-extractor-context.js +29 -17
- package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
- package/lib/commonjs/utils/create-provider-context.js +32 -98
- package/lib/commonjs/utils/create-provider-context.js.map +1 -1
- package/lib/commonjs/utils/extension-integrity.js +2 -2
- package/lib/commonjs/utils/extension-integrity.js.map +1 -1
- package/lib/commonjs/utils/extension-modules.js +151 -33
- package/lib/commonjs/utils/extension-modules.js.map +1 -1
- package/lib/commonjs/utils/fetch-with-timeout.js +3 -2
- package/lib/commonjs/utils/fetch-with-timeout.js.map +1 -1
- package/lib/commonjs/utils/meta-http.js +18 -28
- package/lib/commonjs/utils/meta-http.js.map +1 -1
- package/lib/commonjs/utils/registry-schema.js +47 -14
- package/lib/commonjs/utils/registry-schema.js.map +1 -1
- package/lib/commonjs/utils/registry-signature-format.js +43 -0
- package/lib/commonjs/utils/registry-signature-format.js.map +1 -0
- package/lib/commonjs/utils/registry-signature.js +27 -62
- package/lib/commonjs/utils/registry-signature.js.map +1 -1
- package/lib/commonjs/utils/runtime-modules.js +14 -0
- package/lib/commonjs/utils/runtime-modules.js.map +1 -0
- package/lib/commonjs/utils/tmdb.js +140 -0
- package/lib/commonjs/utils/tmdb.js.map +1 -0
- package/lib/commonjs/utils/url-polyfill.js +13 -59
- package/lib/commonjs/utils/url-polyfill.js.map +1 -1
- package/lib/commonjs/utils/utf8.js +52 -0
- package/lib/commonjs/utils/utf8.js.map +1 -0
- package/lib/commonjs/utils/utils.js +23 -326
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/NativeConsumet.ts +44 -45
- package/lib/module/extension-registry.json +42 -153
- package/lib/module/extension-registry.json.sig +1 -1
- package/lib/module/extractors/file-hosts.js +32 -0
- package/lib/module/extractors/file-hosts.js.map +1 -0
- package/lib/module/extractors/flixcloud.js +23 -57
- package/lib/module/extractors/flixcloud.js.map +1 -1
- package/lib/module/extractors/gofile.js +85 -96
- package/lib/module/extractors/gofile.js.map +1 -1
- package/lib/module/extractors/hls.js +41 -0
- package/lib/module/extractors/hls.js.map +1 -0
- package/lib/module/extractors/hubcloud.js +110 -273
- package/lib/module/extractors/hubcloud.js.map +1 -1
- package/lib/module/extractors/index.js +4 -20
- package/lib/module/extractors/index.js.map +1 -1
- package/lib/module/extractors/kwik.js +24 -58
- package/lib/module/extractors/kwik.js.map +1 -1
- package/lib/module/extractors/megacloud.js +68 -140
- package/lib/module/extractors/megacloud.js.map +1 -1
- package/lib/module/extractors/megaplay.js +78 -128
- package/lib/module/extractors/megaplay.js.map +1 -1
- package/lib/module/extractors/packer.js +36 -0
- package/lib/module/extractors/packer.js.map +1 -0
- package/lib/module/extractors/streamwish.js +47 -103
- package/lib/module/extractors/streamwish.js.map +1 -1
- package/lib/module/extractors/url.js +7 -0
- package/lib/module/extractors/url.js.map +1 -0
- package/lib/module/extractors/vidhide.js +32 -59
- package/lib/module/extractors/vidhide.js.map +1 -1
- package/lib/module/index.js +20 -49
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/anime-parser.js +4 -17
- package/lib/module/models/anime-parser.js.map +1 -1
- package/lib/module/models/base-parser.js.map +1 -1
- package/lib/module/models/base-provider.js +6 -33
- package/lib/module/models/base-provider.js.map +1 -1
- package/lib/module/models/index.js +8 -10
- package/lib/module/models/index.js.map +1 -1
- package/lib/module/models/lightnovel-parser.js.map +1 -1
- package/lib/module/models/manga-parser.js.map +1 -1
- package/lib/module/models/meta-error.js +4 -1
- package/lib/module/models/meta-error.js.map +1 -1
- package/lib/module/models/movie-parser.js.map +1 -1
- package/lib/module/models/types.js +12 -21
- package/lib/module/models/types.js.map +1 -1
- package/lib/module/models/video-extractor.js +1 -9
- package/lib/module/models/video-extractor.js.map +1 -1
- package/lib/module/providers/anime/anikoto/anikoto.js +2 -181
- package/lib/module/providers/anime/anikoto/anikoto.js.map +1 -1
- package/lib/module/providers/anime/anikoto/create-anikoto.js +258 -440
- package/lib/module/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/module/providers/anime/animepahe/animepahe.js +2 -66
- package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/module/providers/anime/animepahe/create-animepahe.js +173 -197
- package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/module/providers/anime/anineko/anineko.js +2 -31
- package/lib/module/providers/anime/anineko/anineko.js.map +1 -1
- package/lib/module/providers/anime/anineko/create-anineko.js +119 -210
- package/lib/module/providers/anime/anineko/create-anineko.js.map +1 -1
- package/lib/module/providers/anime/helpers.js +12 -0
- package/lib/module/providers/anime/helpers.js.map +1 -0
- package/lib/module/providers/anime/hianime.js +69 -0
- package/lib/module/providers/anime/hianime.js.map +1 -0
- package/lib/module/providers/anime/index.js +0 -4
- package/lib/module/providers/anime/index.js.map +1 -1
- package/lib/module/providers/anime/reanime/create-reanime.js +34 -58
- package/lib/module/providers/anime/reanime/create-reanime.js.map +1 -1
- package/lib/module/providers/anime/reanime/reanime.js +2 -26
- package/lib/module/providers/anime/reanime/reanime.js.map +1 -1
- package/lib/module/providers/anime/zoro/create-zoro.js +283 -507
- package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/module/providers/anime/zoro/zoro.js +2 -184
- package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/module/providers/common/enc-dec.js +5 -0
- package/lib/module/providers/common/enc-dec.js.map +1 -0
- package/lib/module/providers/common/media-status.js +17 -0
- package/lib/module/providers/common/media-status.js.map +1 -0
- package/lib/module/providers/common/search.js +11 -0
- package/lib/module/providers/common/search.js.map +1 -0
- package/lib/module/providers/common/servers.js +33 -0
- package/lib/module/providers/common/servers.js.map +1 -0
- package/lib/module/providers/index.js +5 -6
- package/lib/module/providers/index.js.map +1 -1
- package/lib/module/providers/light-novels/novelupdates.js +51 -99
- package/lib/module/providers/light-novels/novelupdates.js.map +1 -1
- package/lib/module/providers/light-novels/readlightnovels.js +52 -93
- package/lib/module/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/module/providers/manga/asurascans.js +14 -49
- package/lib/module/providers/manga/asurascans.js.map +1 -1
- package/lib/module/providers/manga/flamescans.js +12 -34
- package/lib/module/providers/manga/flamescans.js.map +1 -1
- package/lib/module/providers/manga/mangadex.js +19 -18
- package/lib/module/providers/manga/mangadex.js.map +1 -1
- package/lib/module/providers/manga/mangahere.js +108 -170
- package/lib/module/providers/manga/mangahere.js.map +1 -1
- package/lib/module/providers/manga/mangakakalot.js +27 -57
- package/lib/module/providers/manga/mangakakalot.js.map +1 -1
- package/lib/module/providers/manga/mangapill.js +83 -122
- package/lib/module/providers/manga/mangapill.js.map +1 -1
- package/lib/module/providers/manga/shared.js +63 -0
- package/lib/module/providers/manga/shared.js.map +1 -0
- package/lib/module/providers/meta/anilist-media.js +229 -0
- package/lib/module/providers/meta/anilist-media.js.map +1 -0
- package/lib/module/providers/meta/anilist.js +414 -833
- package/lib/module/providers/meta/anilist.js.map +1 -1
- package/lib/module/providers/meta/index.js +1 -1
- package/lib/module/providers/meta/index.js.map +1 -1
- package/lib/module/providers/meta/mal.js +134 -320
- package/lib/module/providers/meta/mal.js.map +1 -1
- package/lib/module/providers/meta/shared.js +119 -0
- package/lib/module/providers/meta/shared.js.map +1 -0
- package/lib/module/providers/meta/tmdb.js +136 -290
- package/lib/module/providers/meta/tmdb.js.map +1 -1
- package/lib/module/providers/movies/himovies/create-himovies.js +161 -366
- package/lib/module/providers/movies/himovies/create-himovies.js.map +1 -1
- package/lib/module/providers/movies/himovies/himovies.js +2 -70
- package/lib/module/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/module/providers/movies/index.js +5 -9
- package/lib/module/providers/movies/index.js.map +1 -1
- package/lib/module/providers/movies/multimovies/create-multimovies.js +217 -409
- package/lib/module/providers/movies/multimovies/create-multimovies.js.map +1 -1
- package/lib/module/providers/movies/multimovies/multimovies.js +2 -42
- package/lib/module/providers/movies/multimovies/multimovies.js.map +1 -1
- package/lib/module/providers/movies/multistream/create-multistream.js +127 -0
- package/lib/module/providers/movies/multistream/create-multistream.js.map +1 -0
- package/lib/module/providers/movies/multistream/multistream.js +9 -0
- package/lib/module/providers/movies/multistream/multistream.js.map +1 -0
- package/lib/module/providers/movies/multistream/utils.js +325 -397
- package/lib/module/providers/movies/multistream/utils.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js +27 -6
- package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/netflixmirror.js +6 -14
- package/lib/module/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
- package/lib/module/providers/movies/site-paths.js +27 -0
- package/lib/module/providers/movies/site-paths.js.map +1 -0
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js +427 -658
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
- package/lib/module/providers/movies/vegamovies/vegamovies.js +2 -44
- package/lib/module/providers/movies/vegamovies/vegamovies.js.map +1 -1
- package/lib/module/providers/provider-class.js +25 -0
- package/lib/module/providers/provider-class.js.map +1 -0
- package/lib/module/registry-signing-keys.json +6 -0
- package/lib/module/utils/ExtractorManager.js +83 -221
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +94 -243
- package/lib/module/utils/ProviderManager.js.map +1 -1
- package/lib/module/utils/constants.js +2 -8
- package/lib/module/utils/constants.js.map +1 -1
- package/lib/module/utils/create-extractor-context.js +28 -18
- package/lib/module/utils/create-extractor-context.js.map +1 -1
- package/lib/module/utils/create-provider-context.js +33 -98
- package/lib/module/utils/create-provider-context.js.map +1 -1
- package/lib/module/utils/extension-integrity.js +1 -1
- package/lib/module/utils/extension-integrity.js.map +1 -1
- package/lib/module/utils/extension-modules.js +147 -33
- package/lib/module/utils/extension-modules.js.map +1 -1
- package/lib/module/utils/fetch-with-timeout.js +3 -2
- package/lib/module/utils/fetch-with-timeout.js.map +1 -1
- package/lib/module/utils/meta-http.js +17 -26
- package/lib/module/utils/meta-http.js.map +1 -1
- package/lib/module/utils/registry-schema.js +45 -13
- package/lib/module/utils/registry-schema.js.map +1 -1
- package/lib/module/utils/registry-signature-format.js +37 -0
- package/lib/module/utils/registry-signature-format.js.map +1 -0
- package/lib/module/utils/registry-signature.js +23 -58
- package/lib/module/utils/registry-signature.js.map +1 -1
- package/lib/module/utils/runtime-modules.js +10 -0
- package/lib/module/utils/runtime-modules.js.map +1 -0
- package/lib/module/utils/tmdb.js +128 -0
- package/lib/module/utils/tmdb.js.map +1 -0
- package/lib/module/utils/url-polyfill.js +1 -47
- package/lib/module/utils/url-polyfill.js.map +1 -1
- package/lib/module/utils/utf8.js +45 -0
- package/lib/module/utils/utf8.js.map +1 -0
- package/lib/module/utils/utils.js +16 -281
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts +38 -72
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/file-hosts.d.ts +18 -0
- package/lib/typescript/commonjs/src/extractors/file-hosts.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts +9 -9
- package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gofile.d.ts +5 -6
- package/lib/typescript/commonjs/src/extractors/gofile.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/hls.d.ts +14 -0
- package/lib/typescript/commonjs/src/extractors/hls.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts +8 -4
- package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/index.d.ts +4 -20
- package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts +6 -7
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megacloud.d.ts +7 -5
- package/lib/typescript/commonjs/src/extractors/megacloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megaplay.d.ts +6 -7
- package/lib/typescript/commonjs/src/extractors/megaplay.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/packer.d.ts +3 -0
- package/lib/typescript/commonjs/src/extractors/packer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/streamwish.d.ts +5 -7
- package/lib/typescript/commonjs/src/extractors/streamwish.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/url.d.ts +4 -0
- package/lib/typescript/commonjs/src/extractors/url.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts +5 -7
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +16 -20
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/anime-parser.d.ts +10 -21
- package/lib/typescript/commonjs/src/models/anime-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/base-parser.d.ts +0 -5
- package/lib/typescript/commonjs/src/models/base-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/base-provider.d.ts +7 -31
- package/lib/typescript/commonjs/src/models/base-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts +3 -1
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts +5 -34
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/index.d.ts +12 -15
- package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/lightnovel-parser.d.ts +5 -12
- package/lib/typescript/commonjs/src/models/lightnovel-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/manga-parser.d.ts +2 -10
- package/lib/typescript/commonjs/src/models/manga-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/meta-error.d.ts +5 -2
- package/lib/typescript/commonjs/src/models/meta-error.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/movie-parser.d.ts +8 -24
- package/lib/typescript/commonjs/src/models/movie-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/provider-context.d.ts +11 -138
- package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/types.d.ts +16 -39
- package/lib/typescript/commonjs/src/models/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/video-extractor.d.ts +7 -38
- package/lib/typescript/commonjs/src/models/video-extractor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts +4 -148
- 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 +2 -2
- package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts +4 -40
- 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 +4 -4
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts +4 -27
- 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 +2 -2
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/helpers.d.ts +6 -0
- package/lib/typescript/commonjs/src/providers/anime/helpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/hianime.d.ts +24 -0
- package/lib/typescript/commonjs/src/providers/anime/hianime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts +5 -14
- 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 +2 -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 +4 -23
- 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 +4 -4
- 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 +4 -138
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/common/enc-dec.d.ts +3 -0
- package/lib/typescript/commonjs/src/providers/common/enc-dec.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/common/media-status.d.ts +7 -0
- package/lib/typescript/commonjs/src/providers/common/media-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/common/search.d.ts +4 -0
- package/lib/typescript/commonjs/src/providers/common/search.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/common/servers.d.ts +16 -0
- package/lib/typescript/commonjs/src/providers/common/servers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/index.d.ts +5 -6
- package/lib/typescript/commonjs/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts +11 -12
- 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 +3 -11
- package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts +1 -5
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts +2 -4
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts +6 -4
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts +4 -4
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts +4 -13
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts +1 -8
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/shared.d.ts +28 -0
- package/lib/typescript/commonjs/src/providers/manga/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/meta/anilist-media.d.ts +176 -0
- package/lib/typescript/commonjs/src/providers/meta/anilist-media.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts +80 -128
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/index.d.ts +1 -2
- package/lib/typescript/commonjs/src/providers/meta/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/mal.d.ts +12 -18
- package/lib/typescript/commonjs/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/shared.d.ts +45 -0
- package/lib/typescript/commonjs/src/providers/meta/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts +18 -26
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/himovies/create-himovies.d.ts +6 -2
- package/lib/typescript/commonjs/src/providers/movies/himovies/create-himovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts +4 -49
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts +9 -18
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multimovies/create-multimovies.d.ts +8 -3
- package/lib/typescript/commonjs/src/providers/movies/multimovies/create-multimovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts +4 -25
- package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/create-multistream.d.ts +26 -0
- package/lib/typescript/commonjs/src/providers/movies/multistream/create-multistream.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/multistream/multistream.d.ts +6 -0
- package/lib/typescript/commonjs/src/providers/movies/multistream/multistream.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +21 -19
- 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 +40 -8
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts +8 -11
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/site-paths.d.ts +11 -0
- package/lib/typescript/commonjs/src/providers/movies/site-paths.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/create-vegamovies.d.ts +9 -3
- 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 +4 -27
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/provider-class.d.ts +23 -0
- package/lib/typescript/commonjs/src/providers/provider-class.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts +31 -51
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +37 -70
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/constants.d.ts +2 -7
- package/lib/typescript/commonjs/src/utils/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts +17 -5
- 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 +12 -8
- package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/extension-integrity.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/extension-modules.d.ts +46 -21
- package/lib/typescript/commonjs/src/utils/extension-modules.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/meta-http.d.ts +2 -13
- package/lib/typescript/commonjs/src/utils/meta-http.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/registry-schema.d.ts +26 -0
- package/lib/typescript/commonjs/src/utils/registry-schema.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/registry-signature-format.d.ts +15 -0
- package/lib/typescript/commonjs/src/utils/registry-signature-format.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/registry-signature.d.ts +10 -4
- package/lib/typescript/commonjs/src/utils/registry-signature.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/runtime-modules.d.ts +8 -0
- package/lib/typescript/commonjs/src/utils/runtime-modules.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/tmdb.d.ts +71 -0
- package/lib/typescript/commonjs/src/utils/tmdb.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/utf8.d.ts +7 -0
- package/lib/typescript/commonjs/src/utils/utf8.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/utils.d.ts +12 -36
- package/lib/typescript/commonjs/src/utils/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/NativeConsumet.d.ts +38 -72
- package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/file-hosts.d.ts +18 -0
- package/lib/typescript/module/src/extractors/file-hosts.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/flixcloud.d.ts +9 -9
- package/lib/typescript/module/src/extractors/flixcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gofile.d.ts +5 -6
- package/lib/typescript/module/src/extractors/gofile.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/hls.d.ts +14 -0
- package/lib/typescript/module/src/extractors/hls.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/hubcloud.d.ts +8 -4
- package/lib/typescript/module/src/extractors/hubcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/index.d.ts +4 -20
- package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts +6 -7
- package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megacloud.d.ts +7 -5
- package/lib/typescript/module/src/extractors/megacloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megaplay.d.ts +6 -7
- package/lib/typescript/module/src/extractors/megaplay.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/packer.d.ts +3 -0
- package/lib/typescript/module/src/extractors/packer.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/streamwish.d.ts +5 -7
- package/lib/typescript/module/src/extractors/streamwish.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/url.d.ts +4 -0
- package/lib/typescript/module/src/extractors/url.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/vidhide.d.ts +5 -7
- package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +16 -20
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/anime-parser.d.ts +10 -21
- package/lib/typescript/module/src/models/anime-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/base-parser.d.ts +0 -5
- package/lib/typescript/module/src/models/base-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/base-provider.d.ts +7 -31
- package/lib/typescript/module/src/models/base-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extension-manifest.d.ts +3 -1
- package/lib/typescript/module/src/models/extension-manifest.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extractor-context.d.ts +5 -34
- package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/index.d.ts +12 -15
- package/lib/typescript/module/src/models/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/lightnovel-parser.d.ts +5 -12
- package/lib/typescript/module/src/models/lightnovel-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/manga-parser.d.ts +2 -10
- package/lib/typescript/module/src/models/manga-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/meta-error.d.ts +5 -2
- package/lib/typescript/module/src/models/meta-error.d.ts.map +1 -1
- package/lib/typescript/module/src/models/movie-parser.d.ts +8 -24
- package/lib/typescript/module/src/models/movie-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/provider-context.d.ts +11 -138
- package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/types.d.ts +16 -39
- package/lib/typescript/module/src/models/types.d.ts.map +1 -1
- package/lib/typescript/module/src/models/video-extractor.d.ts +7 -38
- package/lib/typescript/module/src/models/video-extractor.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts +4 -148
- 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 +2 -2
- package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts +4 -40
- 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 +4 -4
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts +4 -27
- 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 +2 -2
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/helpers.d.ts +6 -0
- package/lib/typescript/module/src/providers/anime/helpers.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/hianime.d.ts +24 -0
- package/lib/typescript/module/src/providers/anime/hianime.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/index.d.ts +5 -14
- 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 +2 -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 +4 -23
- 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 +4 -4
- 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 +4 -138
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/common/enc-dec.d.ts +3 -0
- package/lib/typescript/module/src/providers/common/enc-dec.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/common/media-status.d.ts +7 -0
- package/lib/typescript/module/src/providers/common/media-status.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/common/search.d.ts +4 -0
- package/lib/typescript/module/src/providers/common/search.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/common/servers.d.ts +16 -0
- package/lib/typescript/module/src/providers/common/servers.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/index.d.ts +5 -6
- package/lib/typescript/module/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts +11 -12
- 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 +3 -11
- package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts +1 -5
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts +2 -4
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts +6 -4
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts +4 -4
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts +4 -13
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts +1 -8
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/shared.d.ts +28 -0
- package/lib/typescript/module/src/providers/manga/shared.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/meta/anilist-media.d.ts +176 -0
- package/lib/typescript/module/src/providers/meta/anilist-media.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/meta/anilist.d.ts +80 -128
- package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/index.d.ts +1 -2
- package/lib/typescript/module/src/providers/meta/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/mal.d.ts +12 -18
- package/lib/typescript/module/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/shared.d.ts +45 -0
- package/lib/typescript/module/src/providers/meta/shared.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts +18 -26
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/himovies/create-himovies.d.ts +6 -2
- package/lib/typescript/module/src/providers/movies/himovies/create-himovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts +4 -49
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/index.d.ts +9 -18
- package/lib/typescript/module/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multimovies/create-multimovies.d.ts +8 -3
- package/lib/typescript/module/src/providers/movies/multimovies/create-multimovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts +4 -25
- package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/create-multistream.d.ts +26 -0
- package/lib/typescript/module/src/providers/movies/multistream/create-multistream.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/multistream/multistream.d.ts +6 -0
- package/lib/typescript/module/src/providers/movies/multistream/multistream.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +21 -19
- 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 +40 -8
- package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts +8 -11
- package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/site-paths.d.ts +11 -0
- package/lib/typescript/module/src/providers/movies/site-paths.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/vegamovies/create-vegamovies.d.ts +9 -3
- 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 +4 -27
- package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/provider-class.d.ts +23 -0
- package/lib/typescript/module/src/providers/provider-class.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts +31 -51
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts +37 -70
- package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/constants.d.ts +2 -7
- package/lib/typescript/module/src/utils/constants.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-extractor-context.d.ts +17 -5
- 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 +12 -8
- package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/extension-integrity.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/extension-modules.d.ts +46 -21
- package/lib/typescript/module/src/utils/extension-modules.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts +1 -1
- package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/meta-http.d.ts +2 -13
- package/lib/typescript/module/src/utils/meta-http.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/registry-schema.d.ts +26 -0
- package/lib/typescript/module/src/utils/registry-schema.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/registry-signature-format.d.ts +15 -0
- package/lib/typescript/module/src/utils/registry-signature-format.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/registry-signature.d.ts +10 -4
- package/lib/typescript/module/src/utils/registry-signature.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/runtime-modules.d.ts +8 -0
- package/lib/typescript/module/src/utils/runtime-modules.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/tmdb.d.ts +71 -0
- package/lib/typescript/module/src/utils/tmdb.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/url-polyfill.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/utf8.d.ts +7 -0
- package/lib/typescript/module/src/utils/utf8.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/utils.d.ts +12 -36
- package/lib/typescript/module/src/utils/utils.d.ts.map +1 -1
- package/package.json +8 -10
- package/src/NativeConsumet.ts +44 -45
- package/src/extension-registry.json +42 -153
- package/src/extension-registry.json.sig +1 -1
- package/src/extractors/file-hosts.ts +29 -0
- package/src/extractors/flixcloud.ts +23 -53
- package/src/extractors/gofile.ts +97 -126
- package/src/extractors/hls.ts +43 -0
- package/src/extractors/hubcloud.ts +111 -308
- package/src/extractors/index.ts +4 -20
- package/src/extractors/kwik.ts +27 -79
- package/src/extractors/megacloud.ts +50 -153
- package/src/extractors/megaplay.ts +77 -147
- package/src/extractors/packer.ts +40 -0
- package/src/extractors/streamwish.ts +50 -122
- package/src/extractors/url.ts +6 -0
- package/src/extractors/vidhide.ts +29 -81
- package/src/index.tsx +48 -228
- package/src/models/anime-parser.ts +12 -21
- package/src/models/base-parser.ts +0 -5
- package/src/models/base-provider.ts +7 -31
- package/src/models/extension-manifest.ts +4 -1
- package/src/models/extractor-context.ts +5 -46
- package/src/models/index.ts +12 -119
- package/src/models/lightnovel-parser.ts +5 -12
- package/src/models/manga-parser.ts +2 -10
- package/src/models/meta-error.ts +5 -2
- package/src/models/movie-parser.ts +9 -24
- package/src/models/provider-context.ts +11 -149
- package/src/models/types.ts +17 -41
- package/src/models/video-extractor.ts +7 -43
- package/src/providers/anime/anikoto/anikoto.ts +5 -218
- package/src/providers/anime/anikoto/create-anikoto.ts +278 -515
- package/src/providers/anime/animepahe/animepahe.ts +5 -78
- package/src/providers/anime/animepahe/create-animepahe.ts +179 -219
- package/src/providers/anime/anineko/anineko.ts +5 -53
- package/src/providers/anime/anineko/create-anineko.ts +103 -199
- package/src/providers/anime/helpers.ts +9 -0
- package/src/providers/anime/hianime.ts +67 -0
- package/src/providers/anime/index.ts +0 -4
- package/src/providers/anime/reanime/create-reanime.ts +30 -62
- package/src/providers/anime/reanime/reanime.ts +5 -44
- package/src/providers/anime/zoro/create-zoro.ts +299 -546
- package/src/providers/anime/zoro/zoro.ts +5 -200
- package/src/providers/common/enc-dec.ts +2 -0
- package/src/providers/common/media-status.ts +20 -0
- package/src/providers/common/search.ts +6 -0
- package/src/providers/common/servers.ts +36 -0
- package/src/providers/index.ts +5 -7
- package/src/providers/light-novels/novelupdates.ts +55 -125
- package/src/providers/light-novels/readlightnovels.ts +81 -117
- package/src/providers/manga/asurascans.ts +15 -57
- package/src/providers/manga/flamescans.ts +11 -44
- package/src/providers/manga/mangadex.ts +15 -23
- package/src/providers/manga/mangahere.ts +112 -188
- package/src/providers/manga/mangakakalot.ts +25 -66
- package/src/providers/manga/mangapill.ts +105 -149
- package/src/providers/manga/shared.ts +71 -0
- package/src/providers/meta/anilist-media.ts +230 -0
- package/src/providers/meta/anilist.ts +447 -889
- package/src/providers/meta/index.ts +1 -1
- package/src/providers/meta/mal.ts +154 -414
- package/src/providers/meta/shared.ts +129 -0
- package/src/providers/meta/tmdb.ts +192 -351
- package/src/providers/movies/himovies/create-himovies.ts +176 -442
- package/src/providers/movies/himovies/himovies.ts +5 -88
- package/src/providers/movies/index.ts +4 -8
- package/src/providers/movies/multimovies/create-multimovies.ts +214 -452
- package/src/providers/movies/multimovies/multimovies.ts +5 -58
- package/src/providers/movies/multistream/create-multistream.ts +141 -0
- package/src/providers/movies/multistream/multistream.ts +7 -0
- package/src/providers/movies/multistream/utils.ts +234 -410
- package/src/providers/movies/netflixmirror/create-netflixmirror.ts +26 -26
- package/src/providers/movies/netflixmirror/netflixmirror.ts +9 -15
- package/src/providers/movies/site-paths.ts +24 -0
- package/src/providers/movies/vegamovies/create-vegamovies.ts +402 -728
- package/src/providers/movies/vegamovies/vegamovies.ts +5 -62
- package/src/providers/provider-class.ts +39 -0
- package/src/registry-signing-keys.json +6 -0
- package/src/utils/ExtractorManager.ts +96 -242
- package/src/utils/ProviderManager.ts +124 -284
- package/src/utils/constants.ts +2 -10
- package/src/utils/create-extractor-context.ts +36 -28
- package/src/utils/create-provider-context.ts +51 -121
- package/src/utils/extension-integrity.ts +1 -2
- package/src/utils/extension-modules.ts +150 -43
- package/src/utils/fetch-with-timeout.ts +4 -2
- package/src/utils/meta-http.ts +20 -27
- package/src/utils/registry-schema.ts +46 -14
- package/src/utils/registry-signature-format.ts +37 -0
- package/src/utils/registry-signature.ts +26 -67
- package/src/utils/runtime-modules.ts +7 -0
- package/src/utils/tmdb.ts +140 -0
- package/src/utils/url-polyfill.ts +2 -46
- package/src/utils/utf8.ts +44 -0
- package/src/utils/utils.ts +16 -362
- package/android/src/main/AndroidManifestNew.xml +0 -3
- package/android/src/main/java/com/consumet/DdosGuardModule.kt +0 -179
- package/lib/commonjs/extractors/asianload.js +0 -75
- package/lib/commonjs/extractors/asianload.js.map +0 -1
- package/lib/commonjs/extractors/filemoon.js +0 -66
- package/lib/commonjs/extractors/filemoon.js.map +0 -1
- package/lib/commonjs/extractors/gdflix.js +0 -165
- package/lib/commonjs/extractors/gdflix.js.map +0 -1
- package/lib/commonjs/extractors/gogocdn.js +0 -128
- package/lib/commonjs/extractors/gogocdn.js.map +0 -1
- package/lib/commonjs/extractors/megaup.js +0 -113
- package/lib/commonjs/extractors/megaup.js.map +0 -1
- package/lib/commonjs/extractors/mixdrop.js +0 -37
- package/lib/commonjs/extractors/mixdrop.js.map +0 -1
- package/lib/commonjs/extractors/mp4player.js +0 -57
- package/lib/commonjs/extractors/mp4player.js.map +0 -1
- package/lib/commonjs/extractors/mp4upload.js +0 -38
- package/lib/commonjs/extractors/mp4upload.js.map +0 -1
- package/lib/commonjs/extractors/rapidcloud.js +0 -180
- package/lib/commonjs/extractors/rapidcloud.js.map +0 -1
- package/lib/commonjs/extractors/streamhub.js +0 -61
- package/lib/commonjs/extractors/streamhub.js.map +0 -1
- package/lib/commonjs/extractors/streamlare.js +0 -55
- package/lib/commonjs/extractors/streamlare.js.map +0 -1
- package/lib/commonjs/extractors/streamsb.js +0 -69
- package/lib/commonjs/extractors/streamsb.js.map +0 -1
- package/lib/commonjs/extractors/streamtape.js +0 -42
- package/lib/commonjs/extractors/streamtape.js.map +0 -1
- package/lib/commonjs/extractors/vidmoly.js +0 -54
- package/lib/commonjs/extractors/vidmoly.js.map +0 -1
- package/lib/commonjs/extractors/vizcloud.js +0 -67
- package/lib/commonjs/extractors/vizcloud.js.map +0 -1
- package/lib/commonjs/extractors/voe.js +0 -100
- package/lib/commonjs/extractors/voe.js.map +0 -1
- package/lib/commonjs/models/base-types.js +0 -2
- package/lib/commonjs/models/base-types.js.map +0 -1
- package/lib/commonjs/providers/anime/animekai/animekai.js +0 -118
- package/lib/commonjs/providers/anime/animekai/animekai.js.map +0 -1
- package/lib/commonjs/providers/anime/animekai/create-animekai.js +0 -518
- package/lib/commonjs/providers/anime/animekai/create-animekai.js.map +0 -1
- package/lib/commonjs/providers/anime/animeunity.js +0 -187
- package/lib/commonjs/providers/anime/animeunity.js.map +0 -1
- package/lib/commonjs/providers/meta/tmdb-api-key.js +0 -29
- package/lib/commonjs/providers/meta/tmdb-api-key.js.map +0 -1
- package/lib/commonjs/providers/movies/multistream/index.js +0 -222
- package/lib/commonjs/providers/movies/multistream/index.js.map +0 -1
- package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js +0 -22
- package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js.map +0 -1
- package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js +0 -30
- package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js.map +0 -1
- package/lib/commonjs/providers/movies/netflixmirror/primemirror.js +0 -22
- package/lib/commonjs/providers/movies/netflixmirror/primemirror.js.map +0 -1
- package/lib/commonjs/providers/movies/yflix/create-yflix.js +0 -418
- package/lib/commonjs/providers/movies/yflix/create-yflix.js.map +0 -1
- package/lib/commonjs/providers/movies/yflix/yflix.js +0 -66
- package/lib/commonjs/providers/movies/yflix/yflix.js.map +0 -1
- package/lib/commonjs/providers/provider-args.js +0 -17
- package/lib/commonjs/providers/provider-args.js.map +0 -1
- package/lib/commonjs/registry-signing-keys.js +0 -26
- package/lib/commonjs/registry-signing-keys.js.map +0 -1
- package/lib/commonjs/utils/extension-utils.js +0 -105
- package/lib/commonjs/utils/extension-utils.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -312
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/provider-maps.js +0 -69
- package/lib/commonjs/utils/provider-maps.js.map +0 -1
- package/lib/commonjs/utils/queries.js +0 -45
- package/lib/commonjs/utils/queries.js.map +0 -1
- package/lib/module/extractors/asianload.js +0 -69
- package/lib/module/extractors/asianload.js.map +0 -1
- package/lib/module/extractors/filemoon.js +0 -62
- package/lib/module/extractors/filemoon.js.map +0 -1
- package/lib/module/extractors/gdflix.js +0 -161
- package/lib/module/extractors/gdflix.js.map +0 -1
- package/lib/module/extractors/gogocdn.js +0 -122
- package/lib/module/extractors/gogocdn.js.map +0 -1
- package/lib/module/extractors/megaup.js +0 -109
- package/lib/module/extractors/megaup.js.map +0 -1
- package/lib/module/extractors/mixdrop.js +0 -32
- package/lib/module/extractors/mixdrop.js.map +0 -1
- package/lib/module/extractors/mp4player.js +0 -52
- package/lib/module/extractors/mp4player.js.map +0 -1
- package/lib/module/extractors/mp4upload.js +0 -33
- package/lib/module/extractors/mp4upload.js.map +0 -1
- package/lib/module/extractors/rapidcloud.js +0 -174
- package/lib/module/extractors/rapidcloud.js.map +0 -1
- package/lib/module/extractors/streamhub.js +0 -56
- package/lib/module/extractors/streamhub.js.map +0 -1
- package/lib/module/extractors/streamlare.js +0 -50
- package/lib/module/extractors/streamlare.js.map +0 -1
- package/lib/module/extractors/streamsb.js +0 -64
- package/lib/module/extractors/streamsb.js.map +0 -1
- package/lib/module/extractors/streamtape.js +0 -37
- package/lib/module/extractors/streamtape.js.map +0 -1
- package/lib/module/extractors/vidmoly.js +0 -49
- package/lib/module/extractors/vidmoly.js.map +0 -1
- package/lib/module/extractors/vizcloud.js +0 -62
- package/lib/module/extractors/vizcloud.js.map +0 -1
- package/lib/module/extractors/voe.js +0 -95
- package/lib/module/extractors/voe.js.map +0 -1
- package/lib/module/models/base-types.js +0 -2
- package/lib/module/models/base-types.js.map +0 -1
- package/lib/module/providers/anime/animekai/animekai.js +0 -113
- package/lib/module/providers/anime/animekai/animekai.js.map +0 -1
- package/lib/module/providers/anime/animekai/create-animekai.js +0 -514
- package/lib/module/providers/anime/animekai/create-animekai.js.map +0 -1
- package/lib/module/providers/anime/animeunity.js +0 -183
- package/lib/module/providers/anime/animeunity.js.map +0 -1
- package/lib/module/providers/meta/tmdb-api-key.js +0 -24
- package/lib/module/providers/meta/tmdb-api-key.js.map +0 -1
- package/lib/module/providers/movies/multistream/index.js +0 -217
- package/lib/module/providers/movies/multistream/index.js.map +0 -1
- package/lib/module/providers/movies/netflixmirror/disneymirror.js +0 -17
- package/lib/module/providers/movies/netflixmirror/disneymirror.js.map +0 -1
- package/lib/module/providers/movies/netflixmirror/netmirror-parser.js +0 -25
- package/lib/module/providers/movies/netflixmirror/netmirror-parser.js.map +0 -1
- package/lib/module/providers/movies/netflixmirror/primemirror.js +0 -17
- package/lib/module/providers/movies/netflixmirror/primemirror.js.map +0 -1
- package/lib/module/providers/movies/yflix/create-yflix.js +0 -414
- package/lib/module/providers/movies/yflix/create-yflix.js.map +0 -1
- package/lib/module/providers/movies/yflix/yflix.js +0 -61
- package/lib/module/providers/movies/yflix/yflix.js.map +0 -1
- package/lib/module/providers/provider-args.js +0 -14
- package/lib/module/providers/provider-args.js.map +0 -1
- package/lib/module/registry-signing-keys.js +0 -22
- package/lib/module/registry-signing-keys.js.map +0 -1
- package/lib/module/utils/extension-utils.js +0 -100
- package/lib/module/utils/extension-utils.js.map +0 -1
- package/lib/module/utils/index.js +0 -21
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/provider-maps.js +0 -65
- package/lib/module/utils/provider-maps.js.map +0 -1
- package/lib/module/utils/queries.js +0 -29
- package/lib/module/utils/queries.js.map +0 -1
- package/lib/typescript/commonjs/src/extractors/asianload.d.ts +0 -17
- package/lib/typescript/commonjs/src/extractors/asianload.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/filemoon.d.ts +0 -14
- package/lib/typescript/commonjs/src/extractors/filemoon.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/gdflix.d.ts +0 -7
- package/lib/typescript/commonjs/src/extractors/gdflix.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts +0 -19
- package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts +0 -6
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts +0 -10
- package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/mp4player.d.ts +0 -15
- package/lib/typescript/commonjs/src/extractors/mp4player.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts +0 -10
- package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts +0 -17
- package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/streamhub.d.ts +0 -14
- package/lib/typescript/commonjs/src/extractors/streamhub.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/streamlare.d.ts +0 -13
- package/lib/typescript/commonjs/src/extractors/streamlare.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/streamsb.d.ts +0 -14
- package/lib/typescript/commonjs/src/extractors/streamsb.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/streamtape.d.ts +0 -10
- package/lib/typescript/commonjs/src/extractors/streamtape.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts +0 -10
- package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts +0 -12
- package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/voe.d.ts +0 -15
- package/lib/typescript/commonjs/src/extractors/voe.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/models/base-types.d.ts +0 -23
- package/lib/typescript/commonjs/src/models/base-types.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts +0 -90
- package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts +0 -32
- package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts +0 -39
- package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts +0 -7
- package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts +0 -44
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts +0 -12
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts +0 -21
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts +0 -12
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix/create-yflix.d.ts +0 -25
- package/lib/typescript/commonjs/src/providers/movies/yflix/create-yflix.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts +0 -49
- package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/provider-args.d.ts +0 -8
- package/lib/typescript/commonjs/src/providers/provider-args.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/registry-signing-keys.d.ts +0 -18
- package/lib/typescript/commonjs/src/registry-signing-keys.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +0 -31
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts +0 -19
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +0 -39
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/queries.d.ts +0 -22
- package/lib/typescript/commonjs/src/utils/queries.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/asianload.d.ts +0 -17
- package/lib/typescript/module/src/extractors/asianload.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/filemoon.d.ts +0 -14
- package/lib/typescript/module/src/extractors/filemoon.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/gdflix.d.ts +0 -7
- package/lib/typescript/module/src/extractors/gdflix.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/gogocdn.d.ts +0 -19
- package/lib/typescript/module/src/extractors/gogocdn.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/megaup.d.ts +0 -6
- package/lib/typescript/module/src/extractors/megaup.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/mixdrop.d.ts +0 -10
- package/lib/typescript/module/src/extractors/mixdrop.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/mp4player.d.ts +0 -15
- package/lib/typescript/module/src/extractors/mp4player.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/mp4upload.d.ts +0 -10
- package/lib/typescript/module/src/extractors/mp4upload.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/rapidcloud.d.ts +0 -17
- package/lib/typescript/module/src/extractors/rapidcloud.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/streamhub.d.ts +0 -14
- package/lib/typescript/module/src/extractors/streamhub.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/streamlare.d.ts +0 -13
- package/lib/typescript/module/src/extractors/streamlare.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/streamsb.d.ts +0 -14
- package/lib/typescript/module/src/extractors/streamsb.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/streamtape.d.ts +0 -10
- package/lib/typescript/module/src/extractors/streamtape.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/vidmoly.d.ts +0 -10
- package/lib/typescript/module/src/extractors/vidmoly.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/vizcloud.d.ts +0 -12
- package/lib/typescript/module/src/extractors/vizcloud.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/voe.d.ts +0 -15
- package/lib/typescript/module/src/extractors/voe.d.ts.map +0 -1
- package/lib/typescript/module/src/models/base-types.d.ts +0 -23
- package/lib/typescript/module/src/models/base-types.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts +0 -90
- package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts +0 -32
- package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animeunity.d.ts +0 -39
- package/lib/typescript/module/src/providers/anime/animeunity.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts +0 -7
- package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts +0 -44
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts +0 -12
- package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts +0 -21
- package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts +0 -12
- package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/yflix/create-yflix.d.ts +0 -25
- package/lib/typescript/module/src/providers/movies/yflix/create-yflix.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts +0 -49
- package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/provider-args.d.ts +0 -8
- package/lib/typescript/module/src/providers/provider-args.d.ts.map +0 -1
- package/lib/typescript/module/src/registry-signing-keys.d.ts +0 -18
- package/lib/typescript/module/src/registry-signing-keys.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/extension-utils.d.ts +0 -31
- package/lib/typescript/module/src/utils/extension-utils.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/index.d.ts +0 -19
- package/lib/typescript/module/src/utils/index.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/provider-maps.d.ts +0 -39
- package/lib/typescript/module/src/utils/provider-maps.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/queries.d.ts +0 -22
- package/lib/typescript/module/src/utils/queries.d.ts.map +0 -1
- package/src/extractors/asianload.ts +0 -89
- package/src/extractors/filemoon.ts +0 -60
- package/src/extractors/gdflix.ts +0 -165
- package/src/extractors/gogocdn.ts +0 -155
- package/src/extractors/megaup.ts +0 -125
- package/src/extractors/mixdrop.ts +0 -35
- package/src/extractors/mp4player.ts +0 -57
- package/src/extractors/mp4upload.ts +0 -35
- package/src/extractors/rapidcloud.ts +0 -200
- package/src/extractors/streamhub.ts +0 -62
- package/src/extractors/streamlare.ts +0 -65
- package/src/extractors/streamsb.ts +0 -77
- package/src/extractors/streamtape.ts +0 -42
- package/src/extractors/vidmoly.ts +0 -52
- package/src/extractors/vizcloud.ts +0 -70
- package/src/extractors/voe.ts +0 -107
- package/src/models/base-types.ts +0 -23
- package/src/providers/anime/animekai/animekai.ts +0 -126
- package/src/providers/anime/animekai/create-animekai.ts +0 -589
- package/src/providers/anime/animeunity.ts +0 -226
- package/src/providers/meta/tmdb-api-key.ts +0 -27
- package/src/providers/movies/multistream/index.ts +0 -244
- package/src/providers/movies/netflixmirror/disneymirror.ts +0 -16
- package/src/providers/movies/netflixmirror/netmirror-parser.ts +0 -43
- package/src/providers/movies/netflixmirror/primemirror.ts +0 -16
- package/src/providers/movies/yflix/create-yflix.ts +0 -496
- package/src/providers/movies/yflix/yflix.ts +0 -85
- package/src/providers/provider-args.ts +0 -15
- package/src/registry-signing-keys.ts +0 -20
- package/src/utils/extension-utils.ts +0 -130
- package/src/utils/index.ts +0 -96
- package/src/utils/provider-maps.ts +0 -80
- package/src/utils/queries.ts +0 -37
|
@@ -1,63 +1,6 @@
|
|
|
1
|
-
import { MovieParser
|
|
2
|
-
import {
|
|
3
|
-
import { createVegaMovies
|
|
1
|
+
import { MovieParser } from '../../../models';
|
|
2
|
+
import { providerClass } from '../../provider-class';
|
|
3
|
+
import { createVegaMovies } from './create-vegamovies';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
private instance: VegaMoviesProviderInstance;
|
|
8
|
-
override logo: string;
|
|
9
|
-
override name: string;
|
|
10
|
-
override baseUrl: string;
|
|
11
|
-
override classPath: string;
|
|
12
|
-
override supportedTypes: Set<any>;
|
|
13
|
-
override isNSFW: boolean;
|
|
14
|
-
override isWorking: boolean;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @param ctx provider context; requests and extractors come from it (default: `createProviderContext()`)
|
|
18
|
-
* @param customBaseURL site URL to use instead of the default (optional)
|
|
19
|
-
*/
|
|
20
|
-
constructor(ctx?: ProviderContext, customBaseURL?: string);
|
|
21
|
-
/** The older form, without a context. */
|
|
22
|
-
constructor(customBaseURL?: string);
|
|
23
|
-
constructor(ctxOrBaseURL?: ProviderContext | string, customBaseURL?: string) {
|
|
24
|
-
super();
|
|
25
|
-
const [ctx, baseURL] = providerArgs(ctxOrBaseURL, customBaseURL);
|
|
26
|
-
this.instance = createVegaMovies(ctx, baseURL);
|
|
27
|
-
this.logo = this.instance.logo;
|
|
28
|
-
this.name = this.instance.name;
|
|
29
|
-
this.baseUrl = this.instance.baseUrl;
|
|
30
|
-
this.classPath = this.instance.classPath;
|
|
31
|
-
this.supportedTypes = this.instance.supportedTypes;
|
|
32
|
-
this.isNSFW = this.instance.isNSFW;
|
|
33
|
-
this.isWorking = this.instance.isWorking ?? true;
|
|
34
|
-
|
|
35
|
-
// Bind all methods to preserve proper typing
|
|
36
|
-
this.search = this.instance.search;
|
|
37
|
-
this.fetchMediaInfo = this.instance.fetchMediaInfo;
|
|
38
|
-
this.fetchEpisodeSources = this.instance.fetchEpisodeSources;
|
|
39
|
-
this.fetchEpisodeServers = this.instance.fetchEpisodeServers;
|
|
40
|
-
this.fetchLatest = this.instance.fetchLatest;
|
|
41
|
-
this.fetchRecentMovies = this.instance.fetchRecentMovies;
|
|
42
|
-
this.fetchRecentTVShows = this.instance.fetchRecentTVShows;
|
|
43
|
-
this.fetchByFilter = this.instance.fetchByFilter;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Expose search as an instance method (already bound in constructor)
|
|
47
|
-
override search!: VegaMoviesProviderInstance['search'];
|
|
48
|
-
|
|
49
|
-
// Expose fetchMediaInfo
|
|
50
|
-
override fetchMediaInfo!: VegaMoviesProviderInstance['fetchMediaInfo'];
|
|
51
|
-
|
|
52
|
-
// Expose fetchEpisodeSources
|
|
53
|
-
override fetchEpisodeSources!: VegaMoviesProviderInstance['fetchEpisodeSources'];
|
|
54
|
-
|
|
55
|
-
// Expose fetchEpisodeServers
|
|
56
|
-
override fetchEpisodeServers!: VegaMoviesProviderInstance['fetchEpisodeServers'];
|
|
57
|
-
|
|
58
|
-
// Additional public methods
|
|
59
|
-
fetchLatest!: VegaMoviesProviderInstance['fetchLatest'];
|
|
60
|
-
fetchRecentMovies!: VegaMoviesProviderInstance['fetchRecentMovies'];
|
|
61
|
-
fetchRecentTVShows!: VegaMoviesProviderInstance['fetchRecentTVShows'];
|
|
62
|
-
fetchByFilter!: VegaMoviesProviderInstance['fetchByFilter'];
|
|
63
|
-
}
|
|
5
|
+
export const VegaMovies = providerClass(MovieParser, createVegaMovies);
|
|
6
|
+
export type VegaMovies = InstanceType<typeof VegaMovies>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { BaseParser, ProviderContext } from '../models';
|
|
2
|
+
import { createProviderContext } from '../utils/create-provider-context';
|
|
3
|
+
|
|
4
|
+
type ProviderFactory = (ctx: ProviderContext, customBaseURL?: string, ...rest: any[]) => object;
|
|
5
|
+
type ParserClass = abstract new () => BaseParser;
|
|
6
|
+
/** What a factory takes after `(ctx, customBaseURL)`, e.g. MultiStream's TMDB key. */
|
|
7
|
+
type ExtraArgs<F> = F extends (ctx: any, customBaseURL?: any, ...rest: infer R) => any ? R : [];
|
|
8
|
+
|
|
9
|
+
/** A provider class built from its factory: an instance is the factory's output on the category's base parser. */
|
|
10
|
+
export interface ProviderClass<F extends ProviderFactory, B extends ParserClass> {
|
|
11
|
+
/**
|
|
12
|
+
* @param ctx provider context; requests and extractors come from it (default: `createProviderContext()`)
|
|
13
|
+
* @param customBaseURL site URL to use instead of the default
|
|
14
|
+
*/
|
|
15
|
+
new (ctx?: ProviderContext, customBaseURL?: string, ...rest: ExtraArgs<F>): ReturnType<F> & InstanceType<B>;
|
|
16
|
+
/** The older form, without a context. */
|
|
17
|
+
new (customBaseURL?: string): ReturnType<F> & InstanceType<B>;
|
|
18
|
+
readonly prototype: InstanceType<B>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The class form of a provider factory, e.g. `providerClass(AnimeParser, createZoro)` for `new ANIME.Zoro()`.
|
|
23
|
+
* Registry code only has the factory; the class exists so bundled providers keep `new` and `instanceof`.
|
|
24
|
+
*/
|
|
25
|
+
export function providerClass<F extends ProviderFactory, B extends ParserClass>(
|
|
26
|
+
Base: B,
|
|
27
|
+
factory: F
|
|
28
|
+
): ProviderClass<F, B> {
|
|
29
|
+
const Parser = Base as unknown as new () => object;
|
|
30
|
+
class Provider extends Parser {
|
|
31
|
+
constructor(ctxOrBaseURL?: ProviderContext | string, customBaseURL?: string, ...rest: unknown[]) {
|
|
32
|
+
super();
|
|
33
|
+
const ctx = typeof ctxOrBaseURL === 'string' || !ctxOrBaseURL ? createProviderContext() : ctxOrBaseURL;
|
|
34
|
+
const baseURL = typeof ctxOrBaseURL === 'string' ? ctxOrBaseURL : customBaseURL;
|
|
35
|
+
Object.assign(this, factory(ctx, baseURL, ...rest));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return Provider as unknown as ProviderClass<F, B>;
|
|
39
|
+
}
|
|
@@ -1,149 +1,70 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type {
|
|
3
|
-
import {
|
|
4
|
-
import type {
|
|
5
|
-
import
|
|
6
|
-
import { defaultExtractors } from './extension-utils';
|
|
7
|
-
import extensionRegistry from '../extension-registry.json';
|
|
8
|
-
import {
|
|
9
|
-
assertValidIdentifier,
|
|
10
|
-
verifyExtensionCode,
|
|
11
|
-
type ExecuteCodeOptions,
|
|
12
|
-
type IntegrityOptions,
|
|
13
|
-
} from './extension-integrity';
|
|
14
|
-
import { createExtensionFetch, fetchTextWithTimeout } from './fetch-with-timeout';
|
|
15
|
-
import {
|
|
16
|
-
createExtensionRequire,
|
|
17
|
-
deleteEntriesOf,
|
|
18
|
-
evaluateExtensionCode,
|
|
19
|
-
extensionEnums,
|
|
20
|
-
memoiseLoad,
|
|
21
|
-
MODELS_MODULE,
|
|
22
|
-
UTILS_MODULE,
|
|
23
|
-
type CompiledCode,
|
|
24
|
-
} from './extension-modules';
|
|
1
|
+
import type { ExtractorContext, ExtractorFactory, IVideoExtractor } from '../models';
|
|
2
|
+
import type { BundledRegistry, ExtensionRegistryData, ExtractorInfo } from '../models/extension-manifest';
|
|
3
|
+
import { createExtractorContext, defaultExtractors, type ExtractorContextConfig } from './create-extractor-context';
|
|
4
|
+
import type { ExecuteCodeOptions, IntegrityOptions } from './extension-integrity';
|
|
5
|
+
import { CompiledCodeCache, deleteEntriesOf, extensionGlobals, fetchEntryCode, memoiseLoad } from './extension-modules';
|
|
25
6
|
import { assertCompatibleEntry, validateRegistry } from './registry-schema';
|
|
26
7
|
|
|
27
|
-
|
|
28
|
-
function instantiate(extractor: any, ctx: ExtractorContext): IVideoExtractor {
|
|
29
|
-
if (typeof extractor !== 'function') return extractor;
|
|
30
|
-
const isClass =
|
|
31
|
-
extractor.prototype instanceof VideoExtractor || /^class\b/.test(Function.prototype.toString.call(extractor));
|
|
32
|
-
return isClass ? new extractor(ctx) : extractor(ctx);
|
|
33
|
-
}
|
|
8
|
+
type LoadedExtractor = { factory: ExtractorFactory; instance: IVideoExtractor };
|
|
34
9
|
|
|
35
10
|
export class ExtractorManager {
|
|
36
|
-
// Loads by `${extractor name}|${sha256}` (`|
|
|
37
|
-
private
|
|
38
|
-
|
|
39
|
-
private
|
|
40
|
-
|
|
41
|
-
private
|
|
42
|
-
private
|
|
43
|
-
private integrityOptions: IntegrityOptions;
|
|
11
|
+
// Loads by `${extractor name}|${sha256}` (`|bundled` for extractors the registry lacks), see load
|
|
12
|
+
private loads = new Map<string, Promise<LoadedExtractor>>();
|
|
13
|
+
private compiled: CompiledCodeCache;
|
|
14
|
+
private registry = new Map<string, ExtractorInfo>();
|
|
15
|
+
// Bundled extractors by lowercased name
|
|
16
|
+
private bundled = new Map<string, ExtractorFactory>();
|
|
17
|
+
private context: ExtractorContext;
|
|
44
18
|
|
|
45
|
-
// Server name alias -> extractor name, from registry `aliases
|
|
46
|
-
|
|
47
|
-
private extractorAliases: Map<string, string> = new Map([
|
|
48
|
-
['upcloud', 'megacloud'],
|
|
49
|
-
['akcloud', 'megacloud'],
|
|
50
|
-
]);
|
|
19
|
+
// Server name alias -> extractor name, from registry `aliases`
|
|
20
|
+
private aliases = new Map<string, string>();
|
|
51
21
|
|
|
52
22
|
/**
|
|
53
23
|
* @throws RegistryError if the registry is invalid or uses a newer schema than this library reads
|
|
54
24
|
*/
|
|
55
25
|
constructor(
|
|
56
|
-
registry: ExtensionRegistryData |
|
|
26
|
+
registry: ExtensionRegistryData | BundledRegistry,
|
|
57
27
|
extractorConfig: ExtractorContextConfig = {},
|
|
58
28
|
integrityOptions: IntegrityOptions = {}
|
|
59
29
|
) {
|
|
60
30
|
const { extractors } = validateRegistry(registry);
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
//console.log('🔧 Dynamic Extractor Manager initialized');
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Initialize static extractors as fallbacks
|
|
70
|
-
*/
|
|
71
|
-
private initializeStaticExtractors(): void {
|
|
72
|
-
this.staticExtractors = { ...defaultExtractors };
|
|
73
|
-
for (const [key, value] of Object.entries(defaultExtractors)) {
|
|
74
|
-
this.staticExtractors[key.toLowerCase()] = value;
|
|
31
|
+
this.context = createExtractorContext(extractorConfig);
|
|
32
|
+
this.compiled = new CompiledCodeCache(integrityOptions);
|
|
33
|
+
for (const [name, factory] of Object.entries(defaultExtractors)) {
|
|
34
|
+
this.bundled.set(name.toLowerCase(), factory as ExtractorFactory);
|
|
75
35
|
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Index the validated registry extractors (and their aliases) by lowercased name
|
|
80
|
-
*/
|
|
81
|
-
private loadRegistry(extractors: ExtractorInfo[]): void {
|
|
82
|
-
// Keep the whole entry: dropping `sha256` here used to disable integrity checks for extractors.
|
|
83
36
|
for (const extractor of extractors) {
|
|
84
37
|
const name = extractor.name.toLowerCase();
|
|
85
|
-
this.
|
|
86
|
-
for (const alias of extractor.aliases ?? [])
|
|
87
|
-
this.extractorAliases.set(alias.toLowerCase(), name);
|
|
88
|
-
}
|
|
38
|
+
this.registry.set(name, { ...extractor });
|
|
39
|
+
for (const alias of extractor.aliases ?? []) this.aliases.set(alias.toLowerCase(), name);
|
|
89
40
|
}
|
|
90
41
|
}
|
|
91
42
|
|
|
92
43
|
/**
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* - Also handles server names with suffixes like 'megacloud-hd-1', 'kwik-pahe', etc.
|
|
96
|
-
* - Resolves aliases like 'upcloud' -> 'megacloud', 'akcloud' -> 'megacloud'
|
|
44
|
+
* The registry entry for a server name or extractor name, case-insensitive: 'MegaCloud',
|
|
45
|
+
* 'megacloud-hd-1', or one of the entry's registry aliases.
|
|
97
46
|
*/
|
|
98
47
|
getExtractorMetadata(extractorId: string): ExtractorInfo | undefined {
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
// First try exact match with resolved ID
|
|
105
|
-
const exactMatch = this.extractorRegistry.get(resolvedId);
|
|
106
|
-
if (exactMatch) {
|
|
107
|
-
return exactMatch;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// If no exact match, try to extract base name from patterns like:
|
|
111
|
-
// - 'megacloud-hd-1' -> 'megacloud'
|
|
112
|
-
// - 'kwik-pahe' -> 'kwik'
|
|
113
|
-
// - 'streamsb-backup' -> 'streamsb'
|
|
114
|
-
const baseExtractorName = this.extractBaseExtractorName(extractorId);
|
|
115
|
-
if (baseExtractorName) {
|
|
116
|
-
// Check if base name is an alias
|
|
117
|
-
const resolvedBaseName = this.extractorAliases.get(baseExtractorName) || baseExtractorName;
|
|
118
|
-
const baseMatch = this.extractorRegistry.get(resolvedBaseName);
|
|
119
|
-
if (baseMatch) {
|
|
120
|
-
return baseMatch;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
return undefined;
|
|
48
|
+
const lower = extractorId.toLowerCase();
|
|
49
|
+
const exact = this.registry.get(this.aliases.get(lower) ?? lower);
|
|
50
|
+
if (exact) return exact;
|
|
51
|
+
const base = this.extractBaseExtractorName(extractorId);
|
|
52
|
+
return base ? this.registry.get(base) : undefined;
|
|
125
53
|
}
|
|
126
54
|
|
|
127
55
|
/**
|
|
128
|
-
* Resolve a server name to its extractor name: the longest registry extractor name or
|
|
129
|
-
* the server name starts with (bundled extractor names are a fallback)
|
|
130
|
-
*
|
|
131
|
-
* - 'megacloud-hd-1' -> 'megacloud'
|
|
132
|
-
* - 'kwik-pahe' -> 'kwik'
|
|
133
|
-
* - 'upcloud' -> 'megacloud' (alias)
|
|
134
|
-
* - 'newhost-hd-1' -> 'newhost' (any extractor present in the registry)
|
|
56
|
+
* Resolve a server name to its extractor name, lowercased: the longest registry extractor name or
|
|
57
|
+
* alias the server name starts with (bundled extractor names are a fallback). 'megacloud-hd-1' ->
|
|
58
|
+
* 'megacloud', and 'newhost-hd-1' -> 'newhost' (or an alias's extractor) when the registry has NewHost.
|
|
135
59
|
*/
|
|
136
60
|
public extractBaseExtractorName(serverName: string): string | null {
|
|
137
61
|
const lowerName = serverName.toLowerCase();
|
|
138
62
|
|
|
139
63
|
// Ordered so that on equal length a registry name beats an alias, and an alias beats a bundled name.
|
|
140
64
|
const candidates: Array<[prefix: string, extractor: string]> = [
|
|
141
|
-
...Array.from(this.
|
|
142
|
-
...Array.from(this.
|
|
143
|
-
...
|
|
144
|
-
v.toLowerCase(),
|
|
145
|
-
v.toLowerCase(),
|
|
146
|
-
]),
|
|
65
|
+
...Array.from(this.registry.keys(), (name): [string, string] => [name, name]),
|
|
66
|
+
...Array.from(this.aliases.entries()),
|
|
67
|
+
...Array.from(this.bundled.keys(), (name): [string, string] => [name, name]),
|
|
147
68
|
];
|
|
148
69
|
|
|
149
70
|
let best: [string, string] | undefined;
|
|
@@ -156,92 +77,35 @@ export class ExtractorManager {
|
|
|
156
77
|
}
|
|
157
78
|
|
|
158
79
|
/**
|
|
159
|
-
*
|
|
160
|
-
* when the registry has none or its
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
80
|
+
* An extractor for a server or extractor name, built with this manager's context: the registry
|
|
81
|
+
* version, or the bundled one when the registry has none or its entry can't be used (it needs a
|
|
82
|
+
* newer extension context, or its code fails to download or verify). Loads are shared by every
|
|
83
|
+
* name the extractor serves ('megacloud-hd-1', 'MegaCloud').
|
|
84
|
+
*
|
|
85
|
+
* @throws RegistryError when the entry needs a newer extension context and nothing is bundled
|
|
164
86
|
*/
|
|
165
87
|
async loadExtractor(extractorId: string): Promise<IVideoExtractor> {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
// Not in the registry: use the bundled extractor, if there is one
|
|
169
|
-
const name = (this.extractBaseExtractorName(extractorId) ?? extractorId).toLowerCase();
|
|
170
|
-
if (!this.staticExtractors[name]) {
|
|
171
|
-
throw new Error(`Extractor '${extractorId}' not found in registry or static extractors`);
|
|
172
|
-
}
|
|
173
|
-
return memoiseLoad(this.loadedExtractors, `${name}|static`, async () => this.createStaticExtractor(name));
|
|
174
|
-
}
|
|
175
|
-
// Refuse a registry version that needs a newer extension context before downloading it.
|
|
176
|
-
// Providers still fall back to the bundled extractor (see createProviderContext).
|
|
177
|
-
assertCompatibleEntry(metadata);
|
|
88
|
+
return (await this.load(extractorId)).instance;
|
|
89
|
+
}
|
|
178
90
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
return memoiseLoad(this.loadedExtractors, key, () => this.fetchExtractor(metadata));
|
|
91
|
+
/** The factory loadExtractor builds its instance with, to build an extractor with another context. */
|
|
92
|
+
async loadExtractorFactory(extractorId: string): Promise<ExtractorFactory> {
|
|
93
|
+
return (await this.load(extractorId)).factory;
|
|
183
94
|
}
|
|
184
95
|
|
|
185
96
|
/**
|
|
186
97
|
* Forget a loaded extractor and its compiled code, so the next load fetches and runs it again.
|
|
187
|
-
* Takes the same names as loadExtractor ('megacloud-hd-1', 'MegaCloud'
|
|
98
|
+
* Takes the same names as loadExtractor ('megacloud-hd-1', 'MegaCloud').
|
|
188
99
|
*/
|
|
189
100
|
invalidate(extractorId: string): void {
|
|
190
|
-
const name = (
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
extractorId
|
|
194
|
-
).toLowerCase();
|
|
195
|
-
deleteEntriesOf(this.loadedExtractors, name);
|
|
196
|
-
this.compiledExtractors.delete(name);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/** The bundled version of an extractor, built with this manager's context */
|
|
200
|
-
private createStaticExtractor(name: string): IVideoExtractor {
|
|
201
|
-
return instantiate(this.staticExtractors[name.toLowerCase()], this.extractorContext);
|
|
101
|
+
const name = this.nameOf(extractorId);
|
|
102
|
+
deleteEntriesOf(this.loads, name);
|
|
103
|
+
this.compiled.forget(name);
|
|
202
104
|
}
|
|
203
105
|
|
|
204
106
|
/**
|
|
205
|
-
*
|
|
206
|
-
|
|
207
|
-
private async fetchExtractor(metadata: ExtractorInfo): Promise<IVideoExtractor> {
|
|
208
|
-
try {
|
|
209
|
-
// Handle static extractors (legacy)
|
|
210
|
-
if (metadata.main.startsWith('static://')) {
|
|
211
|
-
const staticId = metadata.main.replace('static://', '');
|
|
212
|
-
if (this.staticExtractors[staticId.toLowerCase()]) return this.createStaticExtractor(staticId);
|
|
213
|
-
throw new Error(`Static extractor '${staticId}' not found`);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
//console.log(`🔧 Loading dynamic extractor '${metadata.name}' from ${metadata.main}`);
|
|
217
|
-
|
|
218
|
-
const response = await fetchTextWithTimeout(metadata.main, {
|
|
219
|
-
method: 'GET',
|
|
220
|
-
headers: {
|
|
221
|
-
'Accept': 'text/plain, application/javascript, */*',
|
|
222
|
-
'User-Agent': 'React-Native-Consumet/1.0.0',
|
|
223
|
-
},
|
|
224
|
-
});
|
|
225
|
-
if (!response.ok) {
|
|
226
|
-
throw new Error(`Failed to fetch extractor: ${response.status} ${response.statusText}`);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
// Verifies the code against the registry hash and the extractor name before running it
|
|
230
|
-
return await this.executeExtractorCode(response.text, metadata);
|
|
231
|
-
} catch (error) {
|
|
232
|
-
console.error(`❌ Failed to load extractor '${metadata.name}':`, error);
|
|
233
|
-
|
|
234
|
-
// Fallback to the bundled version of the extractor, if there is one
|
|
235
|
-
if (this.staticExtractors[metadata.name.toLowerCase()]) return this.createStaticExtractor(metadata.name);
|
|
236
|
-
|
|
237
|
-
throw error;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Execute extractor code and create instance.
|
|
243
|
-
* The code must match `metadata.sha256` unless `options.skipIntegrity` is set. Verified code is
|
|
244
|
-
* compiled once per extractor name and sha256; each call returns a new instance.
|
|
107
|
+
* Run registry code for an extractor and build it with this manager's context. The code must match
|
|
108
|
+
* `metadata.sha256` unless `options.skipIntegrity` is set.
|
|
245
109
|
*
|
|
246
110
|
* @throws RegistryError before running anything if the entry needs a newer extension context
|
|
247
111
|
* @throws IntegrityError before running anything if the hash or extractor name is invalid
|
|
@@ -251,64 +115,54 @@ export class ExtractorManager {
|
|
|
251
115
|
metadata: ExtractorInfo,
|
|
252
116
|
options: ExecuteCodeOptions = {}
|
|
253
117
|
): Promise<IVideoExtractor> {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
assertValidIdentifier(metadata?.name, 'extractor name', String(metadata?.name));
|
|
118
|
+
return this.compileExtractor(code, metadata, options)(this.context);
|
|
119
|
+
}
|
|
257
120
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
121
|
+
private nameOf(extractorId: string): string {
|
|
122
|
+
return (
|
|
123
|
+
this.getExtractorMetadata(extractorId)?.name ??
|
|
124
|
+
this.extractBaseExtractorName(extractorId) ??
|
|
125
|
+
extractorId
|
|
126
|
+
).toLowerCase();
|
|
127
|
+
}
|
|
266
128
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
// Unverified code is never reused: the next call checks its hash again.
|
|
275
|
-
if (!options.skipIntegrity) this.compiledExtractors.set(key, { sha256, code, factory });
|
|
276
|
-
}
|
|
277
|
-
return instantiate(factory, this.extractorContext);
|
|
278
|
-
} catch (error) {
|
|
279
|
-
console.error(`❌ Failed to execute extractor code for '${metadata.name}':`, error);
|
|
280
|
-
throw error;
|
|
129
|
+
private load(extractorId: string): Promise<LoadedExtractor> {
|
|
130
|
+
const metadata = this.getExtractorMetadata(extractorId);
|
|
131
|
+
const name = this.nameOf(extractorId);
|
|
132
|
+
const bundled = this.bundled.get(name);
|
|
133
|
+
if (!metadata) {
|
|
134
|
+
if (!bundled) throw new Error(`Extractor '${extractorId}' not found in registry or static extractors`);
|
|
135
|
+
return memoiseLoad(this.loads, `${name}|bundled`, async () => this.loaded(bundled));
|
|
281
136
|
}
|
|
137
|
+
// A version that needs a newer extension context is refused before it's downloaded. A failed
|
|
138
|
+
// load isn't cached (memoiseLoad forgets it), so a network blip doesn't pin the bundled
|
|
139
|
+
// version: the next load tries the registry again.
|
|
140
|
+
const registryLoad = memoiseLoad(this.loads, `${name}|${metadata.sha256 ?? ''}`, async () => {
|
|
141
|
+
assertCompatibleEntry(metadata);
|
|
142
|
+
return this.loaded(this.compileExtractor(await fetchEntryCode('extractor', metadata.main), metadata));
|
|
143
|
+
});
|
|
144
|
+
return registryLoad.catch((error) => {
|
|
145
|
+
if (!bundled) throw error;
|
|
146
|
+
console.warn(`Extractor '${metadata.name}' from the registry failed; using the bundled one:`, error);
|
|
147
|
+
return this.loaded(bundled);
|
|
148
|
+
});
|
|
282
149
|
}
|
|
283
150
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
*/
|
|
287
|
-
private createExecutionContext(extractorName: string) {
|
|
288
|
-
const extractorContext = this.extractorContext;
|
|
289
|
-
// The only modules extractor code can require; anything else throws (EXT-5).
|
|
290
|
-
const modules: Record<string, unknown> = {
|
|
291
|
-
'cheerio': { load: extractorContext.load },
|
|
292
|
-
'axios': extractorContext.axios,
|
|
293
|
-
'crypto-js': CryptoJS,
|
|
294
|
-
[MODELS_MODULE]: { VideoExtractor, ...extensionEnums },
|
|
295
|
-
[UTILS_MODULE]: { createExtractorContext: () => extractorContext },
|
|
296
|
-
};
|
|
297
|
-
return {
|
|
298
|
-
exports: {},
|
|
299
|
-
module: { exports: {} },
|
|
300
|
-
require: createExtensionRequire(extractorName, modules),
|
|
301
|
-
Promise,
|
|
302
|
-
Object,
|
|
303
|
-
fetch: createExtensionFetch(extractorContext.axios),
|
|
304
|
-
axios: extractorContext.axios,
|
|
305
|
-
load: extractorContext.load,
|
|
306
|
-
CryptoJS,
|
|
307
|
-
console,
|
|
308
|
-
URL: extractorContext.PolyURL,
|
|
309
|
-
URLSearchParams: extractorContext.PolyURLSearchParams,
|
|
310
|
-
};
|
|
151
|
+
private loaded(factory: ExtractorFactory): LoadedExtractor {
|
|
152
|
+
return { factory, instance: factory(this.context) };
|
|
311
153
|
}
|
|
312
|
-
}
|
|
313
154
|
|
|
314
|
-
|
|
155
|
+
private compileExtractor(code: string, metadata: ExtractorInfo, options: ExecuteCodeOptions = {}): ExtractorFactory {
|
|
156
|
+
assertCompatibleEntry(metadata);
|
|
157
|
+
const id = String(metadata?.name);
|
|
158
|
+
return this.compiled.compile(id.toLowerCase(), {
|
|
159
|
+
kind: 'extractor',
|
|
160
|
+
id,
|
|
161
|
+
name: metadata?.name,
|
|
162
|
+
code,
|
|
163
|
+
entry: metadata,
|
|
164
|
+
globals: () => extensionGlobals('extractor', id, this.context),
|
|
165
|
+
skipIntegrity: options.skipIntegrity,
|
|
166
|
+
}) as ExtractorFactory;
|
|
167
|
+
}
|
|
168
|
+
}
|