react-native-consumet 1.6.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Consumet.podspec +2 -2
- package/README.md +24 -15
- package/android/build.gradle +9 -8
- package/android/generated/java/com/consumet/NativeConsumetSpec.java +0 -4
- package/android/generated/jni/RNConsumetSpec-generated.cpp +0 -6
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +0 -10
- package/android/src/androidTest/AndroidManifest.xml +4 -0
- package/android/src/androidTest/java/com/consumet/DeobfuscatorModuleTest.kt +88 -0
- package/android/src/androidTest/java/com/consumet/SynchronyEngineTest.kt +75 -0
- package/android/src/androidTest/java/com/consumet/TestSupport.kt +115 -0
- package/android/src/androidTest/java/com/consumet/WebViewContractTest.kt +125 -0
- package/android/src/main/java/com/consumet/ConsumetModule.kt +0 -13
- package/android/src/main/java/com/consumet/DdosGuardModule.kt +26 -60
- package/android/src/main/java/com/consumet/DeobfuscatorModule.kt +59 -68
- package/android/src/main/java/com/consumet/HttpRequestModule.kt +171 -285
- package/android/src/main/java/com/consumet/Synchrony.kt +65 -0
- package/android/src/main/java/com/consumet/SynchronyScriptCache.kt +121 -0
- package/android/src/main/java/com/consumet/WebViewDebugging.kt +36 -0
- package/android/src/main/java/com/consumet/WebViewTask.kt +101 -0
- package/ios/Consumet.mm +205 -184
- package/ios/RCConsumetSynchronyCache.h +51 -0
- package/ios/RCConsumetSynchronyCache.m +246 -0
- package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec-generated.mm +0 -7
- package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec.h +0 -2
- package/ios/generated/ReactCodegen/RNConsumetSpecJSI.h +0 -10
- package/lib/commonjs/NativeConsumet.ts +68 -2
- package/lib/commonjs/extension-registry.json +174 -54
- package/lib/commonjs/extension-registry.json.sig +1 -0
- package/lib/commonjs/extractors/asianload.js +11 -5
- package/lib/commonjs/extractors/asianload.js.map +1 -1
- package/lib/commonjs/extractors/filemoon.js +11 -6
- package/lib/commonjs/extractors/filemoon.js.map +1 -1
- package/lib/commonjs/extractors/flixcloud.js +0 -2
- package/lib/commonjs/extractors/flixcloud.js.map +1 -1
- package/lib/commonjs/extractors/gdflix.js +0 -2
- package/lib/commonjs/extractors/gdflix.js.map +1 -1
- package/lib/commonjs/extractors/gofile.js +0 -2
- package/lib/commonjs/extractors/gofile.js.map +1 -1
- package/lib/commonjs/extractors/gogocdn.js +13 -7
- package/lib/commonjs/extractors/gogocdn.js.map +1 -1
- package/lib/commonjs/extractors/hubcloud.js +0 -2
- package/lib/commonjs/extractors/hubcloud.js.map +1 -1
- package/lib/commonjs/extractors/index.js +28 -29
- package/lib/commonjs/extractors/index.js.map +1 -1
- package/lib/commonjs/extractors/kwik.js +0 -2
- package/lib/commonjs/extractors/kwik.js.map +1 -1
- package/lib/commonjs/extractors/megaplay.js +0 -2
- package/lib/commonjs/extractors/megaplay.js.map +1 -1
- package/lib/commonjs/extractors/megaup.js +2 -6
- package/lib/commonjs/extractors/megaup.js.map +1 -1
- package/lib/commonjs/extractors/mixdrop.js +10 -5
- package/lib/commonjs/extractors/mixdrop.js.map +1 -1
- package/lib/commonjs/extractors/mp4player.js +11 -6
- package/lib/commonjs/extractors/mp4player.js.map +1 -1
- package/lib/commonjs/extractors/mp4upload.js +10 -5
- package/lib/commonjs/extractors/mp4upload.js.map +1 -1
- package/lib/commonjs/extractors/rapidcloud.js +16 -10
- package/lib/commonjs/extractors/rapidcloud.js.map +1 -1
- package/lib/commonjs/extractors/streamhub.js +11 -6
- package/lib/commonjs/extractors/streamhub.js.map +1 -1
- package/lib/commonjs/extractors/streamlare.js +13 -8
- package/lib/commonjs/extractors/streamlare.js.map +1 -1
- package/lib/commonjs/extractors/streamsb.js +11 -6
- package/lib/commonjs/extractors/streamsb.js.map +1 -1
- package/lib/commonjs/extractors/streamtape.js +10 -5
- package/lib/commonjs/extractors/streamtape.js.map +1 -1
- package/lib/commonjs/extractors/vidhide.js +4 -4
- package/lib/commonjs/extractors/vidhide.js.map +1 -1
- package/lib/commonjs/extractors/vidmoly.js +11 -6
- package/lib/commonjs/extractors/vidmoly.js.map +1 -1
- package/lib/commonjs/extractors/vizcloud.js +11 -6
- package/lib/commonjs/extractors/vizcloud.js.map +1 -1
- package/lib/commonjs/extractors/voe.js +11 -6
- package/lib/commonjs/extractors/voe.js.map +1 -1
- package/lib/commonjs/index.js +130 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/base-provider.js +4 -0
- package/lib/commonjs/models/base-provider.js.map +1 -1
- package/lib/commonjs/models/extension-manifest.js +0 -4
- package/lib/commonjs/models/index.js +7 -0
- package/lib/commonjs/models/index.js.map +1 -1
- package/lib/commonjs/models/meta-error.js +36 -0
- package/lib/commonjs/models/meta-error.js.map +1 -0
- package/lib/commonjs/models/types.js +21 -0
- package/lib/commonjs/models/types.js.map +1 -1
- package/lib/commonjs/providers/anime/anikoto/anikoto.js +14 -10
- package/lib/commonjs/providers/anime/anikoto/anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js +6 -4
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/animekai/animekai.js +14 -8
- package/lib/commonjs/providers/anime/animekai/animekai.js.map +1 -1
- package/lib/commonjs/providers/anime/animekai/create-animekai.js +6 -4
- package/lib/commonjs/providers/anime/animekai/create-animekai.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/animepahe.js +17 -11
- package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +6 -15
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animeunity.js +23 -10
- package/lib/commonjs/providers/anime/animeunity.js.map +1 -1
- package/lib/commonjs/providers/anime/anineko/anineko.js +18 -8
- package/lib/commonjs/providers/anime/anineko/anineko.js.map +1 -1
- package/lib/commonjs/providers/anime/anineko/create-anineko.js +4 -2
- package/lib/commonjs/providers/anime/anineko/create-anineko.js.map +1 -1
- package/lib/commonjs/providers/anime/index.js +26 -35
- package/lib/commonjs/providers/anime/index.js.map +1 -1
- package/lib/commonjs/providers/anime/reanime/create-reanime.js +4 -5
- package/lib/commonjs/providers/anime/reanime/create-reanime.js.map +1 -1
- package/lib/commonjs/providers/anime/reanime/reanime.js +13 -8
- package/lib/commonjs/providers/anime/reanime/reanime.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/create-zoro.js +8 -8
- package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/zoro.js +17 -11
- package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/commonjs/providers/index.js +8 -8
- package/lib/commonjs/providers/index.js.map +1 -1
- package/lib/commonjs/providers/light-novels/index.js +6 -7
- package/lib/commonjs/providers/light-novels/index.js.map +1 -1
- package/lib/commonjs/providers/light-novels/novelupdates.js +32 -11
- package/lib/commonjs/providers/light-novels/novelupdates.js.map +1 -1
- package/lib/commonjs/providers/light-novels/readlightnovels.js +15 -7
- package/lib/commonjs/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/commonjs/providers/manga/asurascans.js +169 -100
- package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
- package/lib/commonjs/providers/manga/flamescans.js +181 -94
- package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
- package/lib/commonjs/providers/manga/index.js +14 -31
- package/lib/commonjs/providers/manga/index.js.map +1 -1
- package/lib/commonjs/providers/manga/mangadex.js +243 -231
- package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahere.js +287 -138
- package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
- package/lib/commonjs/providers/manga/mangakakalot.js +215 -111
- package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapill.js +137 -44
- package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
- package/lib/commonjs/providers/meta/anilist.js +595 -1030
- package/lib/commonjs/providers/meta/anilist.js.map +1 -1
- package/lib/commonjs/providers/meta/index.js +1 -0
- package/lib/commonjs/providers/meta/index.js.map +1 -1
- package/lib/commonjs/providers/meta/mal.js +86 -89
- package/lib/commonjs/providers/meta/mal.js.map +1 -1
- package/lib/commonjs/providers/meta/tmdb-api-key.js +29 -0
- package/lib/commonjs/providers/meta/tmdb-api-key.js.map +1 -0
- package/lib/commonjs/providers/meta/tmdb.js +122 -94
- package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/create-himovies.js +3 -3
- package/lib/commonjs/providers/movies/himovies/create-himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/himovies.js +13 -8
- package/lib/commonjs/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/index.js +20 -30
- package/lib/commonjs/providers/movies/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js +3 -3
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/multimovies.js +13 -8
- package/lib/commonjs/providers/movies/multimovies/multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/index.js +28 -17
- package/lib/commonjs/providers/movies/multistream/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/utils.js +18 -19
- package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js +451 -185
- package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js +22 -0
- package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js.map +1 -0
- package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js +11 -24
- package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js +30 -0
- package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js.map +1 -0
- package/lib/commonjs/providers/movies/netflixmirror/primemirror.js +22 -0
- package/lib/commonjs/providers/movies/netflixmirror/primemirror.js.map +1 -0
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js +57 -40
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
- package/lib/commonjs/providers/movies/vegamovies/vegamovies.js +11 -14
- package/lib/commonjs/providers/movies/vegamovies/vegamovies.js.map +1 -1
- package/lib/commonjs/providers/movies/yflix/create-yflix.js +2 -2
- package/lib/commonjs/providers/movies/yflix/create-yflix.js.map +1 -1
- package/lib/commonjs/providers/movies/yflix/yflix.js +13 -6
- package/lib/commonjs/providers/movies/yflix/yflix.js.map +1 -1
- package/lib/commonjs/providers/provider-args.js +17 -0
- package/lib/commonjs/providers/provider-args.js.map +1 -0
- package/lib/commonjs/registry-signing-keys.js +26 -0
- package/lib/commonjs/registry-signing-keys.js.map +1 -0
- package/lib/commonjs/utils/ExtractorManager.js +136 -233
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +181 -251
- package/lib/commonjs/utils/ProviderManager.js.map +1 -1
- package/lib/commonjs/utils/create-extractor-context.js +0 -1
- package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
- package/lib/commonjs/utils/create-provider-context.js +37 -29
- package/lib/commonjs/utils/create-provider-context.js.map +1 -1
- package/lib/commonjs/utils/extension-integrity.js +62 -0
- package/lib/commonjs/utils/extension-integrity.js.map +1 -0
- package/lib/commonjs/utils/extension-modules.js +109 -0
- package/lib/commonjs/utils/extension-modules.js.map +1 -0
- package/lib/commonjs/utils/extension-utils.js +46 -40
- package/lib/commonjs/utils/extension-utils.js.map +1 -1
- package/lib/commonjs/utils/fetch-with-timeout.js +76 -0
- package/lib/commonjs/utils/fetch-with-timeout.js.map +1 -0
- package/lib/commonjs/utils/index.js +96 -2
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/manga.js +60 -0
- package/lib/commonjs/utils/manga.js.map +1 -0
- package/lib/commonjs/utils/meta-http.js +42 -0
- package/lib/commonjs/utils/meta-http.js.map +1 -0
- package/lib/commonjs/utils/provider-maps.js +26 -18
- package/lib/commonjs/utils/provider-maps.js.map +1 -1
- package/lib/commonjs/utils/queries.js +24 -11
- package/lib/commonjs/utils/queries.js.map +1 -1
- package/lib/commonjs/utils/registry-schema.js +263 -0
- package/lib/commonjs/utils/registry-schema.js.map +1 -0
- package/lib/commonjs/utils/registry-signature.js +180 -0
- package/lib/commonjs/utils/registry-signature.js.map +1 -0
- package/lib/commonjs/utils/url-polyfill.js +1075 -426
- package/lib/commonjs/utils/url-polyfill.js.map +1 -1
- package/lib/commonjs/utils/utils.js +2 -30
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/NativeConsumet.ts +68 -2
- package/lib/module/extension-registry.json +174 -54
- package/lib/module/extension-registry.json.sig +1 -0
- package/lib/module/extractors/asianload.js +10 -5
- package/lib/module/extractors/asianload.js.map +1 -1
- package/lib/module/extractors/filemoon.js +10 -5
- package/lib/module/extractors/filemoon.js.map +1 -1
- package/lib/module/extractors/flixcloud.js +0 -1
- package/lib/module/extractors/flixcloud.js.map +1 -1
- package/lib/module/extractors/gdflix.js +0 -1
- package/lib/module/extractors/gdflix.js.map +1 -1
- package/lib/module/extractors/gofile.js +0 -1
- package/lib/module/extractors/gofile.js.map +1 -1
- package/lib/module/extractors/gogocdn.js +12 -7
- package/lib/module/extractors/gogocdn.js.map +1 -1
- package/lib/module/extractors/hubcloud.js +0 -1
- package/lib/module/extractors/hubcloud.js.map +1 -1
- package/lib/module/extractors/index.js +24 -25
- package/lib/module/extractors/index.js.map +1 -1
- package/lib/module/extractors/kwik.js +0 -1
- package/lib/module/extractors/kwik.js.map +1 -1
- package/lib/module/extractors/megaplay.js +0 -1
- package/lib/module/extractors/megaplay.js.map +1 -1
- package/lib/module/extractors/megaup.js +2 -4
- package/lib/module/extractors/megaup.js.map +1 -1
- package/lib/module/extractors/mixdrop.js +9 -4
- package/lib/module/extractors/mixdrop.js.map +1 -1
- package/lib/module/extractors/mp4player.js +10 -5
- package/lib/module/extractors/mp4player.js.map +1 -1
- package/lib/module/extractors/mp4upload.js +9 -4
- package/lib/module/extractors/mp4upload.js.map +1 -1
- package/lib/module/extractors/rapidcloud.js +15 -10
- package/lib/module/extractors/rapidcloud.js.map +1 -1
- package/lib/module/extractors/streamhub.js +10 -5
- package/lib/module/extractors/streamhub.js.map +1 -1
- package/lib/module/extractors/streamlare.js +11 -6
- package/lib/module/extractors/streamlare.js.map +1 -1
- package/lib/module/extractors/streamsb.js +10 -5
- package/lib/module/extractors/streamsb.js.map +1 -1
- package/lib/module/extractors/streamtape.js +9 -4
- package/lib/module/extractors/streamtape.js.map +1 -1
- package/lib/module/extractors/vidhide.js +4 -3
- package/lib/module/extractors/vidhide.js.map +1 -1
- package/lib/module/extractors/vidmoly.js +10 -5
- package/lib/module/extractors/vidmoly.js.map +1 -1
- package/lib/module/extractors/vizcloud.js +10 -5
- package/lib/module/extractors/vizcloud.js.map +1 -1
- package/lib/module/extractors/voe.js +10 -5
- package/lib/module/extractors/voe.js.map +1 -1
- package/lib/module/index.js +11 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/base-provider.js +4 -0
- package/lib/module/models/base-provider.js.map +1 -1
- package/lib/module/models/extension-manifest.js +0 -2
- package/lib/module/models/index.js +2 -1
- package/lib/module/models/index.js.map +1 -1
- package/lib/module/models/meta-error.js +31 -0
- package/lib/module/models/meta-error.js.map +1 -0
- package/lib/module/models/types.js +30 -0
- package/lib/module/models/types.js.map +1 -1
- package/lib/module/providers/anime/anikoto/anikoto.js +13 -8
- package/lib/module/providers/anime/anikoto/anikoto.js.map +1 -1
- package/lib/module/providers/anime/anikoto/create-anikoto.js +6 -4
- package/lib/module/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/module/providers/anime/animekai/animekai.js +13 -6
- package/lib/module/providers/anime/animekai/animekai.js.map +1 -1
- package/lib/module/providers/anime/animekai/create-animekai.js +6 -4
- package/lib/module/providers/anime/animekai/create-animekai.js.map +1 -1
- package/lib/module/providers/anime/animepahe/animepahe.js +13 -8
- package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/module/providers/anime/animepahe/create-animepahe.js +6 -15
- package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/module/providers/anime/animeunity.js +21 -9
- package/lib/module/providers/anime/animeunity.js.map +1 -1
- package/lib/module/providers/anime/anineko/anineko.js +17 -6
- package/lib/module/providers/anime/anineko/anineko.js.map +1 -1
- package/lib/module/providers/anime/anineko/create-anineko.js +4 -2
- package/lib/module/providers/anime/anineko/create-anineko.js.map +1 -1
- package/lib/module/providers/anime/index.js +13 -21
- package/lib/module/providers/anime/index.js.map +1 -1
- package/lib/module/providers/anime/reanime/create-reanime.js +3 -4
- package/lib/module/providers/anime/reanime/create-reanime.js.map +1 -1
- package/lib/module/providers/anime/reanime/reanime.js +12 -6
- package/lib/module/providers/anime/reanime/reanime.js.map +1 -1
- package/lib/module/providers/anime/zoro/create-zoro.js +8 -9
- package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/module/providers/anime/zoro/zoro.js +13 -8
- package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/module/providers/index.js +4 -4
- package/lib/module/providers/index.js.map +1 -1
- package/lib/module/providers/light-novels/index.js +3 -3
- package/lib/module/providers/light-novels/index.js.map +1 -1
- package/lib/module/providers/light-novels/novelupdates.js +29 -11
- package/lib/module/providers/light-novels/novelupdates.js.map +1 -1
- package/lib/module/providers/light-novels/readlightnovels.js +12 -7
- package/lib/module/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/module/providers/manga/asurascans.js +169 -99
- package/lib/module/providers/manga/asurascans.js.map +1 -1
- package/lib/module/providers/manga/flamescans.js +181 -93
- package/lib/module/providers/manga/flamescans.js.map +1 -1
- package/lib/module/providers/manga/index.js +8 -24
- package/lib/module/providers/manga/index.js.map +1 -1
- package/lib/module/providers/manga/mangadex.js +244 -232
- package/lib/module/providers/manga/mangadex.js.map +1 -1
- package/lib/module/providers/manga/mangahere.js +284 -135
- package/lib/module/providers/manga/mangahere.js.map +1 -1
- package/lib/module/providers/manga/mangakakalot.js +215 -110
- package/lib/module/providers/manga/mangakakalot.js.map +1 -1
- package/lib/module/providers/manga/mangapill.js +137 -44
- package/lib/module/providers/manga/mangapill.js.map +1 -1
- package/lib/module/providers/meta/anilist.js +598 -1031
- package/lib/module/providers/meta/anilist.js.map +1 -1
- package/lib/module/providers/meta/index.js +1 -0
- package/lib/module/providers/meta/index.js.map +1 -1
- package/lib/module/providers/meta/mal.js +87 -89
- package/lib/module/providers/meta/mal.js.map +1 -1
- package/lib/module/providers/meta/tmdb-api-key.js +24 -0
- package/lib/module/providers/meta/tmdb-api-key.js.map +1 -0
- package/lib/module/providers/meta/tmdb.js +123 -93
- package/lib/module/providers/meta/tmdb.js.map +1 -1
- package/lib/module/providers/movies/himovies/create-himovies.js +3 -3
- package/lib/module/providers/movies/himovies/create-himovies.js.map +1 -1
- package/lib/module/providers/movies/himovies/himovies.js +12 -9
- package/lib/module/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/module/providers/movies/index.js +14 -11
- package/lib/module/providers/movies/index.js.map +1 -1
- package/lib/module/providers/movies/multimovies/create-multimovies.js +3 -3
- package/lib/module/providers/movies/multimovies/create-multimovies.js.map +1 -1
- package/lib/module/providers/movies/multimovies/multimovies.js +12 -8
- package/lib/module/providers/movies/multimovies/multimovies.js.map +1 -1
- package/lib/module/providers/movies/multistream/index.js +27 -17
- package/lib/module/providers/movies/multistream/index.js.map +1 -1
- package/lib/module/providers/movies/multistream/utils.js +8 -9
- package/lib/module/providers/movies/multistream/utils.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js +449 -185
- package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/disneymirror.js +17 -0
- package/lib/module/providers/movies/netflixmirror/disneymirror.js.map +1 -0
- package/lib/module/providers/movies/netflixmirror/netflixmirror.js +9 -24
- package/lib/module/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/netmirror-parser.js +25 -0
- package/lib/module/providers/movies/netflixmirror/netmirror-parser.js.map +1 -0
- package/lib/module/providers/movies/netflixmirror/primemirror.js +17 -0
- package/lib/module/providers/movies/netflixmirror/primemirror.js.map +1 -0
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js +57 -40
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
- package/lib/module/providers/movies/vegamovies/vegamovies.js +12 -10
- package/lib/module/providers/movies/vegamovies/vegamovies.js.map +1 -1
- package/lib/module/providers/movies/yflix/create-yflix.js +2 -2
- package/lib/module/providers/movies/yflix/create-yflix.js.map +1 -1
- package/lib/module/providers/movies/yflix/yflix.js +12 -6
- package/lib/module/providers/movies/yflix/yflix.js.map +1 -1
- package/lib/module/providers/provider-args.js +14 -0
- package/lib/module/providers/provider-args.js.map +1 -0
- package/lib/module/registry-signing-keys.js +22 -0
- package/lib/module/registry-signing-keys.js.map +1 -0
- package/lib/module/utils/ExtractorManager.js +138 -234
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +180 -250
- package/lib/module/utils/ProviderManager.js.map +1 -1
- package/lib/module/utils/create-extractor-context.js +1 -2
- package/lib/module/utils/create-extractor-context.js.map +1 -1
- package/lib/module/utils/create-provider-context.js +39 -30
- package/lib/module/utils/create-provider-context.js.map +1 -1
- package/lib/module/utils/extension-integrity.js +52 -0
- package/lib/module/utils/extension-integrity.js.map +1 -0
- package/lib/module/utils/extension-modules.js +101 -0
- package/lib/module/utils/extension-modules.js.map +1 -0
- package/lib/module/utils/extension-utils.js +46 -40
- package/lib/module/utils/extension-utils.js.map +1 -1
- package/lib/module/utils/fetch-with-timeout.js +71 -0
- package/lib/module/utils/fetch-with-timeout.js.map +1 -0
- package/lib/module/utils/index.js +7 -3
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/manga.js +54 -0
- package/lib/module/utils/manga.js.map +1 -0
- package/lib/module/utils/meta-http.js +37 -0
- package/lib/module/utils/meta-http.js.map +1 -0
- package/lib/module/utils/provider-maps.js +26 -18
- package/lib/module/utils/provider-maps.js.map +1 -1
- package/lib/module/utils/queries.js +22 -9
- package/lib/module/utils/queries.js.map +1 -1
- package/lib/module/utils/registry-schema.js +255 -0
- package/lib/module/utils/registry-schema.js.map +1 -0
- package/lib/module/utils/registry-signature.js +168 -0
- package/lib/module/utils/registry-signature.js.map +1 -0
- package/lib/module/utils/url-polyfill.js +1073 -425
- package/lib/module/utils/url-polyfill.js.map +1 -1
- package/lib/module/utils/utils.js +0 -26
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts +68 -2
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/asianload.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/asianload.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/filemoon.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/filemoon.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gdflix.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/gdflix.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gofile.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/gofile.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/index.d.ts +24 -25
- package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megaplay.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/megaplay.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mp4player.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/mp4player.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamhub.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/streamhub.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamlare.d.ts +5 -4
- package/lib/typescript/commonjs/src/extractors/streamlare.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamsb.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/streamsb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamtape.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/streamtape.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/voe.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/voe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +15 -9
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/base-provider.d.ts +5 -1
- package/lib/typescript/commonjs/src/models/base-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts +27 -5
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts +1 -2
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/index.d.ts +6 -4
- package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/meta-error.d.ts +20 -0
- package/lib/typescript/commonjs/src/models/meta-error.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/provider-context.d.ts +21 -16
- package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/types.d.ts +144 -8
- package/lib/typescript/commonjs/src/models/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts +11 -3
- package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts +13 -22
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts +1 -2
- package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/index.d.ts +3 -4
- package/lib/typescript/commonjs/src/providers/light-novels/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts +7 -3
- package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts +19 -7
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts +23 -6
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/index.d.ts +7 -24
- package/lib/typescript/commonjs/src/providers/manga/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts +27 -8
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts +20 -6
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts +31 -7
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts +21 -5
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts +26 -9
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/providers/meta/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/mal.d.ts +9 -4
- package/lib/typescript/commonjs/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts +7 -0
- package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts +18 -5
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts +8 -3
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts +14 -10
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts +8 -3
- package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts +10 -3
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +7 -6
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts +2 -6
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts +12 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts +9 -17
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts +21 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts +12 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts +8 -5
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts +8 -3
- package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/provider-args.d.ts +8 -0
- package/lib/typescript/commonjs/src/providers/provider-args.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/registry-signing-keys.d.ts +18 -0
- package/lib/typescript/commonjs/src/registry-signing-keys.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts +33 -15
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +73 -21
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/extension-integrity.d.ts +40 -0
- package/lib/typescript/commonjs/src/utils/extension-integrity.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/extension-modules.d.ts +49 -0
- package/lib/typescript/commonjs/src/utils/extension-modules.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +24 -46
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts +29 -0
- package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts +12 -4
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/manga.d.ts +19 -0
- package/lib/typescript/commonjs/src/utils/manga.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/meta-http.d.ts +16 -0
- package/lib/typescript/commonjs/src/utils/meta-http.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +14 -7
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/queries.d.ts +17 -8
- package/lib/typescript/commonjs/src/utils/queries.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/registry-schema.d.ts +66 -0
- package/lib/typescript/commonjs/src/utils/registry-schema.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/registry-signature.d.ts +66 -0
- package/lib/typescript/commonjs/src/utils/registry-signature.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts +20 -8
- package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/utils.d.ts +0 -1
- package/lib/typescript/commonjs/src/utils/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/NativeConsumet.d.ts +68 -2
- package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/asianload.d.ts +5 -3
- package/lib/typescript/module/src/extractors/asianload.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/filemoon.d.ts +5 -3
- package/lib/typescript/module/src/extractors/filemoon.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/flixcloud.d.ts +0 -1
- package/lib/typescript/module/src/extractors/flixcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gdflix.d.ts +0 -1
- package/lib/typescript/module/src/extractors/gdflix.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gofile.d.ts +0 -1
- package/lib/typescript/module/src/extractors/gofile.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gogocdn.d.ts +5 -3
- package/lib/typescript/module/src/extractors/gogocdn.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/hubcloud.d.ts +0 -1
- package/lib/typescript/module/src/extractors/hubcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/index.d.ts +24 -25
- package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts +0 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megaplay.d.ts +0 -1
- package/lib/typescript/module/src/extractors/megaplay.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megaup.d.ts +0 -1
- package/lib/typescript/module/src/extractors/megaup.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mixdrop.d.ts +5 -3
- package/lib/typescript/module/src/extractors/mixdrop.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mp4player.d.ts +5 -3
- package/lib/typescript/module/src/extractors/mp4player.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mp4upload.d.ts +5 -3
- package/lib/typescript/module/src/extractors/mp4upload.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/rapidcloud.d.ts +5 -3
- package/lib/typescript/module/src/extractors/rapidcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamhub.d.ts +5 -3
- package/lib/typescript/module/src/extractors/streamhub.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamlare.d.ts +5 -4
- package/lib/typescript/module/src/extractors/streamlare.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamsb.d.ts +5 -3
- package/lib/typescript/module/src/extractors/streamsb.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamtape.d.ts +5 -3
- package/lib/typescript/module/src/extractors/streamtape.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vidhide.d.ts +0 -1
- package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vidmoly.d.ts +5 -3
- package/lib/typescript/module/src/extractors/vidmoly.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vizcloud.d.ts +5 -3
- package/lib/typescript/module/src/extractors/vizcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/voe.d.ts +5 -3
- package/lib/typescript/module/src/extractors/voe.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +15 -9
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/base-provider.d.ts +5 -1
- package/lib/typescript/module/src/models/base-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extension-manifest.d.ts +27 -5
- package/lib/typescript/module/src/models/extension-manifest.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extractor-context.d.ts +1 -2
- package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/index.d.ts +6 -4
- package/lib/typescript/module/src/models/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/meta-error.d.ts +20 -0
- package/lib/typescript/module/src/models/meta-error.d.ts.map +1 -0
- package/lib/typescript/module/src/models/provider-context.d.ts +21 -16
- package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/types.d.ts +144 -8
- package/lib/typescript/module/src/models/types.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animeunity.d.ts +11 -3
- package/lib/typescript/module/src/providers/anime/animeunity.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/index.d.ts +13 -22
- package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts +1 -2
- package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/index.d.ts +4 -4
- package/lib/typescript/module/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/index.d.ts +3 -4
- package/lib/typescript/module/src/providers/light-novels/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts +7 -3
- package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts +5 -3
- package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts +19 -7
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts +23 -6
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/index.d.ts +7 -24
- package/lib/typescript/module/src/providers/manga/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts +27 -8
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts +20 -6
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts +31 -7
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts +21 -5
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/anilist.d.ts +26 -9
- package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/index.d.ts +1 -0
- package/lib/typescript/module/src/providers/meta/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/mal.d.ts +9 -4
- package/lib/typescript/module/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts +7 -0
- package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts +18 -5
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts +8 -3
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/index.d.ts +14 -10
- package/lib/typescript/module/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts +8 -3
- package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts +10 -3
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +7 -6
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts +2 -6
- package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts +12 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts +9 -17
- package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts +21 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts +12 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts +8 -5
- package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts +8 -3
- package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/provider-args.d.ts +8 -0
- package/lib/typescript/module/src/providers/provider-args.d.ts.map +1 -0
- package/lib/typescript/module/src/registry-signing-keys.d.ts +18 -0
- package/lib/typescript/module/src/registry-signing-keys.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts +33 -15
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts +73 -21
- package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/extension-integrity.d.ts +40 -0
- package/lib/typescript/module/src/utils/extension-integrity.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/extension-modules.d.ts +49 -0
- package/lib/typescript/module/src/utils/extension-modules.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/extension-utils.d.ts +24 -46
- package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts +29 -0
- package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/index.d.ts +12 -4
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/manga.d.ts +19 -0
- package/lib/typescript/module/src/utils/manga.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/meta-http.d.ts +16 -0
- package/lib/typescript/module/src/utils/meta-http.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/provider-maps.d.ts +14 -7
- package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/queries.d.ts +17 -8
- package/lib/typescript/module/src/utils/queries.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/registry-schema.d.ts +66 -0
- package/lib/typescript/module/src/utils/registry-schema.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/registry-signature.d.ts +66 -0
- package/lib/typescript/module/src/utils/registry-signature.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/url-polyfill.d.ts +20 -8
- package/lib/typescript/module/src/utils/url-polyfill.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/utils.d.ts +0 -1
- package/lib/typescript/module/src/utils/utils.d.ts.map +1 -1
- package/package.json +30 -19
- package/src/NativeConsumet.ts +68 -2
- package/src/extension-registry.json +174 -54
- package/src/extension-registry.json.sig +1 -0
- package/src/extractors/asianload.ts +10 -7
- package/src/extractors/filemoon.ts +10 -7
- package/src/extractors/flixcloud.ts +0 -2
- package/src/extractors/gdflix.ts +0 -2
- package/src/extractors/gofile.ts +0 -2
- package/src/extractors/gogocdn.ts +12 -9
- package/src/extractors/hubcloud.ts +0 -2
- package/src/extractors/index.ts +24 -51
- package/src/extractors/kwik.ts +0 -2
- package/src/extractors/megaplay.ts +0 -2
- package/src/extractors/megaup.ts +2 -6
- package/src/extractors/mixdrop.ts +9 -5
- package/src/extractors/mp4player.ts +10 -6
- package/src/extractors/mp4upload.ts +9 -5
- package/src/extractors/rapidcloud.ts +15 -12
- package/src/extractors/streamhub.ts +10 -6
- package/src/extractors/streamlare.ts +10 -8
- package/src/extractors/streamsb.ts +10 -7
- package/src/extractors/streamtape.ts +9 -5
- package/src/extractors/vidhide.ts +3 -4
- package/src/extractors/vidmoly.ts +10 -6
- package/src/extractors/vizcloud.ts +10 -7
- package/src/extractors/voe.ts +10 -7
- package/src/index.tsx +115 -3
- package/src/models/base-provider.ts +6 -1
- package/src/models/extension-manifest.ts +30 -6
- package/src/models/extractor-context.ts +0 -2
- package/src/models/index.ts +13 -1
- package/src/models/meta-error.ts +33 -0
- package/src/models/provider-context.ts +21 -58
- package/src/models/types.ts +148 -6
- package/src/providers/anime/anikoto/anikoto.ts +14 -10
- package/src/providers/anime/anikoto/create-anikoto.ts +5 -4
- package/src/providers/anime/animekai/animekai.ts +14 -9
- package/src/providers/anime/animekai/create-animekai.ts +5 -5
- package/src/providers/anime/animepahe/animepahe.ts +14 -11
- package/src/providers/anime/animepahe/create-animepahe.ts +5 -14
- package/src/providers/anime/animeunity.ts +20 -10
- package/src/providers/anime/anineko/anineko.ts +18 -8
- package/src/providers/anime/anineko/create-anineko.ts +3 -2
- package/src/providers/anime/index.ts +13 -21
- package/src/providers/anime/reanime/create-reanime.ts +2 -4
- package/src/providers/anime/reanime/reanime.ts +13 -9
- package/src/providers/anime/zoro/create-zoro.ts +6 -7
- package/src/providers/anime/zoro/zoro.ts +14 -11
- package/src/providers/index.ts +4 -4
- package/src/providers/light-novels/index.ts +3 -3
- package/src/providers/light-novels/novelupdates.ts +33 -19
- package/src/providers/light-novels/readlightnovels.ts +12 -8
- package/src/providers/manga/asurascans.ts +207 -136
- package/src/providers/manga/flamescans.ts +229 -122
- package/src/providers/manga/index.ts +7 -23
- package/src/providers/manga/mangadex.ts +343 -286
- package/src/providers/manga/mangahere.ts +317 -160
- package/src/providers/manga/mangakakalot.ts +257 -156
- package/src/providers/manga/mangapill.ts +172 -69
- package/src/providers/meta/anilist.ts +613 -1450
- package/src/providers/meta/index.ts +6 -1
- package/src/providers/meta/mal.ts +102 -139
- package/src/providers/meta/tmdb-api-key.ts +27 -0
- package/src/providers/meta/tmdb.ts +150 -141
- package/src/providers/movies/himovies/create-himovies.ts +3 -3
- package/src/providers/movies/himovies/himovies.ts +13 -11
- package/src/providers/movies/index.ts +14 -12
- package/src/providers/movies/multimovies/create-multimovies.ts +3 -3
- package/src/providers/movies/multimovies/multimovies.ts +13 -11
- package/src/providers/movies/multistream/index.ts +30 -18
- package/src/providers/movies/multistream/utils.ts +27 -15
- package/src/providers/movies/netflixmirror/create-netflixmirror.ts +567 -232
- package/src/providers/movies/netflixmirror/disneymirror.ts +16 -0
- package/src/providers/movies/netflixmirror/netflixmirror.ts +13 -43
- package/src/providers/movies/netflixmirror/netmirror-parser.ts +43 -0
- package/src/providers/movies/netflixmirror/primemirror.ts +16 -0
- package/src/providers/movies/vegamovies/create-vegamovies.ts +75 -50
- package/src/providers/movies/vegamovies/vegamovies.ts +13 -13
- package/src/providers/movies/yflix/create-yflix.ts +2 -2
- package/src/providers/movies/yflix/yflix.ts +13 -10
- package/src/providers/provider-args.ts +15 -0
- package/src/registry-signing-keys.ts +20 -0
- package/src/utils/ExtractorManager.ts +165 -247
- package/src/utils/ProviderManager.ts +235 -285
- package/src/utils/create-extractor-context.ts +0 -2
- package/src/utils/create-provider-context.ts +45 -29
- package/src/utils/extension-integrity.ts +82 -0
- package/src/utils/extension-modules.ts +123 -0
- package/src/utils/extension-utils.ts +45 -42
- package/src/utils/fetch-with-timeout.ts +76 -0
- package/src/utils/index.ts +32 -4
- package/src/utils/manga.ts +58 -0
- package/src/utils/meta-http.ts +35 -0
- package/src/utils/provider-maps.ts +39 -19
- package/src/utils/queries.ts +30 -26
- package/src/utils/registry-schema.ts +273 -0
- package/src/utils/registry-signature.ts +215 -0
- package/src/utils/url-polyfill.ts +1146 -460
- package/src/utils/utils.ts +0 -26
- package/lib/commonjs/extractors/StreamP2P.js +0 -69
- package/lib/commonjs/extractors/StreamP2P.js.map +0 -1
- package/lib/commonjs/extractors/kisskh/kkey.js +0 -98
- package/lib/commonjs/extractors/kisskh/kkey.js.map +0 -1
- package/lib/commonjs/extractors/kisskh/staticdata.js +0 -9
- package/lib/commonjs/extractors/kisskh/staticdata.js.map +0 -1
- package/lib/commonjs/providers/anime/anify.js +0 -195
- package/lib/commonjs/providers/anime/anify.js.map +0 -1
- package/lib/commonjs/providers/anime/animedrive.js +0 -228
- package/lib/commonjs/providers/anime/animedrive.js.map +0 -1
- package/lib/commonjs/providers/anime/animesuge/animesuge.js +0 -78
- package/lib/commonjs/providers/anime/animesuge/animesuge.js.map +0 -1
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js +0 -312
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js.map +0 -1
- package/lib/commonjs/providers/anime/kickassanime.js +0 -48
- package/lib/commonjs/providers/anime/kickassanime.js.map +0 -1
- package/lib/commonjs/providers/anime/marin.js +0 -282
- package/lib/commonjs/providers/anime/marin.js.map +0 -1
- package/lib/commonjs/providers/manga/brmangas.js +0 -105
- package/lib/commonjs/providers/manga/brmangas.js.map +0 -1
- package/lib/commonjs/providers/manga/comick.js +0 -149
- package/lib/commonjs/providers/manga/comick.js.map +0 -1
- package/lib/commonjs/providers/manga/mangahost.js +0 -108
- package/lib/commonjs/providers/manga/mangahost.js.map +0 -1
- package/lib/commonjs/providers/manga/mangapark.js +0 -92
- package/lib/commonjs/providers/manga/mangapark.js.map +0 -1
- package/lib/commonjs/providers/manga/mangareader.js +0 -101
- package/lib/commonjs/providers/manga/mangareader.js.map +0 -1
- package/lib/commonjs/providers/manga/mangasee123.js +0 -156
- package/lib/commonjs/providers/manga/mangasee123.js.map +0 -1
- package/lib/commonjs/providers/manga/readmanga.js +0 -258
- package/lib/commonjs/providers/manga/readmanga.js.map +0 -1
- package/lib/commonjs/providers/manga/vyvymanga.js +0 -161
- package/lib/commonjs/providers/manga/vyvymanga.js.map +0 -1
- package/lib/commonjs/providers/movies/dramacool.js +0 -397
- package/lib/commonjs/providers/movies/dramacool.js.map +0 -1
- package/lib/commonjs/providers/movies/yflix.js +0 -561
- package/lib/commonjs/providers/movies/yflix.js.map +0 -1
- package/lib/module/extractors/StreamP2P.js +0 -63
- package/lib/module/extractors/StreamP2P.js.map +0 -1
- package/lib/module/extractors/kisskh/kkey.js +0 -92
- package/lib/module/extractors/kisskh/kkey.js.map +0 -1
- package/lib/module/extractors/kisskh/staticdata.js +0 -5
- package/lib/module/extractors/kisskh/staticdata.js.map +0 -1
- package/lib/module/providers/anime/anify.js +0 -192
- package/lib/module/providers/anime/anify.js.map +0 -1
- package/lib/module/providers/anime/animedrive.js +0 -223
- package/lib/module/providers/anime/animedrive.js.map +0 -1
- package/lib/module/providers/anime/animesuge/animesuge.js +0 -73
- package/lib/module/providers/anime/animesuge/animesuge.js.map +0 -1
- package/lib/module/providers/anime/animesuge/create-animesuge.js +0 -309
- package/lib/module/providers/anime/animesuge/create-animesuge.js.map +0 -1
- package/lib/module/providers/anime/kickassanime.js +0 -45
- package/lib/module/providers/anime/kickassanime.js.map +0 -1
- package/lib/module/providers/anime/marin.js +0 -281
- package/lib/module/providers/anime/marin.js.map +0 -1
- package/lib/module/providers/manga/brmangas.js +0 -100
- package/lib/module/providers/manga/brmangas.js.map +0 -1
- package/lib/module/providers/manga/comick.js +0 -145
- package/lib/module/providers/manga/comick.js.map +0 -1
- package/lib/module/providers/manga/mangahost.js +0 -103
- package/lib/module/providers/manga/mangahost.js.map +0 -1
- package/lib/module/providers/manga/mangapark.js +0 -87
- package/lib/module/providers/manga/mangapark.js.map +0 -1
- package/lib/module/providers/manga/mangareader.js +0 -97
- package/lib/module/providers/manga/mangareader.js.map +0 -1
- package/lib/module/providers/manga/mangasee123.js +0 -152
- package/lib/module/providers/manga/mangasee123.js.map +0 -1
- package/lib/module/providers/manga/readmanga.js +0 -253
- package/lib/module/providers/manga/readmanga.js.map +0 -1
- package/lib/module/providers/manga/vyvymanga.js +0 -156
- package/lib/module/providers/manga/vyvymanga.js.map +0 -1
- package/lib/module/providers/movies/dramacool.js +0 -397
- package/lib/module/providers/movies/dramacool.js.map +0 -1
- package/lib/module/providers/movies/yflix.js +0 -561
- package/lib/module/providers/movies/yflix.js.map +0 -1
- package/lib/typescript/commonjs/src/extractors/StreamP2P.d.ts +0 -10
- package/lib/typescript/commonjs/src/extractors/StreamP2P.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts +0 -25
- package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts +0 -3
- package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/anify.d.ts +0 -40
- package/lib/typescript/commonjs/src/providers/anime/anify.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts +0 -33
- package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts +0 -34
- package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts +0 -14
- package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts +0 -30
- package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/marin.d.ts +0 -32
- package/lib/typescript/commonjs/src/providers/anime/marin.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts +0 -16
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts +0 -36
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts +0 -16
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts +0 -12
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts +0 -16
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts +0 -15
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts +0 -23
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts +0 -15
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts +0 -1
- package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts +0 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/StreamP2P.d.ts +0 -10
- package/lib/typescript/module/src/extractors/StreamP2P.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts +0 -25
- package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts +0 -3
- package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/anify.d.ts +0 -40
- package/lib/typescript/module/src/providers/anime/anify.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animedrive.d.ts +0 -33
- package/lib/typescript/module/src/providers/anime/animedrive.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts +0 -34
- package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts +0 -14
- package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/kickassanime.d.ts +0 -30
- package/lib/typescript/module/src/providers/anime/kickassanime.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/marin.d.ts +0 -32
- package/lib/typescript/module/src/providers/anime/marin.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts +0 -16
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/comick.d.ts +0 -36
- package/lib/typescript/module/src/providers/manga/comick.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts +0 -16
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts +0 -12
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts +0 -16
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts +0 -15
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts +0 -23
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts +0 -15
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/dramacool.d.ts +0 -1
- package/lib/typescript/module/src/providers/movies/dramacool.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/yflix.d.ts +0 -1
- package/lib/typescript/module/src/providers/movies/yflix.d.ts.map +0 -1
- package/src/extractors/StreamP2P.ts +0 -60
- package/src/extractors/kisskh/kkey.ts +0 -161
- package/src/extractors/kisskh/staticdata.ts +0 -144
- package/src/providers/anime/anify.ts +0 -276
- package/src/providers/anime/animedrive.ts +0 -245
- package/src/providers/anime/animesuge/animesuge.ts +0 -77
- package/src/providers/anime/animesuge/create-animesuge.ts +0 -327
- package/src/providers/anime/kickassanime.ts +0 -51
- package/src/providers/anime/marin.ts +0 -319
- package/src/providers/manga/brmangas.ts +0 -144
- package/src/providers/manga/comick.ts +0 -280
- package/src/providers/manga/mangahost.ts +0 -130
- package/src/providers/manga/mangapark.ts +0 -111
- package/src/providers/manga/mangareader.ts +0 -128
- package/src/providers/manga/mangasee123.ts +0 -183
- package/src/providers/manga/readmanga.ts +0 -367
- package/src/providers/manga/vyvymanga.ts +0 -233
- package/src/providers/movies/dramacool.ts +0 -395
- package/src/providers/movies/yflix.ts +0 -559
|
@@ -1,68 +1,144 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { MangaParser, MediaStatus } from "../../models/index.js";
|
|
4
|
+
import { createProviderContext } from "../../utils/create-provider-context.js";
|
|
5
|
+
import { parseChapterNumber, sortChaptersForReading } from "../../utils/manga.js";
|
|
6
|
+
|
|
7
|
+
/** Text in several languages, keyed by language code (`en`, `ja-ro`, `pt-br`, ...). */
|
|
8
|
+
|
|
9
|
+
const STATUSES = {
|
|
10
|
+
ongoing: MediaStatus.ONGOING,
|
|
11
|
+
completed: MediaStatus.COMPLETED,
|
|
12
|
+
hiatus: MediaStatus.HIATUS,
|
|
13
|
+
cancelled: MediaStatus.CANCELLED
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** Chapters per feed request (the API's maximum). */
|
|
17
|
+
const FEED_PAGE_SIZE = 500;
|
|
18
|
+
/** MangaDex refuses list requests whose offset + limit is past this. */
|
|
19
|
+
const MAX_RESULT_WINDOW = 10000;
|
|
20
|
+
/** The feed only lists chapters of titles with these ratings; an id the caller already has is any of them. */
|
|
21
|
+
const ALL_CONTENT_RATINGS = ['safe', 'suggestive', 'erotica', 'pornographic'];
|
|
22
|
+
|
|
23
|
+
/** A query string from `[key, value]` pairs; keys such as `includes[]` are sent as they are. */
|
|
24
|
+
const queryString = params => params.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`).join('&');
|
|
25
|
+
|
|
26
|
+
/** A number from MangaDex's numeric strings (`"12"`, `"10.5"`); undefined for empty or other text. */
|
|
27
|
+
const toNumber = text => {
|
|
28
|
+
if (typeof text !== 'string' || text.trim() === '') return undefined;
|
|
29
|
+
const value = Number(text.trim());
|
|
30
|
+
return Number.isFinite(value) ? value : undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** The non-empty texts of a localized map, as `[language, text]` pairs. */
|
|
34
|
+
const entries = map => Object.entries(map ?? {}).flatMap(([lang, text]) => typeof text === 'string' && text.trim() ? [[lang, text.trim()]] : []);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The display title (English: the main title when it is English, else the first English alt title;
|
|
38
|
+
* otherwise the main title) and every other title, without repeats.
|
|
39
|
+
*/
|
|
40
|
+
const pickTitles = (main, alts) => {
|
|
41
|
+
const mainTitles = entries(main);
|
|
42
|
+
const altTitleList = (alts ?? []).flatMap(alt => entries(alt));
|
|
43
|
+
const chosen = mainTitles.find(([lang]) => lang === 'en') ?? altTitleList.find(([lang]) => lang === 'en') ?? mainTitles[0] ?? altTitleList[0];
|
|
44
|
+
const title = chosen ? chosen[1] : '';
|
|
45
|
+
const altTitles = [];
|
|
46
|
+
for (const [, text] of [...mainTitles, ...altTitleList]) {
|
|
47
|
+
if (text !== title && !altTitles.includes(text)) altTitles.push(text);
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
title,
|
|
51
|
+
altTitles
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** MangaDex descriptions are Markdown; this keeps the text and drops the markup. */
|
|
56
|
+
const markdownToText = markdown => markdown.replace(/\r\n?/g, '\n').replace(/\u00a0/g, ' ').replace(/!\[([^\]]*)\]\([^)]*\)/g, '$1') // images
|
|
57
|
+
.replace(/\[([^\]]+)\]\(([^()]|\([^)]*\))*\)/g, '$1') // links: keep the text
|
|
58
|
+
.replace(/\[\/?(?:b|i|u|s|spoiler|url)(?:=[^\]]*)?\]/gi, '') // BBCode tags
|
|
59
|
+
.replace(/<\/?[a-z][^>]*>/gi, '') // HTML tags
|
|
60
|
+
.replace(/^ {0,3}([-*_])(?: *\1){2,} *$/gm, '') // horizontal rules
|
|
61
|
+
.replace(/^ {0,3}#{1,6} +/gm, '') // headings
|
|
62
|
+
.replace(/^ {0,3}> ?/gm, '') // block quotes
|
|
63
|
+
.replace(/^( *)[*+] +/gm, '$1- ') // list bullets
|
|
64
|
+
.replace(/(\*\*|__)(?=\S)([^\n]*?\S)\1/g, '$2') // bold
|
|
65
|
+
.replace(/(^|[^\w*])\*(?=\S)([^*\n]*?\S)\*(?!\w)/g, '$1$2') // *italic*
|
|
66
|
+
.replace(/(^|[^\w])_(?=\S)([^_\n]*?\S)_(?!\w)/g, '$1$2') // _italic_
|
|
67
|
+
.replace(/~~([^\n]+?)~~/g, '$1') // strikethrough
|
|
68
|
+
.replace(/\\([\\`*_{}[\]()#+\-.!>~|])/g, '$1') // escaped characters
|
|
69
|
+
.replace(/[ \t]+$/gm, '') // trailing spaces (Markdown line breaks)
|
|
70
|
+
.replace(/\n{3,}/g, '\n\n').trim();
|
|
71
|
+
export class MangaDex extends MangaParser {
|
|
8
72
|
name = 'MangaDex';
|
|
9
73
|
baseUrl = 'https://mangadex.org';
|
|
10
74
|
logo = 'https://pbs.twimg.com/profile_images/1391016345714757632/xbt_jW78_400x400.jpg';
|
|
11
75
|
classPath = 'MANGA.MangaDex';
|
|
12
76
|
apiUrl = 'https://api.mangadex.org';
|
|
13
|
-
|
|
77
|
+
uploadsUrl = 'https://uploads.mangadex.org';
|
|
78
|
+
|
|
79
|
+
/** @param ctx provider context; requests go through its axios (default: `createProviderContext()`) */
|
|
80
|
+
constructor(ctx = createProviderContext()) {
|
|
81
|
+
super();
|
|
82
|
+
this.ctx = ctx;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @param mangaId manga id (a UUID, from a search result)
|
|
87
|
+
* @param lang language of the chapters to list, as MangaDex codes it (default: `en`; e.g. `pt-br`, `es-la`)
|
|
88
|
+
*/
|
|
89
|
+
fetchMangaInfo = async (mangaId, lang = 'en') => {
|
|
14
90
|
try {
|
|
15
|
-
const {
|
|
91
|
+
const [{
|
|
16
92
|
data
|
|
17
|
-
} = await axios.get(`${this.apiUrl}/manga/${mangaId}`);
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
const findCoverArt = data.data.relationships.find(rel => rel.type === 'cover_art');
|
|
40
|
-
const coverArt = await this.fetchCoverImage(findCoverArt?.id);
|
|
41
|
-
mangaInfo.image = `${this.baseUrl}/covers/${mangaInfo.id}/${coverArt}`;
|
|
42
|
-
return mangaInfo;
|
|
93
|
+
}, chapters] = await Promise.all([this.ctx.axios.get(`${this.apiUrl}/manga/${encodeURIComponent(mangaId)}?${queryString([['includes[]', 'cover_art'], ['includes[]', 'author'], ['includes[]', 'artist']])}`), this.fetchChapters(mangaId, lang)]);
|
|
94
|
+
const manga = data.data;
|
|
95
|
+
const {
|
|
96
|
+
attributes
|
|
97
|
+
} = manga;
|
|
98
|
+
const info = this.toResult(manga, false);
|
|
99
|
+
const authors = this.relatedNames(manga, 'author');
|
|
100
|
+
if (authors.length > 0) info.authors = authors;
|
|
101
|
+
const artists = this.relatedNames(manga, 'artist');
|
|
102
|
+
if (artists.length > 0) info.artists = artists;
|
|
103
|
+
const genres = this.tagNames(manga, 'genre');
|
|
104
|
+
if (genres.length > 0) info.genres = genres;
|
|
105
|
+
const themes = this.tagNames(manga, 'theme');
|
|
106
|
+
if (themes.length > 0) info.themes = themes;
|
|
107
|
+
const malId = attributes.links?.mal;
|
|
108
|
+
if (malId) info.malId = toNumber(malId) ?? malId;
|
|
109
|
+
// Titles whose chapter numbers restart each volume can't be sorted by chapter number alone;
|
|
110
|
+
// the feed's own order (volume, then chapter) is the reading order then.
|
|
111
|
+
info.chapters = attributes.chapterNumbersResetOnNewVolume ? chapters : sortChaptersForReading(chapters);
|
|
112
|
+
return info;
|
|
43
113
|
} catch (err) {
|
|
44
|
-
|
|
45
|
-
throw new Error(err.message);
|
|
114
|
+
throw this.error(err);
|
|
46
115
|
}
|
|
47
116
|
};
|
|
48
117
|
|
|
49
118
|
/**
|
|
50
|
-
* @
|
|
119
|
+
* The chapter's pages, from the MangaDex@Home server MangaDex assigns to it.
|
|
120
|
+
* @param chapterId chapter id (from `fetchMangaInfo`)
|
|
121
|
+
* @param dataSaver smaller, compressed images (default: `false`)
|
|
51
122
|
*/
|
|
52
|
-
fetchChapterPages = async chapterId => {
|
|
123
|
+
fetchChapterPages = async (chapterId, dataSaver = false) => {
|
|
124
|
+
let server;
|
|
53
125
|
try {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
pages.push({
|
|
58
|
-
img: `${res.data.baseUrl}/data/${res.data.chapter.hash}/${id}`,
|
|
59
|
-
page: parseInt(substringBefore(id, '-').replace(/[^0-9.]/g, ''))
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
return pages;
|
|
126
|
+
({
|
|
127
|
+
data: server
|
|
128
|
+
} = await this.ctx.axios.get(`${this.apiUrl}/at-home/server/${encodeURIComponent(chapterId)}`));
|
|
63
129
|
} catch (err) {
|
|
64
|
-
throw
|
|
130
|
+
throw this.error(err);
|
|
131
|
+
}
|
|
132
|
+
const files = (dataSaver ? server.chapter.dataSaver : server.chapter.data) ?? [];
|
|
133
|
+
if (files.length === 0) {
|
|
134
|
+
// Chapters of official publishers link to their site and have no pages on MangaDex.
|
|
135
|
+
throw new Error(`[${this.name}] Chapter ${chapterId} has no pages on MangaDex (it may be hosted on another site)`);
|
|
65
136
|
}
|
|
137
|
+
const folder = dataSaver ? 'data-saver' : 'data';
|
|
138
|
+
return files.map((file, index) => ({
|
|
139
|
+
img: `${server.baseUrl}/${folder}/${server.chapter.hash}/${file}`,
|
|
140
|
+
page: index + 1
|
|
141
|
+
}));
|
|
66
142
|
};
|
|
67
143
|
|
|
68
144
|
/**
|
|
@@ -70,207 +146,143 @@ class MangaDex extends MangaParser {
|
|
|
70
146
|
* @param page page number (default: 1)
|
|
71
147
|
* @param limit limit of results to return (default: 20) (max: 100) (min: 1)
|
|
72
148
|
*/
|
|
73
|
-
search = async (query, page = 1, limit = 20) =>
|
|
74
|
-
if (page <= 0) throw new Error('Page number must be greater than 0');
|
|
75
|
-
if (limit > 100) throw new Error('Limit must be less than or equal to 100');
|
|
76
|
-
if (limit * (page - 1) >= 10000) throw new Error('not enough results');
|
|
77
|
-
try {
|
|
78
|
-
const res = await axios.get(`${this.apiUrl}/manga?limit=${limit}&title=${encode(query)}&limit=${limit}&offset=${limit * (page - 1)}&order[relevance]=desc`);
|
|
79
|
-
if (res.data.result === 'ok') {
|
|
80
|
-
const results = {
|
|
81
|
-
currentPage: page,
|
|
82
|
-
results: []
|
|
83
|
-
};
|
|
84
|
-
for (const manga of res.data.data) {
|
|
85
|
-
const findCoverArt = manga.relationships.find(item => item.type === 'cover_art');
|
|
86
|
-
const coverArtId = findCoverArt ? findCoverArt.id : null;
|
|
87
|
-
const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
|
|
88
|
-
results.results.push({
|
|
89
|
-
id: manga.id,
|
|
90
|
-
title: Object.values(manga.attributes.title)[0],
|
|
91
|
-
altTitles: manga.attributes.altTitles,
|
|
92
|
-
description: Object.values(manga.attributes.description)[0],
|
|
93
|
-
status: manga.attributes.status,
|
|
94
|
-
releaseDate: manga.attributes.year,
|
|
95
|
-
contentRating: manga.attributes.contentRating,
|
|
96
|
-
lastVolume: manga.attributes.lastVolume,
|
|
97
|
-
lastChapter: manga.attributes.lastChapter,
|
|
98
|
-
image: `${this.baseUrl}/covers/${manga.id}/${coverArt}`
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
return results;
|
|
102
|
-
} else {
|
|
103
|
-
throw new Error(res.data.message);
|
|
104
|
-
}
|
|
105
|
-
} catch (err) {
|
|
106
|
-
if (err.code === 'ERR_BAD_REQUEST') {
|
|
107
|
-
throw new Error('Bad request. Make sure you have entered a valid query.');
|
|
108
|
-
}
|
|
109
|
-
throw new Error(err.message);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
149
|
+
search = async (query, page = 1, limit = 20) => this.fetchList([['title', query], ['order[relevance]', 'desc']], page, limit);
|
|
112
150
|
fetchRandom = async () => {
|
|
113
151
|
try {
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
|
|
123
|
-
results.results.push({
|
|
124
|
-
id: res.data.data.id,
|
|
125
|
-
title: Object.values(res.data.data.attributes.title)[0],
|
|
126
|
-
altTitles: res.data.data.attributes.altTitles,
|
|
127
|
-
description: Object.values(res.data.data.attributes.description)[0],
|
|
128
|
-
status: res.data.data.attributes.status,
|
|
129
|
-
releaseDate: res.data.data.attributes.year,
|
|
130
|
-
contentRating: res.data.data.attributes.contentRating,
|
|
131
|
-
lastVolume: res.data.data.attributes.lastVolume,
|
|
132
|
-
lastChapter: res.data.data.attributes.lastChapter,
|
|
133
|
-
image: `${this.baseUrl}/covers/${res.data.data.id}/${coverArt}`
|
|
134
|
-
});
|
|
135
|
-
return results;
|
|
136
|
-
} else {
|
|
137
|
-
throw new Error(res.data.message);
|
|
138
|
-
}
|
|
139
|
-
} catch (err) {
|
|
140
|
-
throw new Error(err.message);
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
fetchRecentlyAdded = async (page = 1, limit = 20) => {
|
|
144
|
-
if (page <= 0) throw new Error('Page number must be greater than 0');
|
|
145
|
-
if (limit > 100) throw new Error('Limit must be less than or equal to 100');
|
|
146
|
-
if (limit * (page - 1) >= 10000) throw new Error('not enough results');
|
|
147
|
-
try {
|
|
148
|
-
const res = await axios.get(`${this.apiUrl}/manga?includes[]=cover_art&contentRating[]=safe&contentRating[]=suggestive&contentRating[]=erotica&order[createdAt]=desc&hasAvailableChapters=true&limit=${limit}&offset=${limit * (page - 1)}`);
|
|
149
|
-
if (res.data.result === 'ok') {
|
|
150
|
-
const results = {
|
|
151
|
-
currentPage: page,
|
|
152
|
-
results: []
|
|
153
|
-
};
|
|
154
|
-
for (const manga of res.data.data) {
|
|
155
|
-
const findCoverArt = manga.relationships.find(item => item.type === 'cover_art');
|
|
156
|
-
const coverArtId = findCoverArt ? findCoverArt.id : null;
|
|
157
|
-
const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
|
|
158
|
-
results.results.push({
|
|
159
|
-
id: manga.id,
|
|
160
|
-
title: Object.values(manga.attributes.title)[0],
|
|
161
|
-
altTitles: manga.attributes.altTitles,
|
|
162
|
-
description: Object.values(manga.attributes.description)[0],
|
|
163
|
-
status: manga.attributes.status,
|
|
164
|
-
releaseDate: manga.attributes.year,
|
|
165
|
-
contentRating: manga.attributes.contentRating,
|
|
166
|
-
lastVolume: manga.attributes.lastVolume,
|
|
167
|
-
lastChapter: manga.attributes.lastChapter,
|
|
168
|
-
image: `${this.baseUrl}/covers/${manga.id}/${coverArt}`
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
return results;
|
|
172
|
-
} else {
|
|
173
|
-
throw new Error(res.data.message);
|
|
174
|
-
}
|
|
152
|
+
const {
|
|
153
|
+
data
|
|
154
|
+
} = await this.ctx.axios.get(`${this.apiUrl}/manga/random?${queryString([['includes[]', 'cover_art']])}`);
|
|
155
|
+
return {
|
|
156
|
+
currentPage: 1,
|
|
157
|
+
hasNextPage: false,
|
|
158
|
+
results: [this.toResult(data.data)]
|
|
159
|
+
};
|
|
175
160
|
} catch (err) {
|
|
176
|
-
throw
|
|
161
|
+
throw this.error(err);
|
|
177
162
|
}
|
|
178
163
|
};
|
|
179
|
-
|
|
164
|
+
fetchRecentlyAdded = async (page = 1, limit = 20) => this.fetchList([['contentRating[]', 'safe'], ['contentRating[]', 'suggestive'], ['contentRating[]', 'erotica'], ['order[createdAt]', 'desc'], ['hasAvailableChapters', 'true']], page, limit);
|
|
165
|
+
fetchLatestUpdates = async (page = 1, limit = 20) => this.fetchList([['order[latestUploadedChapter]', 'desc']], page, limit);
|
|
166
|
+
fetchPopular = async (page = 1, limit = 20) => this.fetchList([['order[followedCount]', 'desc'], ['contentRating[]', 'safe'], ['contentRating[]', 'suggestive'], ['hasAvailableChapters', 'true']], page, limit);
|
|
167
|
+
|
|
168
|
+
/** One page of `/manga` with the given filters, covers included. */
|
|
169
|
+
fetchList = async (params, page, limit) => {
|
|
180
170
|
if (page <= 0) throw new Error('Page number must be greater than 0');
|
|
181
171
|
if (limit > 100) throw new Error('Limit must be less than or equal to 100');
|
|
182
|
-
if (limit * (page - 1) >=
|
|
172
|
+
if (limit * (page - 1) >= MAX_RESULT_WINDOW) throw new Error('not enough results');
|
|
173
|
+
const offset = limit * (page - 1);
|
|
183
174
|
try {
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
id: manga.id,
|
|
196
|
-
title: Object.values(manga.attributes.title)[0],
|
|
197
|
-
altTitles: manga.attributes.altTitles,
|
|
198
|
-
description: Object.values(manga.attributes.description)[0],
|
|
199
|
-
status: manga.attributes.status,
|
|
200
|
-
releaseDate: manga.attributes.year,
|
|
201
|
-
contentRating: manga.attributes.contentRating,
|
|
202
|
-
lastVolume: manga.attributes.lastVolume,
|
|
203
|
-
lastChapter: manga.attributes.lastChapter,
|
|
204
|
-
image: `${this.baseUrl}/covers/${manga.id}/${coverArt}`
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
return results;
|
|
208
|
-
} else {
|
|
209
|
-
throw new Error(res.data.message);
|
|
210
|
-
}
|
|
175
|
+
const {
|
|
176
|
+
data
|
|
177
|
+
} = await this.ctx.axios.get(`${this.apiUrl}/manga?${queryString([...params, ['includes[]', 'cover_art'], ['limit', limit], ['offset', offset]])}`);
|
|
178
|
+
if (data.result !== 'ok') throw new Error(data.errors?.[0]?.detail ?? data.message);
|
|
179
|
+
const total = data.total ?? 0;
|
|
180
|
+
return {
|
|
181
|
+
currentPage: page,
|
|
182
|
+
hasNextPage: offset + limit < Math.min(total, MAX_RESULT_WINDOW),
|
|
183
|
+
totalResults: total,
|
|
184
|
+
results: data.data.map(manga => this.toResult(manga))
|
|
185
|
+
};
|
|
211
186
|
} catch (err) {
|
|
212
|
-
throw
|
|
187
|
+
throw this.error(err);
|
|
213
188
|
}
|
|
214
189
|
};
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
title: Object.values(manga.attributes.title)[0],
|
|
233
|
-
altTitles: manga.attributes.altTitles,
|
|
234
|
-
description: Object.values(manga.attributes.description)[0],
|
|
235
|
-
status: manga.attributes.status,
|
|
236
|
-
releaseDate: manga.attributes.year,
|
|
237
|
-
contentRating: manga.attributes.contentRating,
|
|
238
|
-
lastVolume: manga.attributes.lastVolume,
|
|
239
|
-
lastChapter: manga.attributes.lastChapter,
|
|
240
|
-
image: `${this.baseUrl}/covers/${manga.id}/${coverArt}`
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
return results;
|
|
244
|
-
} else {
|
|
245
|
-
throw new Error(res.data.message);
|
|
246
|
-
}
|
|
247
|
-
} catch (err) {
|
|
248
|
-
throw new Error(err.message);
|
|
190
|
+
|
|
191
|
+
/** Every readable chapter in `lang`, in the feed's order (volume, then chapter). */
|
|
192
|
+
fetchChapters = async (mangaId, lang) => {
|
|
193
|
+
const chapters = [];
|
|
194
|
+
let offset = 0;
|
|
195
|
+
let total = Infinity;
|
|
196
|
+
while (offset < total && offset < MAX_RESULT_WINDOW) {
|
|
197
|
+
const {
|
|
198
|
+
data
|
|
199
|
+
} = await this.ctx.axios.get(`${this.apiUrl}/manga/${encodeURIComponent(mangaId)}/feed?${queryString([['translatedLanguage[]', lang],
|
|
200
|
+
// Chapters that only link to a publisher's site, or aren't readable yet, have no pages here.
|
|
201
|
+
['includeExternalUrl', 0], ['includeEmptyPages', 0], ['includeFuturePublishAt', 0], ['includeUnavailable', 0], ...ALL_CONTENT_RATINGS.map(rating => ['contentRating[]', rating]), ['includes[]', 'scanlation_group'], ['order[volume]', 'asc'], ['order[chapter]', 'asc'], ['limit', Math.min(FEED_PAGE_SIZE, MAX_RESULT_WINDOW - offset)], ['offset', offset]])}`);
|
|
202
|
+
const page = data.data ?? [];
|
|
203
|
+
for (const chapter of page) chapters.push(this.toChapter(chapter));
|
|
204
|
+
total = data.total ?? 0;
|
|
205
|
+
if (page.length === 0) break;
|
|
206
|
+
offset += page.length;
|
|
249
207
|
}
|
|
208
|
+
return chapters;
|
|
250
209
|
};
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
210
|
+
|
|
211
|
+
/** A title from `/manga`; `thumbnail` picks the 512 px cover instead of the full-size one. */
|
|
212
|
+
toResult = (manga, thumbnail = true) => {
|
|
213
|
+
const {
|
|
214
|
+
attributes
|
|
215
|
+
} = manga;
|
|
216
|
+
const {
|
|
217
|
+
title,
|
|
218
|
+
altTitles
|
|
219
|
+
} = pickTitles(attributes.title, attributes.altTitles);
|
|
220
|
+
const result = {
|
|
221
|
+
id: manga.id,
|
|
222
|
+
title
|
|
223
|
+
};
|
|
224
|
+
if (altTitles.length > 0) result.altTitles = altTitles;
|
|
225
|
+
const cover = manga.relationships?.find(rel => rel.type === 'cover_art')?.attributes?.fileName;
|
|
226
|
+
if (cover) result.image = `${this.uploadsUrl}/covers/${manga.id}/${cover}${thumbnail ? '.512.jpg' : ''}`;
|
|
227
|
+
const descriptions = entries(attributes.description);
|
|
228
|
+
const description = (descriptions.find(([lang]) => lang === 'en') ?? descriptions[0])?.[1];
|
|
229
|
+
const text = description ? markdownToText(description) : '';
|
|
230
|
+
if (text) result.description = text;
|
|
231
|
+
if (attributes.status) result.status = STATUSES[attributes.status] ?? MediaStatus.UNKNOWN;
|
|
232
|
+
if (typeof attributes.year === 'number') result.releaseDate = attributes.year;
|
|
233
|
+
result.url = `${this.baseUrl}/title/${manga.id}`;
|
|
234
|
+
if (attributes.contentRating) result.contentRating = attributes.contentRating;
|
|
235
|
+
const lastVolume = toNumber(attributes.lastVolume);
|
|
236
|
+
if (lastVolume !== undefined) result.lastVolume = lastVolume;
|
|
237
|
+
const lastChapter = toNumber(attributes.lastChapter);
|
|
238
|
+
if (lastChapter !== undefined) result.lastChapter = lastChapter;
|
|
239
|
+
return result;
|
|
257
240
|
};
|
|
258
|
-
|
|
241
|
+
toChapter = chapter => {
|
|
259
242
|
const {
|
|
260
|
-
|
|
261
|
-
} =
|
|
262
|
-
const
|
|
263
|
-
|
|
243
|
+
attributes
|
|
244
|
+
} = chapter;
|
|
245
|
+
const chapterNumber = parseChapterNumber(attributes.chapter);
|
|
246
|
+
const volumeNumber = toNumber(attributes.volume);
|
|
247
|
+
const label = attributes.chapter?.trim();
|
|
248
|
+
const result = {
|
|
249
|
+
id: chapter.id,
|
|
250
|
+
title: attributes.title?.trim() || (chapterNumber !== undefined ? `Chapter ${chapterNumber}` : label || 'Oneshot')
|
|
251
|
+
};
|
|
252
|
+
if (chapterNumber !== undefined) result.chapterNumber = chapterNumber;
|
|
253
|
+
if (volumeNumber !== undefined) result.volumeNumber = volumeNumber;
|
|
254
|
+
if (typeof attributes.pages === 'number' && attributes.pages > 0) result.pages = attributes.pages;
|
|
255
|
+
const releaseDate = attributes.publishAt ?? attributes.readableAt;
|
|
256
|
+
if (releaseDate) result.releaseDate = releaseDate;
|
|
257
|
+
const groups = (chapter.relationships ?? []).filter(rel => rel.type === 'scanlation_group').map(rel => rel.attributes?.name?.trim()).filter(name => Boolean(name));
|
|
258
|
+
if (groups.length > 0) result.scanlator = groups.join(' & ');
|
|
259
|
+
if (attributes.translatedLanguage) result.language = attributes.translatedLanguage;
|
|
260
|
+
result.url = `${this.baseUrl}/chapter/${chapter.id}`;
|
|
261
|
+
return result;
|
|
264
262
|
};
|
|
265
|
-
}
|
|
266
263
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
264
|
+
/** Names of the title's authors or artists (included with the request), without repeats. */
|
|
265
|
+
relatedNames = (manga, type) => {
|
|
266
|
+
const names = [];
|
|
267
|
+
for (const rel of manga.relationships ?? []) {
|
|
268
|
+
const name = rel.type === type ? rel.attributes?.name?.trim() : undefined;
|
|
269
|
+
if (name && !names.includes(name)) names.push(name);
|
|
270
|
+
}
|
|
271
|
+
return names;
|
|
272
|
+
};
|
|
273
|
+
tagNames = (manga, group) => (manga.attributes.tags ?? []).filter(tag => tag.attributes.group === group).flatMap(tag => {
|
|
274
|
+
const names = entries(tag.attributes.name);
|
|
275
|
+
const name = (names.find(([lang]) => lang === 'en') ?? names[0])?.[1];
|
|
276
|
+
return name ? [name] : [];
|
|
277
|
+
});
|
|
274
278
|
|
|
275
|
-
|
|
279
|
+
/** The API's own error message when it sent one (e.g. `Manga ... not found.`). */
|
|
280
|
+
error = err => {
|
|
281
|
+
const response = err?.response;
|
|
282
|
+
const detail = response?.data?.errors?.[0]?.detail;
|
|
283
|
+
if (detail) return new Error(`[${this.name}] ${detail}`);
|
|
284
|
+
if (err?.code === 'ERR_BAD_REQUEST') return new Error(`[${this.name}] Bad request. Make sure you have entered a valid query.`);
|
|
285
|
+
return new Error(`[${this.name}] ${err?.message ?? String(err)}`);
|
|
286
|
+
};
|
|
287
|
+
}
|
|
276
288
|
//# sourceMappingURL=mangadex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["axios","encode","MangaParser","capitalizeFirstLetter","substringBefore","MangaDex","name","baseUrl","logo","classPath","apiUrl","fetchMangaInfo","mangaId","data","get","mangaInfo","id","title","attributes","en","altTitles","description","genres","tags","filter","tag","group","map","themes","status","releaseDate","year","chapters","allChapters","fetchAllChapters","chapter","push","chapterNumber","volumeNumber","volume","pages","findCoverArt","relationships","find","rel","type","coverArt","fetchCoverImage","image","err","code","Error","message","fetchChapterPages","chapterId","res","img","hash","page","parseInt","replace","search","query","limit","result","results","currentPage","manga","item","coverArtId","Object","values","contentRating","lastVolume","lastChapter","fetchRandom","fetchRecentlyAdded","fetchLatestUpdates","fetchPopular","offset","total","response","coverId","fileName"],"sourceRoot":"../../../../src","sources":["providers/manga/mangadex.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,mBAAmB;AAG1C,SAKEC,WAAW,QAEN,uBAAc;AACrB,SAASC,qBAAqB,EAAEC,eAAe,QAAQ,sBAAa;AAEpE,MAAMC,QAAQ,SAASH,WAAW,CAAC;EACfI,IAAI,GAAG,UAAU;EAChBC,OAAO,GAAG,sBAAsB;EAChCC,IAAI,GAAG,+EAA+E;EACtFC,SAAS,GAAG,gBAAgB;EAE9BC,MAAM,GAAG,0BAA0B;EAE3CC,cAAc,GAAG,MAAOC,OAAe,IAA0B;IACxE,IAAI;MACF,MAAM;QAAEC;MAAK,CAAC,GAAG,MAAMb,KAAK,CAACc,GAAG,CAAC,GAAG,IAAI,CAACJ,MAAM,UAAUE,OAAO,EAAE,CAAC;MACnE,MAAMG,SAAqB,GAAG;QAC5BC,EAAE,EAAEH,IAAI,CAACA,IAAI,CAACG,EAAE;QAChBC,KAAK,EAAEJ,IAAI,CAACA,IAAI,CAACK,UAAU,CAACD,KAAK,CAACE,EAAE;QACpCC,SAAS,EAAEP,IAAI,CAACA,IAAI,CAACK,UAAU,CAACE,SAAS;QACzCC,WAAW,EAAER,IAAI,CAACA,IAAI,CAACK,UAAU,CAACG,WAAW;QAC7CC,MAAM,EAAET,IAAI,CAACA,IAAI,CAACK,UAAU,CAACK,IAAI,CAC9BC,MAAM,CAAEC,GAAQ,IAAKA,GAAG,CAACP,UAAU,CAACQ,KAAK,KAAK,OAAO,CAAC,CACtDC,GAAG,CAAEF,GAAQ,IAAKA,GAAG,CAACP,UAAU,CAACZ,IAAI,CAACa,EAAE,CAAC;QAC5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;IACF,CAAC,CAAC,OAAOH,GAAG,EAAE;MACZ,MAAM,IAAIE,KAAK,CAAEF,GAAG,CAAWG,OAAO,CAAC;IACzC;EACF,CAAC;EACOlB,gBAAgB,GAAG,MAAAA,CAAOtB,OAAe,EAAEmE,MAAc,EAAExB,GAA6B,KAAqB;IACnH,IAAIA,GAAG,EAAE1C,IAAI,EAAEkE,MAAM,GAAG,EAAE,IAAIxB,GAAG,EAAE1C,IAAI,EAAEmE,KAAK,EAAE;MAC9C,OAAO,EAAE;IACX;IAEA,MAAMC,QAAQ,GAAG,MAAMjF,KAAK,CAACc,GAAG,CAC9B,GAAG,IAAI,CAACJ,MAAM,UAAUE,OAAO,gBAAgBmE,MAAM,0EACvD,CAAC;IAED,OAAO,CAAC,GAAGE,QAAQ,CAACpE,IAAI,CAACA,IAAI,EAAE,IAAI,MAAM,IAAI,CAACqB,gBAAgB,CAACtB,OAAO,EAAEmE,MAAM,GAAG,EAAE,EAAEE,QAAQ,CAAC,CAAC,CAAC;EAClG,CAAC;EAEOlC,eAAe,GAAG,MAAOmC,OAAe,IAAsB;IACpE,MAAM;MAAErE;IAAK,CAAC,GAAG,MAAMb,KAAK,CAACc,GAAG,CAAC,GAAG,IAAI,CAACJ,MAAM,UAAUwE,OAAO,EAAE,CAAC;IAEnE,MAAMC,QAAQ,GAAGtE,IAAI,CAACA,IAAI,CAACK,UAAU,CAACiE,QAAQ;IAE9C,OAAOA,QAAQ;EACjB,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe9E,QAAQ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["MangaParser","MediaStatus","createProviderContext","parseChapterNumber","sortChaptersForReading","STATUSES","ongoing","ONGOING","completed","COMPLETED","hiatus","HIATUS","cancelled","CANCELLED","FEED_PAGE_SIZE","MAX_RESULT_WINDOW","ALL_CONTENT_RATINGS","queryString","params","map","key","value","encodeURIComponent","String","join","toNumber","text","trim","undefined","Number","isFinite","entries","Object","flatMap","lang","pickTitles","main","alts","mainTitles","altTitleList","alt","chosen","find","title","altTitles","includes","push","markdownToText","markdown","replace","MangaDex","name","baseUrl","logo","classPath","apiUrl","uploadsUrl","constructor","ctx","fetchMangaInfo","mangaId","data","chapters","Promise","all","axios","get","fetchChapters","manga","attributes","info","toResult","authors","relatedNames","length","artists","genres","tagNames","themes","malId","links","mal","chapterNumbersResetOnNewVolume","err","error","fetchChapterPages","chapterId","dataSaver","server","files","chapter","Error","folder","file","index","img","hash","page","search","query","limit","fetchList","fetchRandom","currentPage","hasNextPage","results","fetchRecentlyAdded","fetchLatestUpdates","fetchPopular","offset","result","errors","detail","message","total","Math","min","totalResults","Infinity","rating","toChapter","thumbnail","id","cover","relationships","rel","type","fileName","image","descriptions","description","status","UNKNOWN","year","releaseDate","url","contentRating","lastVolume","lastChapter","chapterNumber","volumeNumber","volume","label","pages","publishAt","readableAt","groups","filter","Boolean","scanlator","translatedLanguage","language","names","group","tags","tag","response","code"],"sourceRoot":"../../../../src","sources":["providers/manga/mangadex.ts"],"mappings":";;AAEA,SAMEA,WAAW,EACXC,WAAW,QAEN,uBAAc;AACrB,SAASC,qBAAqB,QAAQ,wCAAqC;AAC3E,SAASC,kBAAkB,EAAEC,sBAAsB,QAAQ,sBAAmB;;AAE9E;;AAyCA,MAAMC,QAAqC,GAAG;EAC5CC,OAAO,EAAEL,WAAW,CAACM,OAAO;EAC5BC,SAAS,EAAEP,WAAW,CAACQ,SAAS;EAChCC,MAAM,EAAET,WAAW,CAACU,MAAM;EAC1BC,SAAS,EAAEX,WAAW,CAACY;AACzB,CAAC;;AAED;AACA,MAAMC,cAAc,GAAG,GAAG;AAC1B;AACA,MAAMC,iBAAiB,GAAG,KAAK;AAC/B;AACA,MAAMC,mBAAmB,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,cAAc,CAAC;;AAE7E;AACA,MAAMC,WAAW,GAAIC,MAAmC,IACtDA,MAAM,CAACC,GAAG,CAAC,CAAC,CAAC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