react-native-consumet 3.0.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/android/build.gradle +1 -18
- package/android/generated/java/com/consumet/NativeConsumetSpec.java +0 -8
- package/android/generated/jni/RNConsumetSpec-generated.cpp +0 -12
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +0 -18
- package/android/src/androidTest/java/com/consumet/WebViewContractTest.kt +41 -21
- package/android/src/main/AndroidManifest.xml +2 -3
- package/android/src/main/java/com/consumet/ConsumetModule.kt +0 -11
- package/android/src/main/java/com/consumet/DeobfuscatorModule.kt +6 -11
- package/android/src/main/java/com/consumet/HttpClients.kt +26 -0
- package/android/src/main/java/com/consumet/HttpRequestModule.kt +107 -185
- package/android/src/main/java/com/consumet/RequestHeaders.kt +39 -0
- package/android/src/main/java/com/consumet/WebViewTask.kt +33 -23
- package/ios/Consumet.mm +312 -427
- package/ios/RCConsumetSynchronyCache.m +3 -1
- package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec-generated.mm +0 -14
- package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec.h +0 -6
- package/ios/generated/ReactCodegen/RNConsumetSpecJSI.h +0 -18
- package/lib/commonjs/NativeConsumet.ts +38 -45
- package/lib/commonjs/extension-registry.json +42 -153
- package/lib/commonjs/extension-registry.json.sig +1 -1
- package/lib/commonjs/extractors/file-hosts.js +42 -0
- package/lib/commonjs/extractors/file-hosts.js.map +1 -0
- package/lib/commonjs/extractors/flixcloud.js +25 -60
- package/lib/commonjs/extractors/flixcloud.js.map +1 -1
- package/lib/commonjs/extractors/gofile.js +85 -96
- package/lib/commonjs/extractors/gofile.js.map +1 -1
- package/lib/commonjs/extractors/hls.js +46 -0
- package/lib/commonjs/extractors/hls.js.map +1 -0
- package/lib/commonjs/extractors/hubcloud.js +109 -273
- package/lib/commonjs/extractors/hubcloud.js.map +1 -1
- package/lib/commonjs/extractors/index.js +4 -116
- package/lib/commonjs/extractors/index.js.map +1 -1
- package/lib/commonjs/extractors/kwik.js +15 -49
- package/lib/commonjs/extractors/kwik.js.map +1 -1
- package/lib/commonjs/extractors/megacloud.js +67 -140
- package/lib/commonjs/extractors/megacloud.js.map +1 -1
- package/lib/commonjs/extractors/megaplay.js +78 -128
- package/lib/commonjs/extractors/megaplay.js.map +1 -1
- package/lib/commonjs/extractors/packer.js +40 -0
- package/lib/commonjs/extractors/packer.js.map +1 -0
- package/lib/commonjs/extractors/streamwish.js +47 -103
- package/lib/commonjs/extractors/streamwish.js.map +1 -1
- package/lib/commonjs/extractors/url.js +11 -0
- package/lib/commonjs/extractors/url.js.map +1 -0
- package/lib/commonjs/extractors/vidhide.js +32 -59
- package/lib/commonjs/extractors/vidhide.js.map +1 -1
- package/lib/commonjs/index.js +111 -219
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/anime-parser.js +4 -17
- package/lib/commonjs/models/anime-parser.js.map +1 -1
- package/lib/commonjs/models/base-parser.js.map +1 -1
- package/lib/commonjs/models/base-provider.js +6 -33
- package/lib/commonjs/models/base-provider.js.map +1 -1
- package/lib/commonjs/models/index.js +21 -56
- package/lib/commonjs/models/index.js.map +1 -1
- package/lib/commonjs/models/lightnovel-parser.js.map +1 -1
- package/lib/commonjs/models/manga-parser.js.map +1 -1
- package/lib/commonjs/models/meta-error.js +4 -1
- package/lib/commonjs/models/meta-error.js.map +1 -1
- package/lib/commonjs/models/movie-parser.js.map +1 -1
- package/lib/commonjs/models/types.js +13 -22
- package/lib/commonjs/models/types.js.map +1 -1
- package/lib/commonjs/models/video-extractor.js +0 -10
- package/lib/commonjs/models/video-extractor.js.map +1 -1
- package/lib/commonjs/providers/anime/anikoto/anikoto.js +3 -182
- package/lib/commonjs/providers/anime/anikoto/anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js +258 -440
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/animepahe.js +2 -66
- package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +165 -188
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/anineko/anineko.js +2 -32
- package/lib/commonjs/providers/anime/anineko/anineko.js.map +1 -1
- package/lib/commonjs/providers/anime/anineko/create-anineko.js +119 -210
- package/lib/commonjs/providers/anime/anineko/create-anineko.js.map +1 -1
- package/lib/commonjs/providers/anime/helpers.js +16 -0
- package/lib/commonjs/providers/anime/helpers.js.map +1 -0
- package/lib/commonjs/providers/anime/hianime.js +77 -0
- package/lib/commonjs/providers/anime/hianime.js.map +1 -0
- package/lib/commonjs/providers/anime/index.js +0 -4
- package/lib/commonjs/providers/anime/index.js.map +1 -1
- package/lib/commonjs/providers/anime/reanime/create-reanime.js +36 -60
- package/lib/commonjs/providers/anime/reanime/create-reanime.js.map +1 -1
- package/lib/commonjs/providers/anime/reanime/reanime.js +2 -27
- package/lib/commonjs/providers/anime/reanime/reanime.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/create-zoro.js +283 -507
- package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/zoro.js +2 -184
- package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/commonjs/providers/common/enc-dec.js +9 -0
- package/lib/commonjs/providers/common/enc-dec.js.map +1 -0
- package/lib/commonjs/providers/common/media-status.js +20 -0
- package/lib/commonjs/providers/common/media-status.js.map +1 -0
- package/lib/commonjs/providers/common/search.js +15 -0
- package/lib/commonjs/providers/common/search.js.map +1 -0
- package/lib/commonjs/providers/common/servers.js +39 -0
- package/lib/commonjs/providers/common/servers.js.map +1 -0
- package/lib/commonjs/providers/index.js +2 -3
- package/lib/commonjs/providers/index.js.map +1 -1
- package/lib/commonjs/providers/light-novels/novelupdates.js +49 -98
- package/lib/commonjs/providers/light-novels/novelupdates.js.map +1 -1
- package/lib/commonjs/providers/light-novels/readlightnovels.js +51 -93
- package/lib/commonjs/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/commonjs/providers/manga/asurascans.js +14 -49
- package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
- package/lib/commonjs/providers/manga/flamescans.js +11 -33
- package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
- package/lib/commonjs/providers/manga/mangadex.js +18 -17
- package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahere.js +107 -169
- package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
- package/lib/commonjs/providers/manga/mangakakalot.js +26 -56
- package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapill.js +82 -120
- package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
- package/lib/commonjs/providers/manga/shared.js +72 -0
- package/lib/commonjs/providers/manga/shared.js.map +1 -0
- package/lib/commonjs/providers/meta/anilist-media.js +242 -0
- package/lib/commonjs/providers/meta/anilist-media.js.map +1 -0
- package/lib/commonjs/providers/meta/anilist.js +420 -838
- package/lib/commonjs/providers/meta/anilist.js.map +1 -1
- package/lib/commonjs/providers/meta/index.js +2 -2
- package/lib/commonjs/providers/meta/index.js.map +1 -1
- package/lib/commonjs/providers/meta/mal.js +137 -321
- package/lib/commonjs/providers/meta/mal.js.map +1 -1
- package/lib/commonjs/providers/meta/shared.js +127 -0
- package/lib/commonjs/providers/meta/shared.js.map +1 -0
- package/lib/commonjs/providers/meta/tmdb.js +138 -291
- package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/create-himovies.js +161 -366
- package/lib/commonjs/providers/movies/himovies/create-himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/himovies.js +2 -70
- package/lib/commonjs/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/index.js +7 -11
- package/lib/commonjs/providers/movies/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js +216 -409
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/multimovies.js +2 -42
- package/lib/commonjs/providers/movies/multimovies/multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/create-multistream.js +130 -0
- package/lib/commonjs/providers/movies/multistream/create-multistream.js.map +1 -0
- package/lib/commonjs/providers/movies/multistream/multistream.js +12 -0
- package/lib/commonjs/providers/movies/multistream/multistream.js.map +1 -0
- package/lib/commonjs/providers/movies/multistream/utils.js +330 -406
- package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js +27 -6
- package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js +6 -15
- package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
- package/lib/commonjs/providers/movies/site-paths.js +33 -0
- package/lib/commonjs/providers/movies/site-paths.js.map +1 -0
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js +427 -658
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
- package/lib/commonjs/providers/movies/vegamovies/vegamovies.js +2 -44
- package/lib/commonjs/providers/movies/vegamovies/vegamovies.js.map +1 -1
- package/lib/commonjs/providers/provider-class.js +28 -0
- package/lib/commonjs/providers/provider-class.js.map +1 -0
- package/lib/commonjs/registry-signing-keys.json +6 -0
- package/lib/commonjs/utils/ExtractorManager.js +83 -221
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +93 -243
- package/lib/commonjs/utils/ProviderManager.js.map +1 -1
- package/lib/commonjs/utils/constants.js +3 -9
- package/lib/commonjs/utils/constants.js.map +1 -1
- package/lib/commonjs/utils/create-extractor-context.js +29 -17
- package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
- package/lib/commonjs/utils/create-provider-context.js +32 -98
- package/lib/commonjs/utils/create-provider-context.js.map +1 -1
- package/lib/commonjs/utils/extension-integrity.js +2 -2
- package/lib/commonjs/utils/extension-integrity.js.map +1 -1
- package/lib/commonjs/utils/extension-modules.js +151 -33
- package/lib/commonjs/utils/extension-modules.js.map +1 -1
- package/lib/commonjs/utils/fetch-with-timeout.js +3 -2
- package/lib/commonjs/utils/fetch-with-timeout.js.map +1 -1
- package/lib/commonjs/utils/meta-http.js +18 -28
- package/lib/commonjs/utils/meta-http.js.map +1 -1
- package/lib/commonjs/utils/registry-schema.js +47 -14
- package/lib/commonjs/utils/registry-schema.js.map +1 -1
- package/lib/commonjs/utils/registry-signature-format.js +43 -0
- package/lib/commonjs/utils/registry-signature-format.js.map +1 -0
- package/lib/commonjs/utils/registry-signature.js +27 -62
- package/lib/commonjs/utils/registry-signature.js.map +1 -1
- package/lib/commonjs/utils/runtime-modules.js +14 -0
- package/lib/commonjs/utils/runtime-modules.js.map +1 -0
- package/lib/commonjs/utils/tmdb.js +140 -0
- package/lib/commonjs/utils/tmdb.js.map +1 -0
- package/lib/commonjs/utils/url-polyfill.js +13 -59
- package/lib/commonjs/utils/url-polyfill.js.map +1 -1
- package/lib/commonjs/utils/utf8.js +52 -0
- package/lib/commonjs/utils/utf8.js.map +1 -0
- package/lib/commonjs/utils/utils.js +23 -326
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/NativeConsumet.ts +38 -45
- package/lib/module/extension-registry.json +42 -153
- package/lib/module/extension-registry.json.sig +1 -1
- package/lib/module/extractors/file-hosts.js +32 -0
- package/lib/module/extractors/file-hosts.js.map +1 -0
- package/lib/module/extractors/flixcloud.js +23 -57
- package/lib/module/extractors/flixcloud.js.map +1 -1
- package/lib/module/extractors/gofile.js +85 -96
- package/lib/module/extractors/gofile.js.map +1 -1
- package/lib/module/extractors/hls.js +41 -0
- package/lib/module/extractors/hls.js.map +1 -0
- package/lib/module/extractors/hubcloud.js +110 -273
- package/lib/module/extractors/hubcloud.js.map +1 -1
- package/lib/module/extractors/index.js +4 -20
- package/lib/module/extractors/index.js.map +1 -1
- package/lib/module/extractors/kwik.js +16 -49
- package/lib/module/extractors/kwik.js.map +1 -1
- package/lib/module/extractors/megacloud.js +68 -140
- package/lib/module/extractors/megacloud.js.map +1 -1
- package/lib/module/extractors/megaplay.js +78 -128
- package/lib/module/extractors/megaplay.js.map +1 -1
- package/lib/module/extractors/packer.js +36 -0
- package/lib/module/extractors/packer.js.map +1 -0
- package/lib/module/extractors/streamwish.js +47 -103
- package/lib/module/extractors/streamwish.js.map +1 -1
- package/lib/module/extractors/url.js +7 -0
- package/lib/module/extractors/url.js.map +1 -0
- package/lib/module/extractors/vidhide.js +32 -59
- package/lib/module/extractors/vidhide.js.map +1 -1
- package/lib/module/index.js +20 -49
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/anime-parser.js +4 -17
- package/lib/module/models/anime-parser.js.map +1 -1
- package/lib/module/models/base-parser.js.map +1 -1
- package/lib/module/models/base-provider.js +6 -33
- package/lib/module/models/base-provider.js.map +1 -1
- package/lib/module/models/index.js +8 -10
- package/lib/module/models/index.js.map +1 -1
- package/lib/module/models/lightnovel-parser.js.map +1 -1
- package/lib/module/models/manga-parser.js.map +1 -1
- package/lib/module/models/meta-error.js +4 -1
- package/lib/module/models/meta-error.js.map +1 -1
- package/lib/module/models/movie-parser.js.map +1 -1
- package/lib/module/models/types.js +12 -21
- package/lib/module/models/types.js.map +1 -1
- package/lib/module/models/video-extractor.js +1 -9
- package/lib/module/models/video-extractor.js.map +1 -1
- package/lib/module/providers/anime/anikoto/anikoto.js +2 -181
- package/lib/module/providers/anime/anikoto/anikoto.js.map +1 -1
- package/lib/module/providers/anime/anikoto/create-anikoto.js +258 -440
- package/lib/module/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/module/providers/anime/animepahe/animepahe.js +2 -66
- package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/module/providers/anime/animepahe/create-animepahe.js +165 -188
- package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/module/providers/anime/anineko/anineko.js +2 -31
- package/lib/module/providers/anime/anineko/anineko.js.map +1 -1
- package/lib/module/providers/anime/anineko/create-anineko.js +119 -210
- package/lib/module/providers/anime/anineko/create-anineko.js.map +1 -1
- package/lib/module/providers/anime/helpers.js +12 -0
- package/lib/module/providers/anime/helpers.js.map +1 -0
- package/lib/module/providers/anime/hianime.js +69 -0
- package/lib/module/providers/anime/hianime.js.map +1 -0
- package/lib/module/providers/anime/index.js +0 -4
- package/lib/module/providers/anime/index.js.map +1 -1
- package/lib/module/providers/anime/reanime/create-reanime.js +34 -58
- package/lib/module/providers/anime/reanime/create-reanime.js.map +1 -1
- package/lib/module/providers/anime/reanime/reanime.js +2 -26
- package/lib/module/providers/anime/reanime/reanime.js.map +1 -1
- package/lib/module/providers/anime/zoro/create-zoro.js +283 -507
- package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/module/providers/anime/zoro/zoro.js +2 -184
- package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/module/providers/common/enc-dec.js +5 -0
- package/lib/module/providers/common/enc-dec.js.map +1 -0
- package/lib/module/providers/common/media-status.js +17 -0
- package/lib/module/providers/common/media-status.js.map +1 -0
- package/lib/module/providers/common/search.js +11 -0
- package/lib/module/providers/common/search.js.map +1 -0
- package/lib/module/providers/common/servers.js +33 -0
- package/lib/module/providers/common/servers.js.map +1 -0
- package/lib/module/providers/index.js +5 -6
- package/lib/module/providers/index.js.map +1 -1
- package/lib/module/providers/light-novels/novelupdates.js +51 -99
- package/lib/module/providers/light-novels/novelupdates.js.map +1 -1
- package/lib/module/providers/light-novels/readlightnovels.js +52 -93
- package/lib/module/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/module/providers/manga/asurascans.js +14 -49
- package/lib/module/providers/manga/asurascans.js.map +1 -1
- package/lib/module/providers/manga/flamescans.js +12 -34
- package/lib/module/providers/manga/flamescans.js.map +1 -1
- package/lib/module/providers/manga/mangadex.js +19 -18
- package/lib/module/providers/manga/mangadex.js.map +1 -1
- package/lib/module/providers/manga/mangahere.js +108 -170
- package/lib/module/providers/manga/mangahere.js.map +1 -1
- package/lib/module/providers/manga/mangakakalot.js +27 -57
- package/lib/module/providers/manga/mangakakalot.js.map +1 -1
- package/lib/module/providers/manga/mangapill.js +83 -122
- package/lib/module/providers/manga/mangapill.js.map +1 -1
- package/lib/module/providers/manga/shared.js +63 -0
- package/lib/module/providers/manga/shared.js.map +1 -0
- package/lib/module/providers/meta/anilist-media.js +229 -0
- package/lib/module/providers/meta/anilist-media.js.map +1 -0
- package/lib/module/providers/meta/anilist.js +414 -833
- package/lib/module/providers/meta/anilist.js.map +1 -1
- package/lib/module/providers/meta/index.js +1 -1
- package/lib/module/providers/meta/index.js.map +1 -1
- package/lib/module/providers/meta/mal.js +134 -320
- package/lib/module/providers/meta/mal.js.map +1 -1
- package/lib/module/providers/meta/shared.js +119 -0
- package/lib/module/providers/meta/shared.js.map +1 -0
- package/lib/module/providers/meta/tmdb.js +136 -290
- package/lib/module/providers/meta/tmdb.js.map +1 -1
- package/lib/module/providers/movies/himovies/create-himovies.js +161 -366
- package/lib/module/providers/movies/himovies/create-himovies.js.map +1 -1
- package/lib/module/providers/movies/himovies/himovies.js +2 -70
- package/lib/module/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/module/providers/movies/index.js +5 -9
- package/lib/module/providers/movies/index.js.map +1 -1
- package/lib/module/providers/movies/multimovies/create-multimovies.js +217 -409
- package/lib/module/providers/movies/multimovies/create-multimovies.js.map +1 -1
- package/lib/module/providers/movies/multimovies/multimovies.js +2 -42
- package/lib/module/providers/movies/multimovies/multimovies.js.map +1 -1
- package/lib/module/providers/movies/multistream/create-multistream.js +127 -0
- package/lib/module/providers/movies/multistream/create-multistream.js.map +1 -0
- package/lib/module/providers/movies/multistream/multistream.js +9 -0
- package/lib/module/providers/movies/multistream/multistream.js.map +1 -0
- package/lib/module/providers/movies/multistream/utils.js +325 -397
- package/lib/module/providers/movies/multistream/utils.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js +27 -6
- package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/netflixmirror.js +6 -14
- package/lib/module/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
- package/lib/module/providers/movies/site-paths.js +27 -0
- package/lib/module/providers/movies/site-paths.js.map +1 -0
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js +427 -658
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
- package/lib/module/providers/movies/vegamovies/vegamovies.js +2 -44
- package/lib/module/providers/movies/vegamovies/vegamovies.js.map +1 -1
- package/lib/module/providers/provider-class.js +25 -0
- package/lib/module/providers/provider-class.js.map +1 -0
- package/lib/module/registry-signing-keys.json +6 -0
- package/lib/module/utils/ExtractorManager.js +83 -221
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +94 -243
- package/lib/module/utils/ProviderManager.js.map +1 -1
- package/lib/module/utils/constants.js +2 -8
- package/lib/module/utils/constants.js.map +1 -1
- package/lib/module/utils/create-extractor-context.js +28 -18
- package/lib/module/utils/create-extractor-context.js.map +1 -1
- package/lib/module/utils/create-provider-context.js +33 -98
- package/lib/module/utils/create-provider-context.js.map +1 -1
- package/lib/module/utils/extension-integrity.js +1 -1
- package/lib/module/utils/extension-integrity.js.map +1 -1
- package/lib/module/utils/extension-modules.js +147 -33
- package/lib/module/utils/extension-modules.js.map +1 -1
- package/lib/module/utils/fetch-with-timeout.js +3 -2
- package/lib/module/utils/fetch-with-timeout.js.map +1 -1
- package/lib/module/utils/meta-http.js +17 -26
- package/lib/module/utils/meta-http.js.map +1 -1
- package/lib/module/utils/registry-schema.js +45 -13
- package/lib/module/utils/registry-schema.js.map +1 -1
- package/lib/module/utils/registry-signature-format.js +37 -0
- package/lib/module/utils/registry-signature-format.js.map +1 -0
- package/lib/module/utils/registry-signature.js +23 -58
- package/lib/module/utils/registry-signature.js.map +1 -1
- package/lib/module/utils/runtime-modules.js +10 -0
- package/lib/module/utils/runtime-modules.js.map +1 -0
- package/lib/module/utils/tmdb.js +128 -0
- package/lib/module/utils/tmdb.js.map +1 -0
- package/lib/module/utils/url-polyfill.js +1 -47
- package/lib/module/utils/url-polyfill.js.map +1 -1
- package/lib/module/utils/utf8.js +45 -0
- package/lib/module/utils/utf8.js.map +1 -0
- package/lib/module/utils/utils.js +16 -281
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts +32 -72
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/file-hosts.d.ts +18 -0
- package/lib/typescript/commonjs/src/extractors/file-hosts.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts +9 -9
- package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gofile.d.ts +5 -6
- package/lib/typescript/commonjs/src/extractors/gofile.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/hls.d.ts +14 -0
- package/lib/typescript/commonjs/src/extractors/hls.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts +8 -4
- package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/index.d.ts +4 -20
- package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts +6 -7
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megacloud.d.ts +7 -5
- package/lib/typescript/commonjs/src/extractors/megacloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megaplay.d.ts +6 -7
- package/lib/typescript/commonjs/src/extractors/megaplay.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/packer.d.ts +3 -0
- package/lib/typescript/commonjs/src/extractors/packer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/streamwish.d.ts +5 -7
- package/lib/typescript/commonjs/src/extractors/streamwish.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/url.d.ts +4 -0
- package/lib/typescript/commonjs/src/extractors/url.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts +5 -7
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +16 -20
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/anime-parser.d.ts +10 -21
- package/lib/typescript/commonjs/src/models/anime-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/base-parser.d.ts +0 -5
- package/lib/typescript/commonjs/src/models/base-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/base-provider.d.ts +7 -31
- package/lib/typescript/commonjs/src/models/base-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts +3 -1
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts +5 -34
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/index.d.ts +12 -15
- package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/lightnovel-parser.d.ts +5 -12
- package/lib/typescript/commonjs/src/models/lightnovel-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/manga-parser.d.ts +2 -10
- package/lib/typescript/commonjs/src/models/manga-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/meta-error.d.ts +5 -2
- package/lib/typescript/commonjs/src/models/meta-error.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/movie-parser.d.ts +8 -24
- package/lib/typescript/commonjs/src/models/movie-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/provider-context.d.ts +11 -138
- package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/types.d.ts +16 -39
- package/lib/typescript/commonjs/src/models/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/video-extractor.d.ts +7 -38
- package/lib/typescript/commonjs/src/models/video-extractor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts +4 -148
- package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts +2 -2
- package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts +4 -40
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts +4 -4
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts +4 -27
- package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts +2 -2
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/helpers.d.ts +6 -0
- package/lib/typescript/commonjs/src/providers/anime/helpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/hianime.d.ts +24 -0
- package/lib/typescript/commonjs/src/providers/anime/hianime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts +5 -14
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts +2 -2
- package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts +4 -23
- package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +4 -4
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts +4 -138
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/common/enc-dec.d.ts +3 -0
- package/lib/typescript/commonjs/src/providers/common/enc-dec.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/common/media-status.d.ts +7 -0
- package/lib/typescript/commonjs/src/providers/common/media-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/common/search.d.ts +4 -0
- package/lib/typescript/commonjs/src/providers/common/search.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/common/servers.d.ts +16 -0
- package/lib/typescript/commonjs/src/providers/common/servers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/index.d.ts +5 -6
- package/lib/typescript/commonjs/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts +11 -12
- package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts +3 -11
- package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts +1 -5
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts +2 -4
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts +6 -4
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts +4 -4
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts +4 -13
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts +1 -8
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/shared.d.ts +28 -0
- package/lib/typescript/commonjs/src/providers/manga/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/meta/anilist-media.d.ts +176 -0
- package/lib/typescript/commonjs/src/providers/meta/anilist-media.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts +80 -128
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/index.d.ts +1 -2
- package/lib/typescript/commonjs/src/providers/meta/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/mal.d.ts +12 -18
- package/lib/typescript/commonjs/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/shared.d.ts +45 -0
- package/lib/typescript/commonjs/src/providers/meta/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts +18 -26
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/himovies/create-himovies.d.ts +6 -2
- package/lib/typescript/commonjs/src/providers/movies/himovies/create-himovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts +4 -49
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts +9 -18
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multimovies/create-multimovies.d.ts +8 -3
- package/lib/typescript/commonjs/src/providers/movies/multimovies/create-multimovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts +4 -25
- package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/create-multistream.d.ts +26 -0
- package/lib/typescript/commonjs/src/providers/movies/multistream/create-multistream.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/multistream/multistream.d.ts +6 -0
- package/lib/typescript/commonjs/src/providers/movies/multistream/multistream.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +21 -19
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts +40 -8
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts +8 -11
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/site-paths.d.ts +11 -0
- package/lib/typescript/commonjs/src/providers/movies/site-paths.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/create-vegamovies.d.ts +9 -3
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts +4 -27
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/provider-class.d.ts +23 -0
- package/lib/typescript/commonjs/src/providers/provider-class.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts +31 -51
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +37 -70
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/constants.d.ts +2 -7
- package/lib/typescript/commonjs/src/utils/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts +17 -5
- package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts +12 -8
- package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/extension-integrity.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/extension-modules.d.ts +46 -21
- package/lib/typescript/commonjs/src/utils/extension-modules.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/meta-http.d.ts +2 -13
- package/lib/typescript/commonjs/src/utils/meta-http.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/registry-schema.d.ts +26 -0
- package/lib/typescript/commonjs/src/utils/registry-schema.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/registry-signature-format.d.ts +15 -0
- package/lib/typescript/commonjs/src/utils/registry-signature-format.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/registry-signature.d.ts +10 -4
- package/lib/typescript/commonjs/src/utils/registry-signature.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/runtime-modules.d.ts +8 -0
- package/lib/typescript/commonjs/src/utils/runtime-modules.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/tmdb.d.ts +71 -0
- package/lib/typescript/commonjs/src/utils/tmdb.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/utf8.d.ts +7 -0
- package/lib/typescript/commonjs/src/utils/utf8.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/utils.d.ts +12 -36
- package/lib/typescript/commonjs/src/utils/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/NativeConsumet.d.ts +32 -72
- package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/file-hosts.d.ts +18 -0
- package/lib/typescript/module/src/extractors/file-hosts.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/flixcloud.d.ts +9 -9
- package/lib/typescript/module/src/extractors/flixcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gofile.d.ts +5 -6
- package/lib/typescript/module/src/extractors/gofile.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/hls.d.ts +14 -0
- package/lib/typescript/module/src/extractors/hls.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/hubcloud.d.ts +8 -4
- package/lib/typescript/module/src/extractors/hubcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/index.d.ts +4 -20
- package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts +6 -7
- package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megacloud.d.ts +7 -5
- package/lib/typescript/module/src/extractors/megacloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megaplay.d.ts +6 -7
- package/lib/typescript/module/src/extractors/megaplay.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/packer.d.ts +3 -0
- package/lib/typescript/module/src/extractors/packer.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/streamwish.d.ts +5 -7
- package/lib/typescript/module/src/extractors/streamwish.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/url.d.ts +4 -0
- package/lib/typescript/module/src/extractors/url.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/vidhide.d.ts +5 -7
- package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +16 -20
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/anime-parser.d.ts +10 -21
- package/lib/typescript/module/src/models/anime-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/base-parser.d.ts +0 -5
- package/lib/typescript/module/src/models/base-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/base-provider.d.ts +7 -31
- package/lib/typescript/module/src/models/base-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extension-manifest.d.ts +3 -1
- package/lib/typescript/module/src/models/extension-manifest.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extractor-context.d.ts +5 -34
- package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/index.d.ts +12 -15
- package/lib/typescript/module/src/models/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/lightnovel-parser.d.ts +5 -12
- package/lib/typescript/module/src/models/lightnovel-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/manga-parser.d.ts +2 -10
- package/lib/typescript/module/src/models/manga-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/meta-error.d.ts +5 -2
- package/lib/typescript/module/src/models/meta-error.d.ts.map +1 -1
- package/lib/typescript/module/src/models/movie-parser.d.ts +8 -24
- package/lib/typescript/module/src/models/movie-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/models/provider-context.d.ts +11 -138
- package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/types.d.ts +16 -39
- package/lib/typescript/module/src/models/types.d.ts.map +1 -1
- package/lib/typescript/module/src/models/video-extractor.d.ts +7 -38
- package/lib/typescript/module/src/models/video-extractor.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts +4 -148
- package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts +2 -2
- package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts +4 -40
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts +4 -4
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts +4 -27
- package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts +2 -2
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/helpers.d.ts +6 -0
- package/lib/typescript/module/src/providers/anime/helpers.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/hianime.d.ts +24 -0
- package/lib/typescript/module/src/providers/anime/hianime.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/index.d.ts +5 -14
- package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts +2 -2
- package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts +4 -23
- package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +4 -4
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts +4 -138
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/common/enc-dec.d.ts +3 -0
- package/lib/typescript/module/src/providers/common/enc-dec.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/common/media-status.d.ts +7 -0
- package/lib/typescript/module/src/providers/common/media-status.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/common/search.d.ts +4 -0
- package/lib/typescript/module/src/providers/common/search.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/common/servers.d.ts +16 -0
- package/lib/typescript/module/src/providers/common/servers.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/index.d.ts +5 -6
- package/lib/typescript/module/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts +11 -12
- package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts +3 -11
- package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts +1 -5
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts +2 -4
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts +6 -4
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts +4 -4
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts +4 -13
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts +1 -8
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/shared.d.ts +28 -0
- package/lib/typescript/module/src/providers/manga/shared.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/meta/anilist-media.d.ts +176 -0
- package/lib/typescript/module/src/providers/meta/anilist-media.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/meta/anilist.d.ts +80 -128
- package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/index.d.ts +1 -2
- package/lib/typescript/module/src/providers/meta/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/mal.d.ts +12 -18
- package/lib/typescript/module/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/shared.d.ts +45 -0
- package/lib/typescript/module/src/providers/meta/shared.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts +18 -26
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/himovies/create-himovies.d.ts +6 -2
- package/lib/typescript/module/src/providers/movies/himovies/create-himovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts +4 -49
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/index.d.ts +9 -18
- package/lib/typescript/module/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multimovies/create-multimovies.d.ts +8 -3
- package/lib/typescript/module/src/providers/movies/multimovies/create-multimovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts +4 -25
- package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/create-multistream.d.ts +26 -0
- package/lib/typescript/module/src/providers/movies/multistream/create-multistream.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/multistream/multistream.d.ts +6 -0
- package/lib/typescript/module/src/providers/movies/multistream/multistream.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +21 -19
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts +40 -8
- package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts +8 -11
- package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/site-paths.d.ts +11 -0
- package/lib/typescript/module/src/providers/movies/site-paths.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/vegamovies/create-vegamovies.d.ts +9 -3
- package/lib/typescript/module/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts +4 -27
- package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/provider-class.d.ts +23 -0
- package/lib/typescript/module/src/providers/provider-class.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts +31 -51
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts +37 -70
- package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/constants.d.ts +2 -7
- package/lib/typescript/module/src/utils/constants.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-extractor-context.d.ts +17 -5
- package/lib/typescript/module/src/utils/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-provider-context.d.ts +12 -8
- package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/extension-integrity.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/extension-modules.d.ts +46 -21
- package/lib/typescript/module/src/utils/extension-modules.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts +1 -1
- package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/meta-http.d.ts +2 -13
- package/lib/typescript/module/src/utils/meta-http.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/registry-schema.d.ts +26 -0
- package/lib/typescript/module/src/utils/registry-schema.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/registry-signature-format.d.ts +15 -0
- package/lib/typescript/module/src/utils/registry-signature-format.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/registry-signature.d.ts +10 -4
- package/lib/typescript/module/src/utils/registry-signature.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/runtime-modules.d.ts +8 -0
- package/lib/typescript/module/src/utils/runtime-modules.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/tmdb.d.ts +71 -0
- package/lib/typescript/module/src/utils/tmdb.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/url-polyfill.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/utf8.d.ts +7 -0
- package/lib/typescript/module/src/utils/utf8.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/utils.d.ts +12 -36
- package/lib/typescript/module/src/utils/utils.d.ts.map +1 -1
- package/package.json +8 -10
- package/src/NativeConsumet.ts +38 -45
- package/src/extension-registry.json +42 -153
- package/src/extension-registry.json.sig +1 -1
- package/src/extractors/file-hosts.ts +29 -0
- package/src/extractors/flixcloud.ts +23 -53
- package/src/extractors/gofile.ts +97 -126
- package/src/extractors/hls.ts +43 -0
- package/src/extractors/hubcloud.ts +111 -308
- package/src/extractors/index.ts +4 -20
- package/src/extractors/kwik.ts +17 -56
- package/src/extractors/megacloud.ts +50 -153
- package/src/extractors/megaplay.ts +77 -147
- package/src/extractors/packer.ts +40 -0
- package/src/extractors/streamwish.ts +50 -122
- package/src/extractors/url.ts +6 -0
- package/src/extractors/vidhide.ts +29 -81
- package/src/index.tsx +48 -228
- package/src/models/anime-parser.ts +12 -21
- package/src/models/base-parser.ts +0 -5
- package/src/models/base-provider.ts +7 -31
- package/src/models/extension-manifest.ts +4 -1
- package/src/models/extractor-context.ts +5 -46
- package/src/models/index.ts +12 -119
- package/src/models/lightnovel-parser.ts +5 -12
- package/src/models/manga-parser.ts +2 -10
- package/src/models/meta-error.ts +5 -2
- package/src/models/movie-parser.ts +9 -24
- package/src/models/provider-context.ts +11 -149
- package/src/models/types.ts +17 -41
- package/src/models/video-extractor.ts +7 -43
- package/src/providers/anime/anikoto/anikoto.ts +5 -218
- package/src/providers/anime/anikoto/create-anikoto.ts +278 -515
- package/src/providers/anime/animepahe/animepahe.ts +5 -78
- package/src/providers/anime/animepahe/create-animepahe.ts +168 -209
- package/src/providers/anime/anineko/anineko.ts +5 -53
- package/src/providers/anime/anineko/create-anineko.ts +103 -199
- package/src/providers/anime/helpers.ts +9 -0
- package/src/providers/anime/hianime.ts +67 -0
- package/src/providers/anime/index.ts +0 -4
- package/src/providers/anime/reanime/create-reanime.ts +30 -62
- package/src/providers/anime/reanime/reanime.ts +5 -44
- package/src/providers/anime/zoro/create-zoro.ts +299 -546
- package/src/providers/anime/zoro/zoro.ts +5 -200
- package/src/providers/common/enc-dec.ts +2 -0
- package/src/providers/common/media-status.ts +20 -0
- package/src/providers/common/search.ts +6 -0
- package/src/providers/common/servers.ts +36 -0
- package/src/providers/index.ts +5 -7
- package/src/providers/light-novels/novelupdates.ts +55 -125
- package/src/providers/light-novels/readlightnovels.ts +81 -117
- package/src/providers/manga/asurascans.ts +15 -57
- package/src/providers/manga/flamescans.ts +11 -44
- package/src/providers/manga/mangadex.ts +15 -23
- package/src/providers/manga/mangahere.ts +112 -188
- package/src/providers/manga/mangakakalot.ts +25 -66
- package/src/providers/manga/mangapill.ts +105 -149
- package/src/providers/manga/shared.ts +71 -0
- package/src/providers/meta/anilist-media.ts +230 -0
- package/src/providers/meta/anilist.ts +447 -889
- package/src/providers/meta/index.ts +1 -1
- package/src/providers/meta/mal.ts +154 -414
- package/src/providers/meta/shared.ts +129 -0
- package/src/providers/meta/tmdb.ts +192 -351
- package/src/providers/movies/himovies/create-himovies.ts +176 -442
- package/src/providers/movies/himovies/himovies.ts +5 -88
- package/src/providers/movies/index.ts +4 -8
- package/src/providers/movies/multimovies/create-multimovies.ts +214 -452
- package/src/providers/movies/multimovies/multimovies.ts +5 -58
- package/src/providers/movies/multistream/create-multistream.ts +141 -0
- package/src/providers/movies/multistream/multistream.ts +7 -0
- package/src/providers/movies/multistream/utils.ts +234 -410
- package/src/providers/movies/netflixmirror/create-netflixmirror.ts +26 -26
- package/src/providers/movies/netflixmirror/netflixmirror.ts +9 -15
- package/src/providers/movies/site-paths.ts +24 -0
- package/src/providers/movies/vegamovies/create-vegamovies.ts +402 -728
- package/src/providers/movies/vegamovies/vegamovies.ts +5 -62
- package/src/providers/provider-class.ts +39 -0
- package/src/registry-signing-keys.json +6 -0
- package/src/utils/ExtractorManager.ts +96 -242
- package/src/utils/ProviderManager.ts +124 -284
- package/src/utils/constants.ts +2 -10
- package/src/utils/create-extractor-context.ts +36 -28
- package/src/utils/create-provider-context.ts +51 -121
- package/src/utils/extension-integrity.ts +1 -2
- package/src/utils/extension-modules.ts +150 -43
- package/src/utils/fetch-with-timeout.ts +4 -2
- package/src/utils/meta-http.ts +20 -27
- package/src/utils/registry-schema.ts +46 -14
- package/src/utils/registry-signature-format.ts +37 -0
- package/src/utils/registry-signature.ts +26 -67
- package/src/utils/runtime-modules.ts +7 -0
- package/src/utils/tmdb.ts +140 -0
- package/src/utils/url-polyfill.ts +2 -46
- package/src/utils/utf8.ts +44 -0
- package/src/utils/utils.ts +16 -362
- package/android/src/main/AndroidManifestNew.xml +0 -3
- package/android/src/main/java/com/consumet/DdosGuardModule.kt +0 -179
- package/lib/commonjs/extractors/asianload.js +0 -75
- package/lib/commonjs/extractors/asianload.js.map +0 -1
- package/lib/commonjs/extractors/filemoon.js +0 -66
- package/lib/commonjs/extractors/filemoon.js.map +0 -1
- package/lib/commonjs/extractors/gdflix.js +0 -165
- package/lib/commonjs/extractors/gdflix.js.map +0 -1
- package/lib/commonjs/extractors/gogocdn.js +0 -128
- package/lib/commonjs/extractors/gogocdn.js.map +0 -1
- package/lib/commonjs/extractors/megaup.js +0 -113
- package/lib/commonjs/extractors/megaup.js.map +0 -1
- package/lib/commonjs/extractors/mixdrop.js +0 -37
- package/lib/commonjs/extractors/mixdrop.js.map +0 -1
- package/lib/commonjs/extractors/mp4player.js +0 -57
- package/lib/commonjs/extractors/mp4player.js.map +0 -1
- package/lib/commonjs/extractors/mp4upload.js +0 -38
- package/lib/commonjs/extractors/mp4upload.js.map +0 -1
- package/lib/commonjs/extractors/rapidcloud.js +0 -180
- package/lib/commonjs/extractors/rapidcloud.js.map +0 -1
- package/lib/commonjs/extractors/streamhub.js +0 -61
- package/lib/commonjs/extractors/streamhub.js.map +0 -1
- package/lib/commonjs/extractors/streamlare.js +0 -55
- package/lib/commonjs/extractors/streamlare.js.map +0 -1
- package/lib/commonjs/extractors/streamsb.js +0 -69
- package/lib/commonjs/extractors/streamsb.js.map +0 -1
- package/lib/commonjs/extractors/streamtape.js +0 -42
- package/lib/commonjs/extractors/streamtape.js.map +0 -1
- package/lib/commonjs/extractors/vidmoly.js +0 -54
- package/lib/commonjs/extractors/vidmoly.js.map +0 -1
- package/lib/commonjs/extractors/vizcloud.js +0 -67
- package/lib/commonjs/extractors/vizcloud.js.map +0 -1
- package/lib/commonjs/extractors/voe.js +0 -100
- package/lib/commonjs/extractors/voe.js.map +0 -1
- package/lib/commonjs/models/base-types.js +0 -2
- package/lib/commonjs/models/base-types.js.map +0 -1
- package/lib/commonjs/providers/anime/animekai/animekai.js +0 -118
- package/lib/commonjs/providers/anime/animekai/animekai.js.map +0 -1
- package/lib/commonjs/providers/anime/animekai/create-animekai.js +0 -518
- package/lib/commonjs/providers/anime/animekai/create-animekai.js.map +0 -1
- package/lib/commonjs/providers/anime/animeunity.js +0 -187
- package/lib/commonjs/providers/anime/animeunity.js.map +0 -1
- package/lib/commonjs/providers/meta/tmdb-api-key.js +0 -29
- package/lib/commonjs/providers/meta/tmdb-api-key.js.map +0 -1
- package/lib/commonjs/providers/movies/multistream/index.js +0 -222
- package/lib/commonjs/providers/movies/multistream/index.js.map +0 -1
- package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js +0 -22
- package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js.map +0 -1
- package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js +0 -30
- package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js.map +0 -1
- package/lib/commonjs/providers/movies/netflixmirror/primemirror.js +0 -22
- package/lib/commonjs/providers/movies/netflixmirror/primemirror.js.map +0 -1
- package/lib/commonjs/providers/movies/yflix/create-yflix.js +0 -418
- package/lib/commonjs/providers/movies/yflix/create-yflix.js.map +0 -1
- package/lib/commonjs/providers/movies/yflix/yflix.js +0 -66
- package/lib/commonjs/providers/movies/yflix/yflix.js.map +0 -1
- package/lib/commonjs/providers/provider-args.js +0 -17
- package/lib/commonjs/providers/provider-args.js.map +0 -1
- package/lib/commonjs/registry-signing-keys.js +0 -26
- package/lib/commonjs/registry-signing-keys.js.map +0 -1
- package/lib/commonjs/utils/extension-utils.js +0 -105
- package/lib/commonjs/utils/extension-utils.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -312
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/provider-maps.js +0 -69
- package/lib/commonjs/utils/provider-maps.js.map +0 -1
- package/lib/commonjs/utils/queries.js +0 -45
- package/lib/commonjs/utils/queries.js.map +0 -1
- package/lib/module/extractors/asianload.js +0 -69
- package/lib/module/extractors/asianload.js.map +0 -1
- package/lib/module/extractors/filemoon.js +0 -62
- package/lib/module/extractors/filemoon.js.map +0 -1
- package/lib/module/extractors/gdflix.js +0 -161
- package/lib/module/extractors/gdflix.js.map +0 -1
- package/lib/module/extractors/gogocdn.js +0 -122
- package/lib/module/extractors/gogocdn.js.map +0 -1
- package/lib/module/extractors/megaup.js +0 -109
- package/lib/module/extractors/megaup.js.map +0 -1
- package/lib/module/extractors/mixdrop.js +0 -32
- package/lib/module/extractors/mixdrop.js.map +0 -1
- package/lib/module/extractors/mp4player.js +0 -52
- package/lib/module/extractors/mp4player.js.map +0 -1
- package/lib/module/extractors/mp4upload.js +0 -33
- package/lib/module/extractors/mp4upload.js.map +0 -1
- package/lib/module/extractors/rapidcloud.js +0 -174
- package/lib/module/extractors/rapidcloud.js.map +0 -1
- package/lib/module/extractors/streamhub.js +0 -56
- package/lib/module/extractors/streamhub.js.map +0 -1
- package/lib/module/extractors/streamlare.js +0 -50
- package/lib/module/extractors/streamlare.js.map +0 -1
- package/lib/module/extractors/streamsb.js +0 -64
- package/lib/module/extractors/streamsb.js.map +0 -1
- package/lib/module/extractors/streamtape.js +0 -37
- package/lib/module/extractors/streamtape.js.map +0 -1
- package/lib/module/extractors/vidmoly.js +0 -49
- package/lib/module/extractors/vidmoly.js.map +0 -1
- package/lib/module/extractors/vizcloud.js +0 -62
- package/lib/module/extractors/vizcloud.js.map +0 -1
- package/lib/module/extractors/voe.js +0 -95
- package/lib/module/extractors/voe.js.map +0 -1
- package/lib/module/models/base-types.js +0 -2
- package/lib/module/models/base-types.js.map +0 -1
- package/lib/module/providers/anime/animekai/animekai.js +0 -113
- package/lib/module/providers/anime/animekai/animekai.js.map +0 -1
- package/lib/module/providers/anime/animekai/create-animekai.js +0 -514
- package/lib/module/providers/anime/animekai/create-animekai.js.map +0 -1
- package/lib/module/providers/anime/animeunity.js +0 -183
- package/lib/module/providers/anime/animeunity.js.map +0 -1
- package/lib/module/providers/meta/tmdb-api-key.js +0 -24
- package/lib/module/providers/meta/tmdb-api-key.js.map +0 -1
- package/lib/module/providers/movies/multistream/index.js +0 -217
- package/lib/module/providers/movies/multistream/index.js.map +0 -1
- package/lib/module/providers/movies/netflixmirror/disneymirror.js +0 -17
- package/lib/module/providers/movies/netflixmirror/disneymirror.js.map +0 -1
- package/lib/module/providers/movies/netflixmirror/netmirror-parser.js +0 -25
- package/lib/module/providers/movies/netflixmirror/netmirror-parser.js.map +0 -1
- package/lib/module/providers/movies/netflixmirror/primemirror.js +0 -17
- package/lib/module/providers/movies/netflixmirror/primemirror.js.map +0 -1
- package/lib/module/providers/movies/yflix/create-yflix.js +0 -414
- package/lib/module/providers/movies/yflix/create-yflix.js.map +0 -1
- package/lib/module/providers/movies/yflix/yflix.js +0 -61
- package/lib/module/providers/movies/yflix/yflix.js.map +0 -1
- package/lib/module/providers/provider-args.js +0 -14
- package/lib/module/providers/provider-args.js.map +0 -1
- package/lib/module/registry-signing-keys.js +0 -22
- package/lib/module/registry-signing-keys.js.map +0 -1
- package/lib/module/utils/extension-utils.js +0 -100
- package/lib/module/utils/extension-utils.js.map +0 -1
- package/lib/module/utils/index.js +0 -21
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/provider-maps.js +0 -65
- package/lib/module/utils/provider-maps.js.map +0 -1
- package/lib/module/utils/queries.js +0 -29
- package/lib/module/utils/queries.js.map +0 -1
- package/lib/typescript/commonjs/src/extractors/asianload.d.ts +0 -17
- package/lib/typescript/commonjs/src/extractors/asianload.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/filemoon.d.ts +0 -14
- package/lib/typescript/commonjs/src/extractors/filemoon.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/gdflix.d.ts +0 -7
- package/lib/typescript/commonjs/src/extractors/gdflix.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts +0 -19
- package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts +0 -6
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts +0 -10
- package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/mp4player.d.ts +0 -15
- package/lib/typescript/commonjs/src/extractors/mp4player.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts +0 -10
- package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts +0 -17
- package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/streamhub.d.ts +0 -14
- package/lib/typescript/commonjs/src/extractors/streamhub.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/streamlare.d.ts +0 -13
- package/lib/typescript/commonjs/src/extractors/streamlare.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/streamsb.d.ts +0 -14
- package/lib/typescript/commonjs/src/extractors/streamsb.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/streamtape.d.ts +0 -10
- package/lib/typescript/commonjs/src/extractors/streamtape.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts +0 -10
- package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts +0 -12
- package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/voe.d.ts +0 -15
- package/lib/typescript/commonjs/src/extractors/voe.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/models/base-types.d.ts +0 -23
- package/lib/typescript/commonjs/src/models/base-types.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts +0 -90
- package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts +0 -32
- package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts +0 -39
- package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts +0 -7
- package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts +0 -44
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts +0 -12
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts +0 -21
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts +0 -12
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix/create-yflix.d.ts +0 -25
- package/lib/typescript/commonjs/src/providers/movies/yflix/create-yflix.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts +0 -49
- package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/provider-args.d.ts +0 -8
- package/lib/typescript/commonjs/src/providers/provider-args.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/registry-signing-keys.d.ts +0 -18
- package/lib/typescript/commonjs/src/registry-signing-keys.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +0 -31
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts +0 -19
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +0 -39
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/queries.d.ts +0 -22
- package/lib/typescript/commonjs/src/utils/queries.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/asianload.d.ts +0 -17
- package/lib/typescript/module/src/extractors/asianload.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/filemoon.d.ts +0 -14
- package/lib/typescript/module/src/extractors/filemoon.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/gdflix.d.ts +0 -7
- package/lib/typescript/module/src/extractors/gdflix.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/gogocdn.d.ts +0 -19
- package/lib/typescript/module/src/extractors/gogocdn.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/megaup.d.ts +0 -6
- package/lib/typescript/module/src/extractors/megaup.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/mixdrop.d.ts +0 -10
- package/lib/typescript/module/src/extractors/mixdrop.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/mp4player.d.ts +0 -15
- package/lib/typescript/module/src/extractors/mp4player.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/mp4upload.d.ts +0 -10
- package/lib/typescript/module/src/extractors/mp4upload.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/rapidcloud.d.ts +0 -17
- package/lib/typescript/module/src/extractors/rapidcloud.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/streamhub.d.ts +0 -14
- package/lib/typescript/module/src/extractors/streamhub.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/streamlare.d.ts +0 -13
- package/lib/typescript/module/src/extractors/streamlare.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/streamsb.d.ts +0 -14
- package/lib/typescript/module/src/extractors/streamsb.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/streamtape.d.ts +0 -10
- package/lib/typescript/module/src/extractors/streamtape.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/vidmoly.d.ts +0 -10
- package/lib/typescript/module/src/extractors/vidmoly.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/vizcloud.d.ts +0 -12
- package/lib/typescript/module/src/extractors/vizcloud.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/voe.d.ts +0 -15
- package/lib/typescript/module/src/extractors/voe.d.ts.map +0 -1
- package/lib/typescript/module/src/models/base-types.d.ts +0 -23
- package/lib/typescript/module/src/models/base-types.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts +0 -90
- package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts +0 -32
- package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animeunity.d.ts +0 -39
- package/lib/typescript/module/src/providers/anime/animeunity.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts +0 -7
- package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts +0 -44
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts +0 -12
- package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts +0 -21
- package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts +0 -12
- package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/yflix/create-yflix.d.ts +0 -25
- package/lib/typescript/module/src/providers/movies/yflix/create-yflix.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts +0 -49
- package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/provider-args.d.ts +0 -8
- package/lib/typescript/module/src/providers/provider-args.d.ts.map +0 -1
- package/lib/typescript/module/src/registry-signing-keys.d.ts +0 -18
- package/lib/typescript/module/src/registry-signing-keys.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/extension-utils.d.ts +0 -31
- package/lib/typescript/module/src/utils/extension-utils.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/index.d.ts +0 -19
- package/lib/typescript/module/src/utils/index.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/provider-maps.d.ts +0 -39
- package/lib/typescript/module/src/utils/provider-maps.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/queries.d.ts +0 -22
- package/lib/typescript/module/src/utils/queries.d.ts.map +0 -1
- package/src/extractors/asianload.ts +0 -89
- package/src/extractors/filemoon.ts +0 -60
- package/src/extractors/gdflix.ts +0 -165
- package/src/extractors/gogocdn.ts +0 -155
- package/src/extractors/megaup.ts +0 -125
- package/src/extractors/mixdrop.ts +0 -35
- package/src/extractors/mp4player.ts +0 -57
- package/src/extractors/mp4upload.ts +0 -35
- package/src/extractors/rapidcloud.ts +0 -200
- package/src/extractors/streamhub.ts +0 -62
- package/src/extractors/streamlare.ts +0 -65
- package/src/extractors/streamsb.ts +0 -77
- package/src/extractors/streamtape.ts +0 -42
- package/src/extractors/vidmoly.ts +0 -52
- package/src/extractors/vizcloud.ts +0 -70
- package/src/extractors/voe.ts +0 -107
- package/src/models/base-types.ts +0 -23
- package/src/providers/anime/animekai/animekai.ts +0 -126
- package/src/providers/anime/animekai/create-animekai.ts +0 -589
- package/src/providers/anime/animeunity.ts +0 -226
- package/src/providers/meta/tmdb-api-key.ts +0 -27
- package/src/providers/movies/multistream/index.ts +0 -244
- package/src/providers/movies/netflixmirror/disneymirror.ts +0 -16
- package/src/providers/movies/netflixmirror/netmirror-parser.ts +0 -43
- package/src/providers/movies/netflixmirror/primemirror.ts +0 -16
- package/src/providers/movies/yflix/create-yflix.ts +0 -496
- package/src/providers/movies/yflix/yflix.ts +0 -85
- package/src/providers/provider-args.ts +0 -15
- package/src/registry-signing-keys.ts +0 -20
- package/src/utils/extension-utils.ts +0 -130
- package/src/utils/index.ts +0 -96
- package/src/utils/provider-maps.ts +0 -80
- package/src/utils/queries.ts +0 -37
|
@@ -6,9 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.MangaHere = void 0;
|
|
7
7
|
var _cheerio = require("cheerio");
|
|
8
8
|
var _index2 = require("../../models/index.js");
|
|
9
|
+
var _packer = require("../../extractors/packer.js");
|
|
9
10
|
var _createProviderContext = require("../../utils/create-provider-context.js");
|
|
10
11
|
var _manga = require("../../utils/manga.js");
|
|
11
|
-
|
|
12
|
+
var _utils = require("../../utils/utils.js");
|
|
13
|
+
var _mediaStatus = require("../common/media-status.js");
|
|
14
|
+
var _shared = require("./shared.js");
|
|
12
15
|
const MINUTE = 60 * 1000;
|
|
13
16
|
const UNITS = {
|
|
14
17
|
second: 1000,
|
|
@@ -22,29 +25,6 @@ const UNITS = {
|
|
|
22
25
|
// How many chapterfun.ashx requests run at once while collecting a chapter's page images.
|
|
23
26
|
const PAGE_REQUESTS_AT_ONCE = 4;
|
|
24
27
|
|
|
25
|
-
/** Undoes a JavaScript string literal's backslash escapes (`\'` → `'`). */
|
|
26
|
-
const unescapeJs = text => text.replace(/\\(.)/g, (_, char) => char === 'n' ? '\n' : char === 'r' ? '\r' : char === 't' ? '\t' : char);
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Runs Dean Edwards' packer (`eval(function(p,a,c,k,e,d){...}('payload',a,c,'k|e|y|s'.split('|'),0,{}))`)
|
|
30
|
-
* in reverse without evaluating any code: every word of the payload is looked up in the keyword list.
|
|
31
|
-
* Undefined when `source` holds no packed script.
|
|
32
|
-
*/
|
|
33
|
-
function unpackPackedScript(source) {
|
|
34
|
-
const match = /\}\s*\(\s*'((?:[^'\\]|\\[\s\S])*)'\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*'((?:[^'\\]|\\[\s\S])*)'\.split\(\s*'\|'\s*\)/.exec(source);
|
|
35
|
-
if (!match) return undefined;
|
|
36
|
-
const radix = Number(match[2]);
|
|
37
|
-
const count = Number(match[3]);
|
|
38
|
-
const keywords = unescapeJs(match[4]).split('|');
|
|
39
|
-
const encode = value => {
|
|
40
|
-
const rest = value % radix;
|
|
41
|
-
return (value < radix ? '' : encode(Math.floor(value / radix))) + (rest > 35 ? String.fromCharCode(rest + 29) : rest.toString(36));
|
|
42
|
-
};
|
|
43
|
-
const words = new Map();
|
|
44
|
-
for (let index = 0; index < count; index++) words.set(encode(index), keywords[index] || encode(index));
|
|
45
|
-
return unescapeJs(match[1]).replace(/\b\w+\b/g, word => words.get(word) ?? word);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
28
|
/** The strings inside a JavaScript array literal's quotes (`'a','b'` or `"a","b"`). */
|
|
49
29
|
const quotedStrings = (list, quote) => (list.match(quote === "'" ? /'[^']*'/g : /"[^"]*"/g) ?? []).map(item => item.slice(1, -1));
|
|
50
30
|
|
|
@@ -57,7 +37,7 @@ function parseMangaHereDate(text, now = Date.now()) {
|
|
|
57
37
|
if (!value) return undefined;
|
|
58
38
|
const calendar = /^([a-z]{3})[a-z]*\.?\s*(\d{1,2})\s*,\s*(\d{4})$/i.exec(value);
|
|
59
39
|
if (calendar) {
|
|
60
|
-
const month = MONTHS.indexOf(calendar[1].toLowerCase());
|
|
40
|
+
const month = _utils.MONTHS.indexOf(calendar[1].toLowerCase());
|
|
61
41
|
const date = new Date(Date.UTC(Number(calendar[3]), month, Number(calendar[2])));
|
|
62
42
|
if (month >= 0 && date.getUTCDate() === Number(calendar[2])) return date.toISOString().slice(0, 10);
|
|
63
43
|
return value;
|
|
@@ -72,18 +52,9 @@ function parseMangaHereDate(text, now = Date.now()) {
|
|
|
72
52
|
if (/^yesterday$/i.test(value)) return new Date(now - UNITS.day).toISOString().slice(0, 10);
|
|
73
53
|
return value;
|
|
74
54
|
}
|
|
75
|
-
const parseStatus = text => {
|
|
76
|
-
switch (text.trim().toLowerCase()) {
|
|
77
|
-
case 'ongoing':
|
|
78
|
-
return _index2.MediaStatus.ONGOING;
|
|
79
|
-
case 'completed':
|
|
80
|
-
return _index2.MediaStatus.COMPLETED;
|
|
81
|
-
default:
|
|
82
|
-
return undefined;
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
55
|
class MangaHere extends _index2.MangaParser {
|
|
86
56
|
name = 'MangaHere';
|
|
57
|
+
// Covers and page images are refused (403) without a MangaHere Referer (refererHeaders).
|
|
87
58
|
baseUrl = 'https://www.mangahere.cc';
|
|
88
59
|
logo = 'https://i.pinimg.com/564x/51/08/62/51086247ed16ff8abae2df0bb06448e4.jpg';
|
|
89
60
|
classPath = 'MANGA.MangaHere';
|
|
@@ -94,13 +65,6 @@ class MangaHere extends _index2.MangaParser {
|
|
|
94
65
|
this.ctx = ctx;
|
|
95
66
|
}
|
|
96
67
|
|
|
97
|
-
/** Covers and page images are refused (403) without a MangaHere Referer. */
|
|
98
|
-
get imageHeaders() {
|
|
99
|
-
return {
|
|
100
|
-
Referer: `${this.baseUrl}/`
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
68
|
/**
|
|
105
69
|
* GET with the cookie that opens titles marked adult. withCredentials: false keeps React Native's
|
|
106
70
|
* native cookie jar from replacing that Cookie header on Android.
|
|
@@ -117,92 +81,75 @@ class MangaHere extends _index2.MangaParser {
|
|
|
117
81
|
});
|
|
118
82
|
return typeof data === 'string' ? data : String(data ?? '');
|
|
119
83
|
};
|
|
120
|
-
absoluteUrl = url => {
|
|
121
|
-
const value = url?.trim();
|
|
122
|
-
if (!value) return undefined;
|
|
123
|
-
if (value.startsWith('//')) return `https:${value}`;
|
|
124
|
-
if (value.startsWith('/')) return `${this.baseUrl}${value}`;
|
|
125
|
-
return /^https?:\/\//.test(value) ? value : undefined;
|
|
126
|
-
};
|
|
127
84
|
fetchMangaInfo = async mangaId => {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
mangaInfo.headerForImage = this.imageHeaders;
|
|
145
|
-
}
|
|
146
|
-
const genres = $('p.detail-info-right-tag-list > a').map((_, el) => ($(el).attr('title') || $(el).text()).trim()).get().filter(Boolean);
|
|
147
|
-
if (genres.length) mangaInfo.genres = genres;
|
|
148
|
-
const status = parseStatus($('span.detail-info-right-title-tip').text());
|
|
149
|
-
if (status) mangaInfo.status = status;
|
|
150
|
-
const rating = parseFloat($('span.detail-info-right-title-star span.item-score').text());
|
|
151
|
-
if (Number.isFinite(rating)) mangaInfo.rating = rating;
|
|
152
|
-
const authors = $('p.detail-info-right-say > a').map((_, el) => ($(el).attr('title') || $(el).text()).trim()).get().filter(Boolean);
|
|
153
|
-
if (authors.length) mangaInfo.authors = authors;
|
|
154
|
-
|
|
155
|
-
// The site lists the newest chapter first.
|
|
156
|
-
const seen = new Set();
|
|
157
|
-
const chapters = [];
|
|
158
|
-
$('ul.detail-main-list > li > a').each((_, el) => {
|
|
159
|
-
const href = $(el).attr('href') ?? '';
|
|
160
|
-
const id = /\/manga\/(.+?)\/(?:\d+\.html)?$/.exec(href)?.[1];
|
|
161
|
-
if (!id || seen.has(id)) return;
|
|
162
|
-
seen.add(id);
|
|
163
|
-
const label = $(el).find('p.title3').text().trim();
|
|
164
|
-
const chapterNumber = (0, _manga.parseChapterNumber)(label) ?? numberIn(/\/c(\d+(?:\.\d+)?)$/, id);
|
|
165
|
-
const volumeNumber = (0, _manga.parseVolumeNumber)(label) ?? numberIn(/\/v(\d+(?:\.\d+)?)\//, id);
|
|
166
|
-
const chapter = {
|
|
167
|
-
id,
|
|
168
|
-
title: label || (chapterNumber !== undefined ? `Chapter ${chapterNumber}` : id.split('/').pop())
|
|
169
|
-
};
|
|
170
|
-
if (chapterNumber !== undefined) chapter.chapterNumber = chapterNumber;
|
|
171
|
-
if (volumeNumber !== undefined) chapter.volumeNumber = volumeNumber;
|
|
172
|
-
const releaseDate = parseMangaHereDate($(el).find('p.title2').text());
|
|
173
|
-
if (releaseDate) chapter.releaseDate = releaseDate;
|
|
174
|
-
const chapterUrl = this.absoluteUrl(href);
|
|
175
|
-
if (chapterUrl) chapter.url = chapterUrl;
|
|
176
|
-
chapters.push(chapter);
|
|
177
|
-
});
|
|
178
|
-
mangaInfo.chapters = (0, _manga.sortChaptersForReading)(chapters.reverse());
|
|
179
|
-
return mangaInfo;
|
|
180
|
-
} catch (err) {
|
|
181
|
-
throw new Error(err.message);
|
|
85
|
+
const url = `${this.baseUrl}/manga/${mangaId}/`;
|
|
86
|
+
const $ = (0, _cheerio.load)(await this.request(url));
|
|
87
|
+
const title = $('span.detail-info-right-title-font').first().text().trim();
|
|
88
|
+
// Unknown ids redirect to the search page, which has no title.
|
|
89
|
+
if (!title) throw new Error(`MangaHere: no manga '${mangaId}'`);
|
|
90
|
+
const mangaInfo = {
|
|
91
|
+
id: mangaId,
|
|
92
|
+
title,
|
|
93
|
+
url
|
|
94
|
+
};
|
|
95
|
+
const description = $('div.detail-info-right > p.fullcontent').text().trim();
|
|
96
|
+
if (description) mangaInfo.description = description;
|
|
97
|
+
const image = (0, _shared.absoluteUrl)($('div.detail-info-cover > img').attr('src'), this.baseUrl);
|
|
98
|
+
if (image) {
|
|
99
|
+
mangaInfo.image = image;
|
|
100
|
+
mangaInfo.headerForImage = (0, _shared.refererHeaders)(this.baseUrl);
|
|
182
101
|
}
|
|
102
|
+
const genres = $('p.detail-info-right-tag-list > a').map((_, el) => ($(el).attr('title') || $(el).text()).trim()).get().filter(Boolean);
|
|
103
|
+
if (genres.length) mangaInfo.genres = genres;
|
|
104
|
+
const status = (0, _mediaStatus.toMediaStatus)($('span.detail-info-right-title-tip').text());
|
|
105
|
+
if (status) mangaInfo.status = status;
|
|
106
|
+
const rating = parseFloat($('span.detail-info-right-title-star span.item-score').text());
|
|
107
|
+
if (Number.isFinite(rating)) mangaInfo.rating = rating;
|
|
108
|
+
const authors = $('p.detail-info-right-say > a').map((_, el) => ($(el).attr('title') || $(el).text()).trim()).get().filter(Boolean);
|
|
109
|
+
if (authors.length) mangaInfo.authors = authors;
|
|
110
|
+
|
|
111
|
+
// The site lists the newest chapter first.
|
|
112
|
+
const chapters = [];
|
|
113
|
+
$('ul.detail-main-list > li > a').each((_, el) => {
|
|
114
|
+
const href = $(el).attr('href') ?? '';
|
|
115
|
+
const id = /\/manga\/(.+?)\/(?:\d+\.html)?$/.exec(href)?.[1];
|
|
116
|
+
if (!id) return;
|
|
117
|
+
const label = $(el).find('p.title3').text().trim();
|
|
118
|
+
const chapterNumber = (0, _manga.parseChapterNumber)(label) ?? numberIn(/\/c(\d+(?:\.\d+)?)$/, id);
|
|
119
|
+
const volumeNumber = (0, _manga.parseVolumeNumber)(label) ?? numberIn(/\/v(\d+(?:\.\d+)?)\//, id);
|
|
120
|
+
const chapter = {
|
|
121
|
+
id,
|
|
122
|
+
title: (0, _shared.chapterTitle)(label, chapterNumber, id.split('/').pop())
|
|
123
|
+
};
|
|
124
|
+
if (chapterNumber !== undefined) chapter.chapterNumber = chapterNumber;
|
|
125
|
+
if (volumeNumber !== undefined) chapter.volumeNumber = volumeNumber;
|
|
126
|
+
const releaseDate = parseMangaHereDate($(el).find('p.title2').text());
|
|
127
|
+
if (releaseDate) chapter.releaseDate = releaseDate;
|
|
128
|
+
const chapterUrl = (0, _shared.absoluteUrl)(href, this.baseUrl);
|
|
129
|
+
if (chapterUrl) chapter.url = chapterUrl;
|
|
130
|
+
chapters.push(chapter);
|
|
131
|
+
});
|
|
132
|
+
mangaInfo.chapters = (0, _shared.finishChapters)(chapters);
|
|
133
|
+
return mangaInfo;
|
|
183
134
|
};
|
|
184
135
|
fetchChapterPages = async chapterId => {
|
|
185
136
|
const url = `${this.baseUrl}/manga/${chapterId}/1.html`;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
const scripts = $('script').map((_, el) => $(el).html() ?? '').get().filter(script => script.includes('eval(function(p,a,c,k,e,d)')).map(script => unpackPackedScript(script) ?? '');
|
|
137
|
+
const html = await this.request(url);
|
|
138
|
+
const $ = (0, _cheerio.load)(html);
|
|
139
|
+
const notice = $('p.detail-block-content').text().trim();
|
|
140
|
+
if (/Dear user|blocked/.test(notice)) throw new Error(notice);
|
|
141
|
+
const scripts = (0, _packer.unpackScripts)(html);
|
|
192
142
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
} catch (err) {
|
|
204
|
-
throw new Error(err.message);
|
|
205
|
-
}
|
|
143
|
+
// The long-strip (webtoon) reader lists every image in one packed script.
|
|
144
|
+
const strip = scripts.map(script => /newImgs\s*=\s*\[([^\]]*)\]/.exec(script)?.[1]).find(Boolean);
|
|
145
|
+
const images = strip !== undefined ? quotedStrings(strip, "'") : await this.fetchReaderImages(url, $, html, scripts);
|
|
146
|
+
const pages = images.map(img => (0, _shared.absoluteUrl)(img, this.baseUrl));
|
|
147
|
+
if (pages.length === 0 || pages.some(img => !img)) throw new Error(`MangaHere: no pages for '${chapterId}'`);
|
|
148
|
+
return pages.map((img, index) => ({
|
|
149
|
+
page: index + 1,
|
|
150
|
+
img: img,
|
|
151
|
+
headerForImage: (0, _shared.refererHeaders)(this.baseUrl)
|
|
152
|
+
}));
|
|
206
153
|
};
|
|
207
154
|
|
|
208
155
|
/**
|
|
@@ -242,33 +189,28 @@ class MangaHere extends _index2.MangaParser {
|
|
|
242
189
|
const lost = missingPages();
|
|
243
190
|
if (lost.length) {
|
|
244
191
|
if (failure) throw failure;
|
|
245
|
-
throw new Error(`MangaHere
|
|
192
|
+
throw new Error(`MangaHere: no image for page ${lost.join(', ')} of ${chapterUrl}`);
|
|
246
193
|
}
|
|
247
194
|
return images;
|
|
248
195
|
};
|
|
249
196
|
|
|
250
|
-
/**
|
|
197
|
+
/**
|
|
198
|
+
* The image URLs one chapterfun.ashx answer names. An empty answer is asked for again with an empty
|
|
199
|
+
* key, which the site also accepts. A failed request throws: fetchReaderImages asks for the page again.
|
|
200
|
+
*/
|
|
251
201
|
fetchChapterFun = async (url, chapterUrl, key) => {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
'X-Requested-With': 'XMLHttpRequest'
|
|
259
|
-
});
|
|
260
|
-
} catch (err) {
|
|
261
|
-
if (attempt === 3) throw err;
|
|
262
|
-
continue;
|
|
263
|
-
}
|
|
264
|
-
const script = unpackPackedScript(text) ?? text;
|
|
202
|
+
for (const sKey of key ? [key, ''] : ['']) {
|
|
203
|
+
const text = await this.request(`${url}&key=${sKey}`, {
|
|
204
|
+
'Referer': chapterUrl,
|
|
205
|
+
'X-Requested-With': 'XMLHttpRequest'
|
|
206
|
+
});
|
|
207
|
+
const script = (0, _packer.unpackScripts)(text)[0] ?? text;
|
|
265
208
|
const pix = /var\s+pix\s*=\s*"([^"]*)"/.exec(script)?.[1] ?? '';
|
|
266
209
|
const list = /var\s+pvalue\s*=\s*\[([^\]]*)\]/.exec(script)?.[1];
|
|
267
210
|
// The first file is joined to a literal base (the same as pix so far), the others to pix.
|
|
268
211
|
const firstBase = /pvalue\[i\]\s*=\s*"([^"]*)"\s*\+\s*pvalue\[i\]/.exec(script)?.[1] ?? pix;
|
|
269
212
|
const files = list ? quotedStrings(list, '"') : [];
|
|
270
213
|
if (files.length) return files.map((file, index) => `${index === 0 ? firstBase : pix}${file}`);
|
|
271
|
-
sKey = '';
|
|
272
214
|
}
|
|
273
215
|
return [];
|
|
274
216
|
};
|
|
@@ -277,38 +219,34 @@ class MangaHere extends _index2.MangaParser {
|
|
|
277
219
|
currentPage: page,
|
|
278
220
|
results: []
|
|
279
221
|
};
|
|
280
|
-
|
|
281
|
-
const $ = (0, _cheerio.load)(await this.request(`${this.baseUrl}/search?title=${encodeURIComponent(query)}&page=${page}`));
|
|
222
|
+
const $ = (0, _cheerio.load)(await this.request(`${this.baseUrl}/search?title=${encodeURIComponent(query)}&page=${page}`));
|
|
282
223
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
} catch (err) {
|
|
310
|
-
throw new Error(err.message);
|
|
311
|
-
}
|
|
224
|
+
// The last pager link is `>`; it goes nowhere (javascript:void(0)) on the last page.
|
|
225
|
+
const next = $('div.pager-list-left > a').last();
|
|
226
|
+
searchRes.hasNextPage = next.text().trim() === '>' && /^\//.test(next.attr('href') ?? '');
|
|
227
|
+
$('ul.manga-list-4-list > li').each((_, el) => {
|
|
228
|
+
const link = $(el).find('p.manga-list-4-item-title > a').first();
|
|
229
|
+
const id = /\/manga\/([^/]+)/.exec(link.attr('href') ?? $(el).find('a').first().attr('href') ?? '')?.[1];
|
|
230
|
+
const title = (link.text() || link.attr('title') || '').trim();
|
|
231
|
+
if (!id || !title) return;
|
|
232
|
+
const result = {
|
|
233
|
+
id,
|
|
234
|
+
title,
|
|
235
|
+
url: `${this.baseUrl}/manga/${id}/`
|
|
236
|
+
};
|
|
237
|
+
const image = (0, _shared.absoluteUrl)($(el).find('img.manga-list-4-cover').attr('src'), this.baseUrl);
|
|
238
|
+
if (image) {
|
|
239
|
+
result.image = image;
|
|
240
|
+
result.headerForImage = (0, _shared.refererHeaders)(this.baseUrl);
|
|
241
|
+
}
|
|
242
|
+
// The tips are the author, the latest chapter and then the synopsis.
|
|
243
|
+
const description = $(el).find('p.manga-list-4-item-tip').filter((_index, tip) => !/^(Author|Latest Chapter)\s*:/i.test($(tip).text().trim())).last().text().trim();
|
|
244
|
+
if (description) result.description = description;
|
|
245
|
+
const status = (0, _mediaStatus.toMediaStatus)($(el).find('p.manga-list-4-show-tag-list-2 > a').text());
|
|
246
|
+
if (status) result.status = status;
|
|
247
|
+
searchRes.results.push(result);
|
|
248
|
+
});
|
|
249
|
+
return searchRes;
|
|
312
250
|
};
|
|
313
251
|
}
|
|
314
252
|
exports.MangaHere = MangaHere;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cheerio","require","_index2","_createProviderContext","_manga","MONTHS","MINUTE","UNITS","second","sec","minute","min","hour","day","week","PAGE_REQUESTS_AT_ONCE","unescapeJs","text","replace","_","char","unpackPackedScript","source","match","exec","undefined","radix","Number","count","keywords","split","encode","value","rest","Math","floor","String","fromCharCode","toString","words","Map","index","set","word","get","quotedStrings","list","quote","map","item","slice","parseMangaHereDate","now","Date","trim","calendar","month","indexOf","toLowerCase","date","UTC","getUTCDate","toISOString","relative","unit","test","parseStatus","MediaStatus","ONGOING","COMPLETED","MangaHere","MangaParser","name","baseUrl","logo","classPath","constructor","ctx","createProviderContext","imageHeaders","Referer","request","url","headers","data","axios","Cookie","withCredentials","absoluteUrl","startsWith","fetchMangaInfo","mangaId","$","load","title","first","Error","mangaInfo","id","description","image","attr","headerForImage","genres","el","filter","Boolean","length","status","rating","parseFloat","isFinite","authors","seen","Set","chapters","each","href","has","add","label","find","chapterNumber","parseChapterNumber","numberIn","volumeNumber","parseVolumeNumber","chapter","pop","releaseDate","chapterUrl","push","sortChaptersForReading","reverse","err","message","fetchChapterPages","chapterId","html","notice","scripts","script","includes","strip","images","fetchReaderImages","pages","img","some","page","pageCount","max","keyScript","key","join","pageBase","lastIndexOf","Array","fill","failure","fetchFrom","found","fetchChapterFun","forEach","offset","missingPages","everyOther","inBatches","lost","sKey","attempt","pix","firstBase","files","file","search","query","searchRes","currentPage","results","encodeURIComponent","next","last","hasNextPage","link","result","_index","tip","exports","pattern","digits","items","size","task","start","Promise","all"],"sourceRoot":"../../../../src","sources":["providers/manga/mangahere.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAUA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAEA,MAAMI,MAAM,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;AACnG,MAAMC,MAAM,GAAG,EAAE,GAAG,IAAI;AACxB,MAAMC,KAA6B,GAAG;EACpCC,MAAM,EAAE,IAAI;EACZC,GAAG,EAAE,IAAI;EACTC,MAAM,EAAEJ,MAAM;EACdK,GAAG,EAAEL,MAAM;EACXM,IAAI,EAAE,EAAE,GAAGN,MAAM;EACjBO,GAAG,EAAE,EAAE,GAAG,EAAE,GAAGP,MAAM;EACrBQ,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAGR;AACtB,CAAC;AACD;AACA,MAAMS,qBAAqB,GAAG,CAAC;;AAE/B;AACA,MAAMC,UAAU,GAAIC,IAAY,IAC9BA,IAAI,CAACC,OAAO,CAAC,QAAQ,EAAE,CAACC,CAAC,EAAEC,IAAY,KAAMA,IAAI,KAAK,GAAG,GAAG,IAAI,GAAGA,IAAI,KAAK,GAAG,GAAG,IAAI,GAAGA,IAAI,KAAK,GAAG,GAAG,IAAI,GAAGA,IAAK,CAAC;;AAEvH;AACA;AACA;AACA;AACA;AACA,SAASC,kBAAkBA,CAACC,MAAc,EAAsB;EAC9D,MAAMC,KAAK,GACT,gHAAgH,CAACC,IAAI,CACnHF,MACF,CAAC;EACH,IAAI,CAACC,KAAK,EAAE,OAAOE,SAAS;EAC5B,MAAMC,KAAK,GAAGC,MAAM,CAACJ,KAAK,CAAC,CAAC,CAAC,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AM,GAAGA,MAAM;QAClCqE,SAAS,CAACE,OAAO,CAAChD,IAAI,CAACsD,MAAM,CAAC;MAChC,CAAC,CAAC;MACF,OAAOR,SAAS;IAClB,CAAC,CAAC,OAAO3C,GAAG,EAAE;MACZ,MAAM,IAAItC,KAAK,CAAEsC,GAAG,CAAWC,OAAO,CAAC;IACzC;EACF,CAAC;AACH;AAACqD,OAAA,CAAAtH,SAAA,GAAAA,SAAA;AAED,MAAMsD,QAAQ,GAAGA,CAACiE,OAAe,EAAE5K,IAAY,KAAyB;EACtE,MAAM6K,MAAM,GAAGD,OAAO,CAACrK,IAAI,CAACP,IAAI,CAAC,GAAG,CAAC,CAAC;EACtC,OAAO6K,MAAM,KAAKrK,SAAS,GAAGA,SAAS,GAAGE,MAAM,CAACmK,MAAM,CAAC;AAC1D,CAAC;;AAED;AACA,eAAevB,SAASA,CAAIwB,KAAU,EAAEC,IAAY,EAAEC,IAAgC,EAAiB;EACrG,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGH,KAAK,CAACpF,MAAM,EAAEuF,KAAK,IAAIF,IAAI,EAAE;IACvD,MAAMG,OAAO,CAACC,GAAG,CAACL,KAAK,CAAC7I,KAAK,CAACgJ,KAAK,EAAEA,KAAK,GAAGF,IAAI,CAAC,CAAChJ,GAAG,CAAEC,IAAI,IAAKgJ,IAAI,CAAChJ,IAAI,CAAC,CAAC,CAAC;EAC/E;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_cheerio","require","_index2","_packer","_createProviderContext","_manga","_utils","_mediaStatus","_shared","MINUTE","UNITS","second","sec","minute","min","hour","day","week","PAGE_REQUESTS_AT_ONCE","quotedStrings","list","quote","match","map","item","slice","parseMangaHereDate","text","now","Date","value","trim","undefined","calendar","exec","month","MONTHS","indexOf","toLowerCase","date","UTC","Number","getUTCDate","toISOString","relative","unit","Math","floor","test","MangaHere","MangaParser","name","baseUrl","logo","classPath","constructor","ctx","createProviderContext","request","url","headers","data","axios","get","Cookie","withCredentials","String","fetchMangaInfo","mangaId","$","load","title","first","Error","mangaInfo","id","description","image","absoluteUrl","attr","headerForImage","refererHeaders","genres","_","el","filter","Boolean","length","status","toMediaStatus","rating","parseFloat","isFinite","authors","chapters","each","href","label","find","chapterNumber","parseChapterNumber","numberIn","volumeNumber","parseVolumeNumber","chapter","chapterTitle","split","pop","releaseDate","chapterUrl","push","finishChapters","fetchChapterPages","chapterId","html","notice","scripts","unpackScripts","strip","script","images","fetchReaderImages","pages","img","some","index","page","pageCount","max","keyScript","key","join","pageBase","lastIndexOf","Array","fill","failure","fetchFrom","found","fetchChapterFun","forEach","offset","err","missingPages","everyOther","inBatches","lost","sKey","pix","firstBase","files","file","search","query","searchRes","currentPage","results","encodeURIComponent","next","last","hasNextPage","link","result","_index","tip","exports","pattern","digits","items","size","task","start","Promise","all"],"sourceRoot":"../../../../src","sources":["providers/manga/mangahere.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AASA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AAEA,MAAMQ,MAAM,GAAG,EAAE,GAAG,IAAI;AACxB,MAAMC,KAA6B,GAAG;EACpCC,MAAM,EAAE,IAAI;EACZC,GAAG,EAAE,IAAI;EACTC,MAAM,EAAEJ,MAAM;EACdK,GAAG,EAAEL,MAAM;EACXM,IAAI,EAAE,EAAE,GAAGN,MAAM;EACjBO,GAAG,EAAE,EAAE,GAAG,EAAE,GAAGP,MAAM;EACrBQ,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAGR;AACtB,CAAC;AACD;AACA,MAAMS,qBAAqB,GAAG,CAAC;;AAE/B;AACA,MAAMC,aAAa,GAAGA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F,OAAOR,SAAS;EAClB,CAAC;AACH;AAACW,OAAA,CAAApH,SAAA,GAAAA,SAAA;AAED,MAAMoD,QAAQ,GAAGA,CAACiE,OAAe,EAAE3I,IAAY,KAAyB;EACtE,MAAM4I,MAAM,GAAGD,OAAO,CAACpI,IAAI,CAACP,IAAI,CAAC,GAAG,CAAC,CAAC;EACtC,OAAO4I,MAAM,KAAKvI,SAAS,GAAGA,SAAS,GAAGS,MAAM,CAAC8H,MAAM,CAAC;AAC1D,CAAC;;AAED;AACA,eAAetB,SAASA,CAAIuB,KAAU,EAAEC,IAAY,EAAEC,IAAgC,EAAiB;EACrG,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGH,KAAK,CAACjF,MAAM,EAAEoF,KAAK,IAAIF,IAAI,EAAE;IACvD,MAAMG,OAAO,CAACC,GAAG,CAACL,KAAK,CAAC/I,KAAK,CAACkJ,KAAK,EAAEA,KAAK,GAAGF,IAAI,CAAC,CAAClJ,GAAG,CAAEC,IAAI,IAAKkJ,IAAI,CAAClJ,IAAI,CAAC,CAAC,CAAC;EAC/E;AACF","ignoreList":[]}
|
|
@@ -8,6 +8,8 @@ var _cheerio = require("cheerio");
|
|
|
8
8
|
var _index = require("../../models/index.js");
|
|
9
9
|
var _createProviderContext = require("../../utils/create-provider-context.js");
|
|
10
10
|
var _manga = require("../../utils/manga.js");
|
|
11
|
+
var _mediaStatus = require("../common/media-status.js");
|
|
12
|
+
var _shared = require("./shared.js");
|
|
11
13
|
/** One chapter as the site's chapter-list API (`/api/manga/<slug>/chapters`) returns it. */
|
|
12
14
|
|
|
13
15
|
// The chapter-list API pages through a title's chapters, newest first. The site's own page asks
|
|
@@ -22,22 +24,19 @@ const SEARCH_PAGE_SIZE = 20;
|
|
|
22
24
|
* site reads as a space (`Re:Zero` → `re_zero`).
|
|
23
25
|
*/
|
|
24
26
|
const searchWord = query => query.toLowerCase().replace(/[\s!-/:-@[-`{-~]+/g, '_').replace(/^_+|_+$/g, '');
|
|
25
|
-
|
|
26
|
-
/** `2024-11-03T11:37:28.000000Z` (the API's microseconds) → `2024-11-03T11:37:28.000Z`. */
|
|
27
|
-
const toIsoDate = value => {
|
|
28
|
-
if (!value) return undefined;
|
|
29
|
-
const match = /^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})(?:\.(\d+))?Z$/.exec(value.trim());
|
|
30
|
-
if (match) return `${match[1]}.${(match[2] ?? '').padEnd(3, '0').slice(0, 3)}Z`;
|
|
31
|
-
const time = Date.parse(value);
|
|
32
|
-
return Number.isNaN(time) ? value : new Date(time).toISOString();
|
|
33
|
-
};
|
|
34
27
|
class MangaKakalot extends _index.MangaParser {
|
|
35
28
|
name = 'MangaKakalot';
|
|
36
29
|
// mangakakalot.com is gone; mangakakalot.gg redirects here, and manganato.gg is the same site
|
|
37
30
|
// (same titles, ids and image hosts) under another name.
|
|
31
|
+
// Covers and pages are on 2xstorage.com, which answers 403 unless the Referer is the site's origin
|
|
32
|
+
// (exactly `https://www.kakamanga.com/`, as refererHeaders sends it; a page URL is refused too).
|
|
38
33
|
baseUrl = 'https://www.kakamanga.com';
|
|
39
34
|
logo = 'https://www.kakamanga.com/images/svg/logo-kkl.svg';
|
|
40
35
|
classPath = 'MANGA.MangaKakalot';
|
|
36
|
+
// MALSync calls the site MangaNato.
|
|
37
|
+
capabilities = {
|
|
38
|
+
malSyncSite: 'MangaNato'
|
|
39
|
+
};
|
|
41
40
|
|
|
42
41
|
/** @param ctx provider context; requests go through its axios (default: `createProviderContext()`) */
|
|
43
42
|
constructor(ctx = (0, _createProviderContext.createProviderContext)()) {
|
|
@@ -45,28 +44,8 @@ class MangaKakalot extends _index.MangaParser {
|
|
|
45
44
|
this.ctx = ctx;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
/**
|
|
49
|
-
* Covers and pages are on 2xstorage.com, which answers 403 unless the Referer is the site's
|
|
50
|
-
* origin (exactly `https://www.kakamanga.com/`; a page URL is refused too).
|
|
51
|
-
*/
|
|
52
|
-
imageHeaders = () => ({
|
|
53
|
-
Referer: `${this.baseUrl}/`
|
|
54
|
-
});
|
|
55
|
-
absoluteUrl = url => {
|
|
56
|
-
const value = url?.trim();
|
|
57
|
-
if (!value) return undefined;
|
|
58
|
-
if (value.startsWith('//')) return `https:${value}`;
|
|
59
|
-
if (value.startsWith('/')) return `${this.baseUrl}${value}`;
|
|
60
|
-
return /^https?:\/\//.test(value) ? value : undefined;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
47
|
/** The title's slug (its id) in `https://www.kakamanga.com/manga/<slug>`. */
|
|
64
48
|
slugFromUrl = url => /\/manga\/([^/?#]+)/.exec(url ?? '')?.[1];
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @param query Search query
|
|
68
|
-
* @param page Page number (default: 1)
|
|
69
|
-
*/
|
|
70
49
|
search = async (query, page = 1) => {
|
|
71
50
|
// /search/story/<word> is behind a Cloudflare challenge. The search box's endpoint serves the
|
|
72
51
|
// same results page, and JSON to requests sent with X-Requested-With (the search box's own).
|
|
@@ -85,7 +64,7 @@ class MangaKakalot extends _index.MangaParser {
|
|
|
85
64
|
});
|
|
86
65
|
const next = $('.panel_page_number .group_page a').filter((_, el) => $(el).text().trim().toLowerCase() === 'next').first();
|
|
87
66
|
return {
|
|
88
|
-
currentPage:
|
|
67
|
+
currentPage: page,
|
|
89
68
|
hasNextPage: next.attr('href') !== undefined && !next.hasClass('page_disabled'),
|
|
90
69
|
results
|
|
91
70
|
};
|
|
@@ -102,7 +81,7 @@ class MangaKakalot extends _index.MangaParser {
|
|
|
102
81
|
};
|
|
103
82
|
};
|
|
104
83
|
searchResult = (href, name, cover) => {
|
|
105
|
-
const url =
|
|
84
|
+
const url = (0, _shared.absoluteUrl)(typeof href === 'string' ? href : undefined, this.baseUrl);
|
|
106
85
|
const id = this.slugFromUrl(url);
|
|
107
86
|
const title = name.replace(/\s+/g, ' ').trim();
|
|
108
87
|
if (!url || !id || !title) return undefined;
|
|
@@ -111,10 +90,10 @@ class MangaKakalot extends _index.MangaParser {
|
|
|
111
90
|
title,
|
|
112
91
|
url
|
|
113
92
|
};
|
|
114
|
-
const image =
|
|
93
|
+
const image = (0, _shared.absoluteUrl)(typeof cover === 'string' ? cover : undefined, this.baseUrl);
|
|
115
94
|
if (image) Object.assign(result, {
|
|
116
95
|
image,
|
|
117
|
-
headerForImage: this.
|
|
96
|
+
headerForImage: (0, _shared.refererHeaders)(this.baseUrl)
|
|
118
97
|
});
|
|
119
98
|
return result;
|
|
120
99
|
};
|
|
@@ -135,10 +114,10 @@ class MangaKakalot extends _index.MangaParser {
|
|
|
135
114
|
// `Alternative : A; B`, which can repeat the title itself.
|
|
136
115
|
const altTitles = $('.manga-info-text h2.story-alternative').first().text().replace(/^\s*Alternative\s*:/i, '').split(';').map(alt => alt.replace(/\s+/g, ' ').trim()).filter((alt, i, all) => alt && alt !== title && all.indexOf(alt) === i);
|
|
137
116
|
if (altTitles.length) info.altTitles = altTitles;
|
|
138
|
-
const image =
|
|
117
|
+
const image = (0, _shared.absoluteUrl)($('.manga-info-pic img').first().attr('src'), this.baseUrl);
|
|
139
118
|
if (image) Object.assign(info, {
|
|
140
119
|
image,
|
|
141
|
-
headerForImage: this.
|
|
120
|
+
headerForImage: (0, _shared.refererHeaders)(this.baseUrl)
|
|
142
121
|
});
|
|
143
122
|
const description = this.description($);
|
|
144
123
|
if (description) info.description = description;
|
|
@@ -151,8 +130,8 @@ class MangaKakalot extends _index.MangaParser {
|
|
|
151
130
|
});
|
|
152
131
|
const authors = (fields['author(s)'] ?? '').split(',').map(author => author.trim()).filter(author => author && author.toLowerCase() !== 'unknown');
|
|
153
132
|
if (authors.length) info.authors = authors;
|
|
154
|
-
const status = (fields.status
|
|
155
|
-
if (status
|
|
133
|
+
const status = (0, _mediaStatus.toMediaStatus)(fields.status);
|
|
134
|
+
if (status) info.status = status;
|
|
156
135
|
const genres = $('.manga-info-text li.genres a').map((_, el) => $(el).text().trim()).get().filter(Boolean);
|
|
157
136
|
if (genres.length) info.genres = genres;
|
|
158
137
|
const views = parseInt((fields.view ?? '').replace(/,/g, ''), 10);
|
|
@@ -167,25 +146,23 @@ class MangaKakalot extends _index.MangaParser {
|
|
|
167
146
|
data
|
|
168
147
|
} = await this.ctx.axios.get(`${this.baseUrl}/manga/${chapterId}`);
|
|
169
148
|
const $ = (0, _cheerio.load)(data);
|
|
170
|
-
return $('.container-chapter-reader img').map((_, el) =>
|
|
149
|
+
return $('.container-chapter-reader img').map((_, el) => (0, _shared.absoluteUrl)($(el).attr('src') ?? $(el).attr('data-src'), this.baseUrl)).get().filter(img => Boolean(img)).map((img, i) => ({
|
|
171
150
|
img,
|
|
172
151
|
page: i + 1,
|
|
173
|
-
headerForImage: this.
|
|
152
|
+
headerForImage: (0, _shared.refererHeaders)(this.baseUrl)
|
|
174
153
|
}));
|
|
175
154
|
};
|
|
176
155
|
|
|
177
156
|
/**
|
|
178
157
|
* The synopsis under the `<title> summary:` heading, as plain text. Some titles store it as
|
|
179
|
-
* escaped HTML (`&quot;`, `<br>`), so its text is read as HTML once more
|
|
180
|
-
*
|
|
158
|
+
* escaped HTML (`&quot;`, `<br>`), so its text is read as HTML once more, its
|
|
159
|
+
* whitespace collapsed first as a browser would.
|
|
181
160
|
*/
|
|
182
161
|
description = $ => {
|
|
183
162
|
const box = $('#contentBox').first().clone();
|
|
184
163
|
box.find('h2').remove();
|
|
185
164
|
box.find('br').replaceWith('<br>');
|
|
186
|
-
|
|
187
|
-
const text = (0, _cheerio.load)(html, null, false).root().text().split('\n').map(line => line.trim()).join('\n').replace(/\n{3,}/g, '\n\n').trim();
|
|
188
|
-
return text || undefined;
|
|
165
|
+
return (0, _shared.plainText)(box.text().replace(/\s+/g, ' '));
|
|
189
166
|
};
|
|
190
167
|
|
|
191
168
|
/** Every chapter of a title from the chapter-list API, in reading order. */
|
|
@@ -204,16 +181,9 @@ class MangaKakalot extends _index.MangaParser {
|
|
|
204
181
|
if (!body.data.pagination?.has_more || page.length === 0) break;
|
|
205
182
|
}
|
|
206
183
|
|
|
207
|
-
// A chapter published while paging shifts the offsets, so a row can come twice
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
for (const row of rows) {
|
|
211
|
-
const chapter = this.toChapter(mangaId, row);
|
|
212
|
-
if (!chapter || seen.has(chapter.id)) continue;
|
|
213
|
-
seen.add(chapter.id);
|
|
214
|
-
chapters.push(chapter);
|
|
215
|
-
}
|
|
216
|
-
return (0, _manga.sortChaptersForReading)(chapters.reverse());
|
|
184
|
+
// A chapter published while paging shifts the offsets, so a row can come twice (finishChapters
|
|
185
|
+
// keeps one).
|
|
186
|
+
return (0, _shared.finishChapters)(rows.flatMap(row => this.toChapter(mangaId, row) ?? []));
|
|
217
187
|
};
|
|
218
188
|
toChapter = (mangaId, row) => {
|
|
219
189
|
const slug = row.chapter_slug?.trim();
|
|
@@ -223,12 +193,12 @@ class MangaKakalot extends _index.MangaParser {
|
|
|
223
193
|
const chapterNumber = (0, _manga.parseChapterNumber)(label) ?? (Number.isFinite(apiNumber) ? apiNumber : undefined);
|
|
224
194
|
const chapter = {
|
|
225
195
|
id: `${mangaId}/${slug}`,
|
|
226
|
-
title:
|
|
196
|
+
title: (0, _shared.chapterTitle)(label, chapterNumber, slug)
|
|
227
197
|
};
|
|
228
198
|
if (chapterNumber !== undefined) chapter.chapterNumber = chapterNumber;
|
|
229
199
|
const volumeNumber = (0, _manga.parseVolumeNumber)(label);
|
|
230
200
|
if (volumeNumber !== undefined) chapter.volumeNumber = volumeNumber;
|
|
231
|
-
const releaseDate = toIsoDate(row.updated_at);
|
|
201
|
+
const releaseDate = (0, _shared.toIsoDate)(row.updated_at);
|
|
232
202
|
if (releaseDate) chapter.releaseDate = releaseDate;
|
|
233
203
|
if (typeof row.view === 'number') chapter.views = row.view;
|
|
234
204
|
chapter.url = `${this.baseUrl}/manga/${mangaId}/${slug}`;
|