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
|
@@ -4,30 +4,69 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createVegaMovies = createVegaMovies;
|
|
7
|
+
var _fileHosts = require("../../../extractors/file-hosts.js");
|
|
8
|
+
var _servers = require("../../common/servers.js");
|
|
9
|
+
var _sitePaths = require("../site-paths.js");
|
|
7
10
|
const cleanTitle = raw => {
|
|
8
11
|
let t = raw;
|
|
9
12
|
|
|
10
|
-
//
|
|
13
|
+
// Leading "Download" or "Watch"
|
|
11
14
|
t = t.replace(/^(?:Download|Watch)\s+/i, '');
|
|
12
15
|
|
|
13
|
-
//
|
|
16
|
+
// Cut at a season, e.g. " - Season 1", " (Season 1 – 3)", " Season 1", " S01-S03"
|
|
14
17
|
t = t.replace(/\s*[-–—:]?\s*\(?\b(?:Season\s*\d+|S\d{1,2})\b.*$/i, '');
|
|
15
18
|
|
|
16
|
-
//
|
|
19
|
+
// Cut at a year in parentheses, e.g. "(2025)"
|
|
17
20
|
t = t.replace(/\s*\(\s*(?:19\d{2}|20\d{2})\s*\).*$/, '');
|
|
18
21
|
|
|
19
|
-
//
|
|
22
|
+
// Cut at a trailing "{Hindi-English-Korean}" or "{E110 - Added}"
|
|
20
23
|
t = t.replace(/\s*\{.*?\}$/, '');
|
|
21
24
|
|
|
22
|
-
//
|
|
25
|
+
// Cut at a trailing "[S04 E15 Added]" or "[320MB]"
|
|
23
26
|
t = t.replace(/\s*\[.*?\]$/, '');
|
|
24
27
|
|
|
25
|
-
//
|
|
28
|
+
// Cut at quality, release, audio and network tags
|
|
26
29
|
t = t.replace(/\s*[-–—:]?\s*\b(?:Dual[- ]Audio|Multi[- ]Audio|Hindi[- ](?:Dubbed|ORG)|ORG\s+Dubbed|Blu[- ]?Ray|WEB[- ]?DL|HDRip|HDTC|PreDVDRip|CAMRip|DVDRip|Anime\s+Series|K-DRAMA\s+Series|C-Drama\s+Series|Turkish-Drama\s+Series|Netflix[- ]Series|Disney\+|Hotstar|Amazon\s+Prime|IMAX|Extended|Edition|x264|x265|HEVC|10Bit|480p|720p|1080p|2160p|4k)\b.*$/i, '');
|
|
27
|
-
|
|
28
|
-
// 7. Remove any trailing punctuation or leftover dashes/colons/slashes
|
|
29
30
|
return t.replace(/[\r\n\t]+/g, ' ').replace(/\s+/g, ' ').trim().replace(/[-–—:|/]+$/, '').trim();
|
|
30
31
|
};
|
|
32
|
+
const SERIES_TITLE = /\b(?:season|s\d+|web series|series)\b/i;
|
|
33
|
+
|
|
34
|
+
// The hosts of the site's download links that this provider can follow, most useful first:
|
|
35
|
+
// V-Cloud and HubCloud pages (the HubCloud extractor reads both), nexdrive pages that link to
|
|
36
|
+
// them, and FastDL.
|
|
37
|
+
const DOWNLOAD_HOSTS = ['vcloud', 'hubcloud', 'nexdrive', 'fastdl'];
|
|
38
|
+
const hostRank = href => DOWNLOAD_HOSTS.findIndex(host => href.includes(host));
|
|
39
|
+
|
|
40
|
+
// FastDL links come from the site's nexdrive pages, and FastDL wants a Referer from there.
|
|
41
|
+
const NEXDRIVE_URL = 'https://nexdrive.fit/';
|
|
42
|
+
const qualityRank = text => {
|
|
43
|
+
if (/1080p|2160p|4k/i.test(text)) return 3;
|
|
44
|
+
if (/720p/i.test(text)) return 2;
|
|
45
|
+
if (/480p/i.test(text)) return 1;
|
|
46
|
+
return 0;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** The block a heading's links are in: the next paragraph, or the next element with a link. */
|
|
50
|
+
const linkBlockAfter = heading => {
|
|
51
|
+
let block = heading.next();
|
|
52
|
+
while (block.length && !block.is('p') && !block.find('a[href]').length) block = block.next();
|
|
53
|
+
return block;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** A block's download link: its link to the most useful download host, else its download button's. */
|
|
57
|
+
const downloadLink = ($, block) => {
|
|
58
|
+
const hosted = block.find('a[href]').toArray().map(a => $(a).attr('href')).filter(href => hostRank(href) >= 0).reduce((best, href) => !best || hostRank(href) < hostRank(best) ? href : best, undefined);
|
|
59
|
+
if (hosted) return hosted;
|
|
60
|
+
const button = block.find('.dwd-button, .btn-outline').first();
|
|
61
|
+
return (button.is('a') ? button : button.parent('a')).attr('href');
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* VegaMovies (vegamovies.lease), a download site: an "episode" is a download link (a V-Cloud,
|
|
66
|
+
* HubCloud, nexdrive or FastDL page), and each server a host that file can be fetched from, named
|
|
67
|
+
* after the page that lists it: `hubcloud-<host>` (`hubcloud-cf-storage`), `fastdl`, `filepress`.
|
|
68
|
+
* @param customBaseURL site URL to use instead of the default
|
|
69
|
+
*/
|
|
31
70
|
function createVegaMovies(ctx, customBaseURL) {
|
|
32
71
|
const {
|
|
33
72
|
load,
|
|
@@ -39,13 +78,13 @@ function createVegaMovies(ctx, customBaseURL) {
|
|
|
39
78
|
USER_AGENT
|
|
40
79
|
} = ctx;
|
|
41
80
|
const {
|
|
42
|
-
HubCloud
|
|
81
|
+
HubCloud,
|
|
82
|
+
Gofile
|
|
43
83
|
} = extractors;
|
|
44
84
|
const {
|
|
45
|
-
StreamingServers: StreamingServersEnum,
|
|
46
85
|
TvType: TvTypeEnum
|
|
47
86
|
} = enums;
|
|
48
|
-
const baseUrl = createCustomBaseUrl('https://
|
|
87
|
+
const baseUrl = createCustomBaseUrl('https://vegamovies.lease', customBaseURL);
|
|
49
88
|
const config = {
|
|
50
89
|
name: 'VegaMovies',
|
|
51
90
|
languages: 'all',
|
|
@@ -59,33 +98,29 @@ function createVegaMovies(ctx, customBaseURL) {
|
|
|
59
98
|
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8',
|
|
60
99
|
'Accept-Language': 'en-US,en;q=0.9',
|
|
61
100
|
'Cookie': 'xla=s4t',
|
|
62
|
-
'User-Agent': USER_AGENT
|
|
101
|
+
'User-Agent': USER_AGENT
|
|
63
102
|
};
|
|
64
103
|
const supportedTypes = new Set([TvTypeEnum.MOVIE, TvTypeEnum.TVSERIES]);
|
|
65
104
|
|
|
66
|
-
/**
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
105
|
+
/** GETs a page of the site or its link hosts the way a browser coming from `referer` would. */
|
|
106
|
+
const request = (url, referer = baseUrl) =>
|
|
107
|
+
// Without withCredentials: false, React Native's Android networking replaces the Cookie header
|
|
108
|
+
// (the xla=s4t the site wants) with its own cookie jar's.
|
|
109
|
+
axios.get(url, {
|
|
110
|
+
headers: {
|
|
111
|
+
...defaultHeaders,
|
|
112
|
+
Referer: referer
|
|
113
|
+
},
|
|
114
|
+
withCredentials: false
|
|
115
|
+
});
|
|
116
|
+
const extractYear = text => /\b(19\d{2}|20\d{2})\b/.exec(text)?.[1];
|
|
77
117
|
const extractSeasonNumber = text => {
|
|
78
118
|
const match = text.match(/season\s*(\d+)|s(\d+)/i);
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
if (num) return parseInt(num, 10);
|
|
82
|
-
}
|
|
83
|
-
return 1;
|
|
119
|
+
const num = match?.[1] || match?.[2];
|
|
120
|
+
return num ? parseInt(num, 10) : 1;
|
|
84
121
|
};
|
|
85
122
|
|
|
86
|
-
/**
|
|
87
|
-
* Number of seasons a post covers, from text like "Season 1-5", "Season 1 – 2" or "Season 3".
|
|
88
|
-
*/
|
|
123
|
+
/** Number of seasons a post covers, from text like "Season 1-5", "Season 1 – 2" or "Season 3". */
|
|
89
124
|
const countSeasons = text => {
|
|
90
125
|
const range = /seasons?\s*(\d+)\s*(?:-|–|—|to|&)\s*(\d+)/i.exec(text);
|
|
91
126
|
if (range) return Math.abs(parseInt(range[2], 10) - parseInt(range[1], 10)) + 1;
|
|
@@ -101,12 +136,7 @@ function createVegaMovies(ctx, customBaseURL) {
|
|
|
101
136
|
releaseDate: isSeries ? undefined : extractYear(rawTitle),
|
|
102
137
|
seasons: isSeries ? countSeasons(rawTitle) ?? countSeasons(slug.replace(/-(\d+)-(\d+)/, ' $1-$2')) : undefined
|
|
103
138
|
});
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Helper to parse HTML grid items into IMovieResult list
|
|
107
|
-
*/
|
|
108
|
-
const parseHtmlGrid = html => {
|
|
109
|
-
const $ = load(html);
|
|
139
|
+
const parseHtmlGrid = $ => {
|
|
110
140
|
const results = [];
|
|
111
141
|
const seen = new Set();
|
|
112
142
|
const items = $('.movies-grid, #moviesGridMain, .blog-items, .post-list, #archive-container').children('a, article, .entry-list-item, .poster-card');
|
|
@@ -115,12 +145,11 @@ function createVegaMovies(ctx, customBaseURL) {
|
|
|
115
145
|
const linkEl = element.is('a') ? element : element.find('a').first();
|
|
116
146
|
const href = linkEl.attr('href') || element.attr('href') || '';
|
|
117
147
|
if (!href || href === '#' || href === '/') return;
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
seen.add(cleanId);
|
|
148
|
+
const id = (0, _sitePaths.pageId)(href, baseUrl);
|
|
149
|
+
if (!id || seen.has(id)) return;
|
|
150
|
+
seen.add(id);
|
|
122
151
|
const rawTitle = element.find('.poster-title, .entry-title, .post-title').text().trim() || element.find('img').attr('alt') || linkEl.attr('aria-label') || linkEl.attr('title') || '';
|
|
123
|
-
const isSeries =
|
|
152
|
+
const isSeries = SERIES_TITLE.test(rawTitle) || href.includes('season') || href.includes('series');
|
|
124
153
|
const title = cleanTitle(rawTitle);
|
|
125
154
|
if (!title) return;
|
|
126
155
|
let image = element.find('img').attr('data-lazy-src') || element.find('img').attr('data-src') || element.find('img').attr('src') || '';
|
|
@@ -128,691 +157,431 @@ function createVegaMovies(ctx, customBaseURL) {
|
|
|
128
157
|
image = `https:${image}`;
|
|
129
158
|
}
|
|
130
159
|
results.push({
|
|
131
|
-
id
|
|
160
|
+
id,
|
|
132
161
|
title,
|
|
133
|
-
url:
|
|
162
|
+
url: new PolyURL(href, `${baseUrl}/`).href,
|
|
134
163
|
image,
|
|
135
|
-
...resultMeta(rawTitle,
|
|
164
|
+
...resultMeta(rawTitle, id, isSeries)
|
|
136
165
|
});
|
|
137
166
|
});
|
|
138
167
|
return results;
|
|
139
168
|
};
|
|
140
169
|
|
|
141
|
-
/**
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
170
|
+
/** A listing of the site's WordPress pages: `path` (none for the home page) at `page`, plus `query`. */
|
|
171
|
+
const fetchListing = async (path, page, query = '') => {
|
|
172
|
+
const {
|
|
173
|
+
data
|
|
174
|
+
} = await request(`${baseUrl}/${path ? `${path}/` : ''}${page > 1 ? `page/${page}/` : ''}${query}`);
|
|
175
|
+
const $ = load(data);
|
|
176
|
+
return {
|
|
148
177
|
currentPage: page,
|
|
149
|
-
hasNextPage:
|
|
150
|
-
results:
|
|
178
|
+
hasNextPage: $('.pagination, .nav-links').find('.next, a:contains("Next")').length > 0,
|
|
179
|
+
results: parseHtmlGrid($)
|
|
151
180
|
};
|
|
152
|
-
|
|
153
|
-
|
|
181
|
+
};
|
|
182
|
+
const search = async (query, page = 1) => {
|
|
183
|
+
// search.php is the site's Typesense search; when it fails or finds nothing, the WordPress
|
|
184
|
+
// search may still find the post.
|
|
154
185
|
try {
|
|
155
|
-
const searchUrl = `${config.baseUrl}/search.php?q=${encodeURIComponent(query)}&page=${page}`;
|
|
156
186
|
const {
|
|
157
187
|
data
|
|
158
|
-
} = await
|
|
159
|
-
|
|
160
|
-
...defaultHeaders,
|
|
161
|
-
Referer: config.baseUrl
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
if (data && Array.isArray(data.hits) && data.hits.length > 0) {
|
|
188
|
+
} = await request(`${baseUrl}/search.php?q=${encodeURIComponent(query)}&page=${page}`);
|
|
189
|
+
if (Array.isArray(data?.hits) && data.hits.length > 0) {
|
|
165
190
|
const perPage = data.request_params?.per_page || 15;
|
|
166
191
|
const total = typeof data.found === 'number' ? data.found : 0;
|
|
167
|
-
|
|
192
|
+
const results = [];
|
|
168
193
|
for (const hit of data.hits) {
|
|
169
194
|
const doc = hit.document;
|
|
170
195
|
if (!doc) continue;
|
|
171
196
|
const permalink = doc.permalink || '';
|
|
172
|
-
const
|
|
173
|
-
const cleanId = postUrl.pathname.replace(/^\/|\/$/g, '');
|
|
197
|
+
const id = (0, _sitePaths.pageId)(permalink, baseUrl);
|
|
174
198
|
const rawPostTitle = doc.post_title || '';
|
|
175
|
-
const title = cleanTitle(rawPostTitle);
|
|
176
199
|
const categories = Array.isArray(doc.category) ? doc.category : [];
|
|
177
|
-
const isSeries = categories.some(c => /series/i.test(c)) ||
|
|
178
|
-
|
|
179
|
-
id
|
|
180
|
-
title,
|
|
181
|
-
url:
|
|
200
|
+
const isSeries = categories.some(c => /series/i.test(c)) || SERIES_TITLE.test(rawPostTitle);
|
|
201
|
+
results.push({
|
|
202
|
+
id,
|
|
203
|
+
title: cleanTitle(rawPostTitle),
|
|
204
|
+
url: new PolyURL(permalink, `${baseUrl}/`).href,
|
|
182
205
|
image: doc.post_thumbnail || '',
|
|
183
|
-
...resultMeta(rawPostTitle,
|
|
206
|
+
...resultMeta(rawPostTitle, id, isSeries)
|
|
184
207
|
});
|
|
185
208
|
}
|
|
186
|
-
return
|
|
209
|
+
return {
|
|
210
|
+
currentPage: page,
|
|
211
|
+
hasNextPage: page * perPage < total,
|
|
212
|
+
results
|
|
213
|
+
};
|
|
187
214
|
}
|
|
188
|
-
} catch {
|
|
189
|
-
|
|
190
|
-
|
|
215
|
+
} catch {}
|
|
216
|
+
return fetchListing('', page, `?s=${encodeURIComponent(query)}`);
|
|
217
|
+
};
|
|
218
|
+
const fetchPackEpisodes = async (pack, postUrl) => {
|
|
219
|
+
const {
|
|
220
|
+
data
|
|
221
|
+
} = await request(pack.url, postUrl);
|
|
222
|
+
const $ = load(data);
|
|
223
|
+
const episodes = [];
|
|
224
|
+
$('h3, h4, h5, p').each((_, element) => {
|
|
225
|
+
const heading = $(element);
|
|
226
|
+
const text = heading.text().trim();
|
|
227
|
+
if (!/episodes?\s*[:\d-]/i.test(text) && !/e\d{1,3}\b/i.test(text) && !/^episode\s*\d+/i.test(text)) return;
|
|
228
|
+
const title = text.replace(/\s+/g, ' ').trim().replace(/^[-:\s]+|[-:\s]+$/g, '').replace(/^episodes?\s*:\s*/i, 'Episode ');
|
|
229
|
+
const number = /\b(?:episode|e)\s*(\d+)/i.exec(title)?.[1];
|
|
230
|
+
const link = downloadLink($, linkBlockAfter(heading));
|
|
231
|
+
if (link?.startsWith('http') && !episodes.some(e => e.url === link)) {
|
|
232
|
+
episodes.push({
|
|
233
|
+
id: link,
|
|
234
|
+
title,
|
|
235
|
+
number: number ? parseInt(number, 10) : undefined,
|
|
236
|
+
season: pack.season,
|
|
237
|
+
url: link
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
return episodes;
|
|
242
|
+
};
|
|
191
243
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
244
|
+
/** A series post lists a pack per season and quality; each pack's page lists its episodes. */
|
|
245
|
+
const fetchSeriesEpisodes = async ($, postUrl) => {
|
|
246
|
+
const packs = [];
|
|
247
|
+
$('h3, h4, h5, p').each((_, element) => {
|
|
248
|
+
const heading = $(element);
|
|
249
|
+
const text = heading.text().trim();
|
|
250
|
+
if (!/season\s*\d+|s\d+/i.test(text)) return;
|
|
251
|
+
|
|
252
|
+
// Only headings followed by download links are packs. This skips the post title heading
|
|
253
|
+
// ("Download X Season 3 ...") whose next paragraph holds the IMDb link.
|
|
254
|
+
const links = linkBlockAfter(heading).find('a[href]').toArray().map(a => ({
|
|
255
|
+
href: $(a).attr('href') || '',
|
|
256
|
+
text: $(a).text().trim()
|
|
257
|
+
})).filter(l => l.href.startsWith('http') && hostRank(l.href) >= 0 && !/zip|batch|login/i.test(l.text));
|
|
258
|
+
if (!links.length) return;
|
|
259
|
+
|
|
260
|
+
// Some blocks list one link per quality ("480p [150MB/E]", "720p [350MB/E]"); prefer V-Cloud otherwise.
|
|
261
|
+
const preferred = links.find(l => /v-?cloud/i.test(l.text)) ?? links[0];
|
|
262
|
+
const best = links.reduce((acc, l) => qualityRank(l.text) > qualityRank(acc.text) ? l : acc, preferred);
|
|
263
|
+
packs.push({
|
|
264
|
+
title: `${text} ${best.text}`,
|
|
265
|
+
season: extractSeasonNumber(text),
|
|
266
|
+
url: best.href
|
|
202
267
|
});
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
} catch (err) {
|
|
209
|
-
throw new Error(err.message);
|
|
268
|
+
});
|
|
269
|
+
const bestPerSeason = new Map();
|
|
270
|
+
for (const pack of packs) {
|
|
271
|
+
const current = bestPerSeason.get(pack.season);
|
|
272
|
+
if (!current || qualityRank(pack.title) > qualityRank(current.title)) bestPerSeason.set(pack.season, pack);
|
|
210
273
|
}
|
|
274
|
+
|
|
275
|
+
// A season whose pack page fails to load is left out; the other seasons still list.
|
|
276
|
+
const perSeason = await Promise.allSettled(Array.from(bestPerSeason.values()).map(pack => fetchPackEpisodes(pack, postUrl)));
|
|
277
|
+
const episodes = perSeason.flatMap(r => r.status === 'fulfilled' ? r.value : []);
|
|
278
|
+
if (episodes.length) return episodes;
|
|
279
|
+
|
|
280
|
+
// No pack page listed episodes: offer the packs themselves.
|
|
281
|
+
return packs.map((pack, i) => ({
|
|
282
|
+
id: pack.url,
|
|
283
|
+
title: pack.title || `Season ${pack.season}`,
|
|
284
|
+
season: pack.season,
|
|
285
|
+
number: i + 1,
|
|
286
|
+
url: pack.url
|
|
287
|
+
}));
|
|
211
288
|
};
|
|
212
289
|
|
|
213
|
-
/**
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
290
|
+
/** A movie post lists a download link per quality. */
|
|
291
|
+
const movieEpisodes = ($, title) => {
|
|
292
|
+
const episodes = [];
|
|
293
|
+
$('h3, h4, h5, p').each((_, element) => {
|
|
294
|
+
const heading = $(element);
|
|
295
|
+
const text = heading.text().trim();
|
|
296
|
+
const href = downloadLink($, linkBlockAfter(heading));
|
|
297
|
+
if (!href?.startsWith('http') || episodes.some(e => e.url === href)) return;
|
|
298
|
+
episodes.push({
|
|
299
|
+
id: href,
|
|
300
|
+
title: text || `${title} HD`,
|
|
301
|
+
number: episodes.length + 1,
|
|
302
|
+
season: 1,
|
|
303
|
+
url: href
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
if (episodes.length) return episodes;
|
|
307
|
+
|
|
308
|
+
// No quality blocks: take any download link on the page.
|
|
309
|
+
$('a[href]').toArray().map(a => $(a).attr('href')).filter(href => hostRank(href) >= 0).forEach((href, i) => {
|
|
310
|
+
if (!href.startsWith('http') || episodes.some(e => e.url === href)) return;
|
|
311
|
+
episodes.push({
|
|
312
|
+
id: href,
|
|
313
|
+
title: `${title} Option ${i + 1}`,
|
|
314
|
+
number: i + 1,
|
|
315
|
+
season: 1,
|
|
316
|
+
url: href
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
return episodes;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
/** @param mediaId post id (its slug) or URL */
|
|
217
323
|
const fetchMediaInfo = async mediaId => {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
324
|
+
const url = (0, _sitePaths.pageUrl)(mediaId ?? '', baseUrl);
|
|
325
|
+
const {
|
|
326
|
+
data
|
|
327
|
+
} = await request(url);
|
|
328
|
+
const $ = load(data);
|
|
329
|
+
const content = $('.entry-content, .post-content').first();
|
|
330
|
+
// "Series Info" / "Movie Info" block, e.g. "Season: 1-5 ... Released Year: 2008-2013"
|
|
331
|
+
const infoText = $('h3, h4').filter((_, el) => /(series|movie)\s*info/i.test($(el).text())).first().nextAll().slice(0, 2).text().replace(/\s+/g, ' ');
|
|
332
|
+
const rawTitle = $('h1.entry-title').text().trim() || $('meta[property="og:title"]').attr('content') || $('h1').first().text().trim() || '';
|
|
333
|
+
const title = cleanTitle((rawTitle.split('|')[0] || '').trim());
|
|
334
|
+
let image = $('meta[property="og:image"]').attr('content') || content.find('img[data-lazy-src]').attr('data-lazy-src') || content.find('img[data-src]').attr('data-src') || content.find('img').first().attr('src') || '';
|
|
335
|
+
if (image.startsWith('//')) {
|
|
336
|
+
image = `https:${image}`;
|
|
221
337
|
}
|
|
222
|
-
const
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
338
|
+
const synopsisHeader = $('h3, h4, h5').filter((_, el) => /synopsis|plot/i.test($(el).text()));
|
|
339
|
+
const synopsis = (synopsisHeader.length > 0 ? synopsisHeader.next('p').text().trim() : '') || $('meta[property="og:description"]').attr('content')?.trim() || '';
|
|
340
|
+
const imdbId = ($('a[href*="imdb.com"]').attr('href')?.match(/tt\d+/) || data.match(/tt\d{7,}/))?.[0];
|
|
341
|
+
const ratingText = $('.imdb-score, .starstruck-rating').text() || /IMDb Rating\W*([\d.]+)/i.exec(infoText)?.[1] || '';
|
|
342
|
+
const rating = /(\d+(?:\.\d+)?)/.exec(ratingText)?.[1];
|
|
343
|
+
const pageText = `${title} ${content.text()}`;
|
|
344
|
+
const isSeries = /\b(?:web\s*series|season\s*\d+|s\d+\s*e\d+)\b/i.test(pageText) || $('a:contains("V-Cloud"), a:contains("vcloud")').length > 1;
|
|
345
|
+
const episodes = isSeries ? await fetchSeriesEpisodes($, url) : movieEpisodes($, title);
|
|
346
|
+
if (!episodes.length) episodes.push({
|
|
347
|
+
id: url,
|
|
348
|
+
title: title || 'Movie',
|
|
349
|
+
url,
|
|
350
|
+
number: 1,
|
|
351
|
+
season: 1
|
|
352
|
+
});
|
|
353
|
+
return {
|
|
354
|
+
id: (0, _sitePaths.pageId)(url, baseUrl),
|
|
355
|
+
title,
|
|
356
|
+
url,
|
|
357
|
+
image,
|
|
358
|
+
description: synopsis,
|
|
359
|
+
...(imdbId ? {
|
|
360
|
+
imdbId
|
|
361
|
+
} : {}),
|
|
362
|
+
...(rating ? {
|
|
363
|
+
rating: parseFloat(rating)
|
|
364
|
+
} : {}),
|
|
365
|
+
// "Released Year: 2008-2013" gives the first-air year; titles often carry a season's year
|
|
366
|
+
releaseDate: extractYear(/Released?\s*Year\s*:?\s*([^\s]+)/i.exec(infoText)?.[1] ?? '') ?? extractYear(title),
|
|
367
|
+
genres: $('a[rel="category tag"], .category a').map((_, el) => $(el).text().trim()).get().filter(g => g && !g.includes('1080p') && !g.includes('720p') && !g.includes('480p')),
|
|
368
|
+
type: isSeries ? TvTypeEnum.TVSERIES : TvTypeEnum.MOVIE,
|
|
369
|
+
episodes,
|
|
370
|
+
totalEpisodes: episodes.length
|
|
227
371
|
};
|
|
228
|
-
|
|
229
|
-
const {
|
|
230
|
-
data
|
|
231
|
-
} = await axios.get(fullUrl, {
|
|
232
|
-
headers: {
|
|
233
|
-
...defaultHeaders,
|
|
234
|
-
Referer: config.baseUrl
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
const $ = load(data);
|
|
238
|
-
const content = $('.entry-content, .post-content').first();
|
|
239
|
-
// "Series Info" / "Movie Info" block, e.g. "Season: 1-5 ... Released Year: 2008-2013"
|
|
240
|
-
const infoText = $('h3, h4').filter((_, el) => /(series|movie)\s*info/i.test($(el).text())).first().nextAll().slice(0, 2).text().replace(/\s+/g, ' ');
|
|
241
|
-
|
|
242
|
-
// Title extraction
|
|
243
|
-
const rawTitle = $('h1.entry-title').text().trim() || $('meta[property="og:title"]').attr('content') || $('h1').first().text().trim() || '';
|
|
244
|
-
movieInfo.title = cleanTitle((rawTitle.split('|')[0] || '').trim());
|
|
245
|
-
|
|
246
|
-
// Poster image
|
|
247
|
-
let image = $('meta[property="og:image"]').attr('content') || content.find('img[data-lazy-src]').attr('data-lazy-src') || content.find('img[data-src]').attr('data-src') || content.find('img').first().attr('src') || '';
|
|
248
|
-
if (image?.startsWith('//')) {
|
|
249
|
-
image = `https:${image}`;
|
|
250
|
-
}
|
|
251
|
-
movieInfo.image = image;
|
|
252
|
-
|
|
253
|
-
// Synopsis / description
|
|
254
|
-
let synopsis = '';
|
|
255
|
-
const synopsisHeader = $('h3, h4, h5').filter((_, el) => /synopsis|plot/i.test($(el).text()));
|
|
256
|
-
if (synopsisHeader.length > 0) {
|
|
257
|
-
synopsis = synopsisHeader.next('p').text().trim();
|
|
258
|
-
}
|
|
259
|
-
if (!synopsis) {
|
|
260
|
-
synopsis = $('meta[property="og:description"]').attr('content')?.trim() || '';
|
|
261
|
-
}
|
|
262
|
-
movieInfo.description = synopsis;
|
|
263
|
-
|
|
264
|
-
// IMDb ID
|
|
265
|
-
const imdbMatch = $('a[href*="imdb.com"]').attr('href')?.match(/tt\d+/) || data.match(/tt\d{7,}/);
|
|
266
|
-
if (imdbMatch?.[0]) {
|
|
267
|
-
movieInfo.imdbId = imdbMatch[0];
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// Rating
|
|
271
|
-
const ratingText = $('.imdb-score, .starstruck-rating').text() || /IMDb Rating\W*([\d.]+)/i.exec(infoText)?.[1] || '';
|
|
272
|
-
const ratingMatch = ratingText.match(/(\d+(?:\.\d+)?)/);
|
|
273
|
-
if (ratingMatch?.[1]) {
|
|
274
|
-
movieInfo.rating = parseFloat(ratingMatch[1]);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
// Release year: "Released Year: 2008-2013" gives the first-air year; titles often carry a season's year
|
|
278
|
-
movieInfo.releaseDate = extractYear(/Released?\s*Year\s*:?\s*([^\s]+)/i.exec(infoText)?.[1] ?? '') ?? extractYear(movieInfo.title);
|
|
279
|
-
|
|
280
|
-
// Genres
|
|
281
|
-
movieInfo.genres = $('a[rel="category tag"], .category a').map((_, el) => $(el).text().trim()).get().filter(g => g && !g.includes('1080p') && !g.includes('720p') && !g.includes('480p'));
|
|
282
|
-
|
|
283
|
-
// Determine type
|
|
284
|
-
const pageText = `${movieInfo.title} ${content.text()}`;
|
|
285
|
-
const isSeries = /\b(?:web\s*series|season\s*\d+|s\d+\s*e\d+)\b/i.test(pageText) || $('a:contains("V-Cloud"), a:contains("vcloud")').length > 1;
|
|
286
|
-
movieInfo.type = isSeries ? TvTypeEnum.TVSERIES : TvTypeEnum.MOVIE;
|
|
287
|
-
|
|
288
|
-
// Extract quality blocks and download buttons
|
|
289
|
-
const episodesList = [];
|
|
290
|
-
if (movieInfo.type === TvTypeEnum.TVSERIES) {
|
|
291
|
-
// Collect season intermediate links
|
|
292
|
-
|
|
293
|
-
const seasonPacks = [];
|
|
294
|
-
const getPackPriority = t => {
|
|
295
|
-
if (/1080p|2160p|4k/i.test(t)) return 3;
|
|
296
|
-
if (/720p/i.test(t)) return 2;
|
|
297
|
-
if (/480p/i.test(t)) return 1;
|
|
298
|
-
return 0;
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
// Only blocks followed by download-host links are season packs. This skips the post
|
|
302
|
-
// title heading ("Download X Season 3 ...") whose next paragraph holds the IMDb link.
|
|
303
|
-
const downloadHost = /nexdrive|vcloud|hubcloud|gdflix|fastdl|filepress/i;
|
|
304
|
-
$('h3, h4, h5, p').each((_, element) => {
|
|
305
|
-
const el = $(element);
|
|
306
|
-
const blockText = el.text().trim();
|
|
307
|
-
if (!/season\s*\d+|s\d+/i.test(blockText)) return;
|
|
308
|
-
let nextP = el.next();
|
|
309
|
-
while (nextP.length && !nextP.is('p') && !nextP.find('a[href]').length) {
|
|
310
|
-
nextP = nextP.next();
|
|
311
|
-
}
|
|
312
|
-
const links = nextP.find('a[href]').toArray().map(a => ({
|
|
313
|
-
href: $(a).attr('href') || '',
|
|
314
|
-
text: $(a).text().trim()
|
|
315
|
-
})).filter(l => l.href.startsWith('http') && downloadHost.test(l.href) && !/zip|batch|login/i.test(l.text));
|
|
316
|
-
if (!links.length) return;
|
|
317
|
-
|
|
318
|
-
// Some blocks list one link per quality ("480p [150MB/E]", "720p [350MB/E]"); prefer V-Cloud otherwise.
|
|
319
|
-
const preferred = links.find(l => /v-?cloud/i.test(l.text)) ?? links[0];
|
|
320
|
-
const best = links.reduce((acc, l) => getPackPriority(l.text) > getPackPriority(acc.text) ? l : acc, preferred);
|
|
321
|
-
seasonPacks.push({
|
|
322
|
-
title: `${blockText} ${best.text}`,
|
|
323
|
-
season: extractSeasonNumber(blockText),
|
|
324
|
-
url: best.href
|
|
325
|
-
});
|
|
326
|
-
});
|
|
327
|
-
|
|
328
|
-
// Deduplicate season packs: pick highest quality pack per season
|
|
329
|
-
const selectedPacksBySeason = new Map();
|
|
330
|
-
for (const pack of seasonPacks) {
|
|
331
|
-
if (!selectedPacksBySeason.has(pack.season)) {
|
|
332
|
-
selectedPacksBySeason.set(pack.season, pack);
|
|
333
|
-
} else {
|
|
334
|
-
const existing = selectedPacksBySeason.get(pack.season);
|
|
335
|
-
if (getPackPriority(pack.title) > getPackPriority(existing.title)) {
|
|
336
|
-
selectedPacksBySeason.set(pack.season, pack);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
// Fetch episodes from each season pack's intermediate page
|
|
342
|
-
const packResults = await Promise.allSettled(Array.from(selectedPacksBySeason.values()).map(async pack => {
|
|
343
|
-
const res = await axios.get(pack.url, {
|
|
344
|
-
headers: {
|
|
345
|
-
...defaultHeaders,
|
|
346
|
-
Referer: fullUrl
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
const $ep = load(res.data);
|
|
350
|
-
const eps = [];
|
|
351
|
-
$ep('h3, h4, h5, p').each((_, element) => {
|
|
352
|
-
const el = $ep(element);
|
|
353
|
-
const text = el.text().trim();
|
|
354
|
-
if (/episodes?\s*[:\d\-]/i.test(text) || /e\d{1,3}\b/i.test(text) || /^episode\s*\d+/i.test(text)) {
|
|
355
|
-
const epTitle = text.replace(/\s+/g, ' ').trim().replace(/^[-:\s]+|[-:\s]+$/g, '').replace(/^episodes?\s*:\s*/i, 'Episode ');
|
|
356
|
-
const epNumMatch = epTitle.match(/\b(?:episode|e)\s*(\d+)/i);
|
|
357
|
-
const epNumber = epNumMatch && epNumMatch[1] ? parseInt(epNumMatch[1], 10) : undefined;
|
|
358
|
-
let nextP = el.next();
|
|
359
|
-
while (nextP.length && !nextP.is('p') && !nextP.find('a[href]').length) {
|
|
360
|
-
nextP = nextP.next();
|
|
361
|
-
}
|
|
362
|
-
const link = nextP.find('a[href*="vcloud"]').attr('href') || nextP.find('a[href*="hubcloud"]').attr('href') || nextP.find('a[href*="fastdl"]').attr('href') || nextP.find('.btn-outline').parent().attr('href') || nextP.find('.btn-outline').attr('href') || nextP.find('a[href]').first().attr('href');
|
|
363
|
-
if (link && link?.startsWith('http') && !eps.some(e => e.url === link)) {
|
|
364
|
-
eps.push({
|
|
365
|
-
id: link,
|
|
366
|
-
title: epTitle,
|
|
367
|
-
number: epNumber,
|
|
368
|
-
season: pack.season,
|
|
369
|
-
url: link
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
});
|
|
374
|
-
return eps;
|
|
375
|
-
}));
|
|
376
|
-
for (const r of packResults) {
|
|
377
|
-
if (r.status === 'fulfilled' && Array.isArray(r.value)) {
|
|
378
|
-
episodesList.push(...r.value);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
372
|
+
};
|
|
381
373
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
title: sp.title || `Season ${sp.season}`,
|
|
390
|
-
season: sp.season,
|
|
391
|
-
number: i + 1,
|
|
392
|
-
url: sp.url
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
} else {
|
|
398
|
-
// Movie: extract quality options
|
|
399
|
-
let count = 0;
|
|
400
|
-
$('h3, h4, h5, p').each((_, element) => {
|
|
401
|
-
const el = $(element);
|
|
402
|
-
const text = el.text().trim();
|
|
403
|
-
const qualityMatch = text.match(/\d+p\b/i);
|
|
404
|
-
let nextP = el.next();
|
|
405
|
-
while (nextP.length && !nextP.is('p') && !nextP.find('a[href]').length) {
|
|
406
|
-
nextP = nextP.next();
|
|
407
|
-
}
|
|
408
|
-
const btn = nextP.find('a[href*="nexdrive"], a[href*="vcloud"], a[href*="hubcloud"], a[href*="fastdl"]').first().length > 0 ? nextP.find('a[href*="nexdrive"], a[href*="vcloud"], a[href*="hubcloud"], a[href*="fastdl"]').first() : nextP.find('.dwd-button, .btn-outline').first().is('a') ? nextP.find('.dwd-button, .btn-outline').first() : nextP.find('.dwd-button, .btn-outline').first().parent('a');
|
|
409
|
-
const btnHref = btn.attr('href');
|
|
410
|
-
if (btnHref && btnHref?.startsWith('http') && !episodesList.some(e => e.url === btnHref)) {
|
|
411
|
-
count++;
|
|
412
|
-
episodesList.push({
|
|
413
|
-
id: btnHref,
|
|
414
|
-
title: text || `${movieInfo.title} ${qualityMatch ? qualityMatch[0] : 'HD'}`,
|
|
415
|
-
number: count,
|
|
416
|
-
season: 1,
|
|
417
|
-
url: btnHref
|
|
418
|
-
});
|
|
419
|
-
}
|
|
420
|
-
});
|
|
374
|
+
/** An episode's download link: `episodeId` when it is one, else the first episode of the post it names. */
|
|
375
|
+
const resolveEpisodeUrl = async episodeId => {
|
|
376
|
+
if (episodeId?.startsWith('http')) return episodeId;
|
|
377
|
+
const url = (await fetchMediaInfo(episodeId)).episodes?.[0]?.url;
|
|
378
|
+
if (!url) throw new Error(`Unable to resolve episode source for ${episodeId}`);
|
|
379
|
+
return url;
|
|
380
|
+
};
|
|
421
381
|
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
}
|
|
382
|
+
/** The sources a HubCloud (or V-Cloud) page lists, each `server` the name of its server (`hubcloud-cf-storage`). */
|
|
383
|
+
const readHubCloud = async url => {
|
|
384
|
+
const res = await HubCloud(ctx).extract(new PolyURL(url));
|
|
385
|
+
return {
|
|
386
|
+
...res,
|
|
387
|
+
sources: res.sources.map(source => ({
|
|
388
|
+
...source,
|
|
389
|
+
server: (0, _servers.serverName)('hubcloud', source.server)
|
|
390
|
+
}))
|
|
391
|
+
};
|
|
392
|
+
};
|
|
438
393
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
} catch
|
|
453
|
-
|
|
394
|
+
/** `source`, or when it is a Gofile page, the files on it (none when Gofile can't read it). */
|
|
395
|
+
const resolveGofile = async source => {
|
|
396
|
+
if (!(0, _fileHosts.isGofilePage)(source.url)) return [source];
|
|
397
|
+
try {
|
|
398
|
+
const {
|
|
399
|
+
sources
|
|
400
|
+
} = await Gofile(ctx).extract(new PolyURL(source.url));
|
|
401
|
+
return sources.map(file => ({
|
|
402
|
+
...file,
|
|
403
|
+
server: source.server,
|
|
404
|
+
quality: source.quality,
|
|
405
|
+
size: source.size
|
|
406
|
+
}));
|
|
407
|
+
} catch {
|
|
408
|
+
return [];
|
|
454
409
|
}
|
|
455
410
|
};
|
|
456
411
|
|
|
457
|
-
/**
|
|
458
|
-
|
|
459
|
-
* @param episodeId episode URL or intermediate link
|
|
460
|
-
* @param mediaId optional media link or slug
|
|
461
|
-
*/
|
|
462
|
-
const fetchEpisodeServers = async (episodeId, mediaId) => {
|
|
412
|
+
/** The servers a HubCloud page lists, then the page itself (`hubcloud`), which fetchEpisodeSources reads again. */
|
|
413
|
+
const hubCloudServers = async url => {
|
|
463
414
|
const servers = [];
|
|
464
|
-
let resolvedUrl = episodeId;
|
|
465
|
-
if (!resolvedUrl?.startsWith('http')) {
|
|
466
|
-
try {
|
|
467
|
-
const info = await fetchMediaInfo(episodeId);
|
|
468
|
-
const firstEp = info.episodes?.[0];
|
|
469
|
-
if (firstEp?.url) {
|
|
470
|
-
resolvedUrl = firstEp.url;
|
|
471
|
-
}
|
|
472
|
-
} catch {}
|
|
473
|
-
}
|
|
474
|
-
if (!resolvedUrl?.startsWith('http')) {
|
|
475
|
-
return [{
|
|
476
|
-
name: 'HubCloud',
|
|
477
|
-
url: episodeId
|
|
478
|
-
}];
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
// If already direct V-Cloud / HubCloud link
|
|
482
|
-
if (resolvedUrl.includes('vcloud') || resolvedUrl.includes('hubcloud')) {
|
|
483
|
-
try {
|
|
484
|
-
const hubCloudExtractor = HubCloud(ctx);
|
|
485
|
-
const hubRes = await hubCloudExtractor.extract(new PolyURL(resolvedUrl));
|
|
486
|
-
if (hubRes?.sources && hubRes.sources.length > 0) {
|
|
487
|
-
for (const s of hubRes.sources) {
|
|
488
|
-
const sName = s.server || s.quality || 'HubCloud';
|
|
489
|
-
if (!servers.some(srv => srv.name === sName)) {
|
|
490
|
-
servers.push({
|
|
491
|
-
name: sName,
|
|
492
|
-
url: s.url
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
} catch {}
|
|
498
|
-
if (!servers.some(s => s.name.toLowerCase() === 'hubcloud')) {
|
|
499
|
-
servers.push({
|
|
500
|
-
name: 'HubCloud',
|
|
501
|
-
url: resolvedUrl
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
return servers;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
// If intermediate page (e.g. nexdrive.fit)
|
|
508
415
|
try {
|
|
509
|
-
const {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
...defaultHeaders,
|
|
514
|
-
Referer: config.baseUrl
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
const $ = load(data);
|
|
518
|
-
const vcloudLink = $('a[href*="vcloud"], a[href*="hubcloud"]').attr('href');
|
|
519
|
-
if (vcloudLink) {
|
|
520
|
-
try {
|
|
521
|
-
const hubCloudExtractor = HubCloud(ctx);
|
|
522
|
-
const hubRes = await hubCloudExtractor.extract(new PolyURL(vcloudLink));
|
|
523
|
-
if (hubRes?.sources && hubRes.sources.length > 0) {
|
|
524
|
-
for (const s of hubRes.sources) {
|
|
525
|
-
const sName = s.server || s.quality || 'HubCloud';
|
|
526
|
-
if (!servers.some(srv => srv.name === sName)) {
|
|
527
|
-
servers.push({
|
|
528
|
-
name: sName,
|
|
529
|
-
url: s.url
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
} catch {}
|
|
535
|
-
if (!servers.some(s => s.name.toLowerCase() === 'hubcloud')) {
|
|
536
|
-
servers.push({
|
|
537
|
-
name: 'HubCloud',
|
|
538
|
-
url: vcloudLink
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
const gdirectLink = $('a[href*="fastdl"], a:contains("G-Direct")').attr('href');
|
|
543
|
-
if (gdirectLink) {
|
|
544
|
-
servers.push({
|
|
545
|
-
name: 'FastDL',
|
|
546
|
-
url: gdirectLink
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
const filepressLink = $('a[href*="filebee"], a[href*="filepress"]').attr('href');
|
|
550
|
-
if (filepressLink) {
|
|
551
|
-
servers.push({
|
|
552
|
-
name: 'Filepress',
|
|
553
|
-
url: filepressLink
|
|
416
|
+
for (const source of (await readHubCloud(url)).sources) {
|
|
417
|
+
if (!servers.some(s => s.name === source.server)) servers.push({
|
|
418
|
+
name: source.server,
|
|
419
|
+
url: source.url
|
|
554
420
|
});
|
|
555
421
|
}
|
|
556
422
|
} catch {
|
|
557
|
-
//
|
|
558
|
-
}
|
|
559
|
-
if (servers.length === 0) {
|
|
560
|
-
servers.push({
|
|
561
|
-
name: 'HubCloud',
|
|
562
|
-
url: resolvedUrl
|
|
563
|
-
});
|
|
423
|
+
// The page itself stays a server.
|
|
564
424
|
}
|
|
425
|
+
servers.push({
|
|
426
|
+
name: (0, _servers.serverName)('hubcloud'),
|
|
427
|
+
url
|
|
428
|
+
});
|
|
565
429
|
return servers;
|
|
566
430
|
};
|
|
567
431
|
|
|
432
|
+
/** Where a link page (nexdrive) sends the file: its HubCloud page and its FastDL and FilePress mirrors. */
|
|
433
|
+
const linkPageHosts = html => {
|
|
434
|
+
const $ = load(html);
|
|
435
|
+
const hrefs = $('a[href]').toArray().map(a => $(a).attr('href'));
|
|
436
|
+
return {
|
|
437
|
+
hubCloud: hrefs.find(_fileHosts.isHubCloudPage),
|
|
438
|
+
fastDl: hrefs.find(_fileHosts.isFastDl) || $('a:contains("G-Direct")').attr('href'),
|
|
439
|
+
filePress: $('.btn.btn-sm.btn-outline[style*="rgb(252,185,0)"]').parent().attr('href') || hrefs.find(href => /filebee|filepress/.test(href))
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
|
|
568
443
|
/**
|
|
569
|
-
*
|
|
570
|
-
* @param episodeId episode URL (vcloud link, nexdrive intermediate link, or slug)
|
|
571
|
-
* @param mediaId media link or slug (optional)
|
|
572
|
-
* @param server requested server (default HubCloud)
|
|
444
|
+
* @param episodeId download link from fetchMediaInfo, or a post id (its first episode is used)
|
|
573
445
|
*/
|
|
574
|
-
const
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
});
|
|
597
|
-
const dotlinkText = dotlinkRes.data;
|
|
446
|
+
const fetchEpisodeServers = async (episodeId, _mediaId) => {
|
|
447
|
+
const episodeUrl = await resolveEpisodeUrl(episodeId);
|
|
448
|
+
if ((0, _fileHosts.isHubCloudPage)(episodeUrl)) return hubCloudServers(episodeUrl);
|
|
449
|
+
if ((0, _fileHosts.isFastDl)(episodeUrl)) return [{
|
|
450
|
+
name: (0, _servers.serverName)('fastdl'),
|
|
451
|
+
url: episodeUrl
|
|
452
|
+
}];
|
|
453
|
+
const hosts = linkPageHosts((await request(episodeUrl)).data);
|
|
454
|
+
const servers = hosts.hubCloud ? await hubCloudServers(hosts.hubCloud) : [];
|
|
455
|
+
if (hosts.fastDl) servers.push({
|
|
456
|
+
name: (0, _servers.serverName)('fastdl'),
|
|
457
|
+
url: hosts.fastDl
|
|
458
|
+
});
|
|
459
|
+
if (hosts.filePress) servers.push({
|
|
460
|
+
name: (0, _servers.serverName)('filepress'),
|
|
461
|
+
url: hosts.filePress
|
|
462
|
+
});
|
|
463
|
+
return servers.length ? servers : [{
|
|
464
|
+
name: (0, _servers.serverName)('hubcloud'),
|
|
465
|
+
url: episodeUrl
|
|
466
|
+
}];
|
|
467
|
+
};
|
|
598
468
|
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
469
|
+
/** The file behind a FastDL page, which hands it to the browser in `var reurl`. */
|
|
470
|
+
const fastDlFile = async (url, referer) => {
|
|
471
|
+
const {
|
|
472
|
+
data
|
|
473
|
+
} = await request(url, referer);
|
|
474
|
+
const reurl = /var\s+reurl\s*=\s*['"]([^'"]+)['"]/.exec(data)?.[1];
|
|
475
|
+
return reurl ? (0, _fileHosts.unwrapFastDlUrl)(reurl) : undefined;
|
|
476
|
+
};
|
|
477
|
+
const filePressFile = async link => {
|
|
478
|
+
const id = link.split('/').filter(Boolean).pop();
|
|
479
|
+
const origin = link.split('/').slice(0, 3).join('/');
|
|
480
|
+
const post = (path, fileId) => axios.post(`${origin}/api/file/${path}/`, {
|
|
481
|
+
id: fileId,
|
|
482
|
+
method: 'indexDownlaod',
|
|
483
|
+
captchaValue: null
|
|
484
|
+
}, {
|
|
485
|
+
headers: {
|
|
486
|
+
'Content-Type': 'application/json',
|
|
487
|
+
'Referer': origin
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
const token = await post('downlaod', id);
|
|
491
|
+
if (!token.data?.status || !token.data?.data) return undefined;
|
|
492
|
+
const file = (await post('downlaod2', token.data.data)).data?.data?.[0];
|
|
493
|
+
return file?.startsWith('http') ? file : undefined;
|
|
494
|
+
};
|
|
604
495
|
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
}
|
|
496
|
+
/**
|
|
497
|
+
* @param episodeId download link from fetchMediaInfo (V-Cloud, HubCloud, nexdrive or FastDL page),
|
|
498
|
+
* or a post id (its first episode is used)
|
|
499
|
+
* @param server a server name from fetchEpisodeServers, or the start of one (`hubcloud`), whose
|
|
500
|
+
* sources to list first; no preference when omitted
|
|
501
|
+
*/
|
|
502
|
+
const fetchEpisodeSources = async (episodeId, _mediaId, server) => {
|
|
503
|
+
const episodeUrl = await resolveEpisodeUrl(episodeId);
|
|
504
|
+
const episodeQuality = (0, _fileHosts.qualityIn)(episodeUrl) ?? 'auto';
|
|
505
|
+
const fileSource = (url, host) => ({
|
|
506
|
+
url,
|
|
507
|
+
server: (0, _servers.serverName)(host),
|
|
508
|
+
quality: episodeQuality,
|
|
509
|
+
isM3U8: false
|
|
510
|
+
});
|
|
511
|
+
if ((0, _fileHosts.isFastDl)(episodeUrl)) {
|
|
512
|
+
const file = (await fastDlFile(episodeUrl, NEXDRIVE_URL)) ?? (0, _fileHosts.unwrapFastDlUrl)(episodeUrl);
|
|
513
|
+
return {
|
|
514
|
+
headers: {
|
|
515
|
+
Referer: `${new PolyURL(episodeUrl).origin}/`
|
|
516
|
+
},
|
|
517
|
+
sources: [fileSource(file, 'fastdl')],
|
|
518
|
+
download: file
|
|
519
|
+
};
|
|
520
|
+
}
|
|
626
521
|
|
|
627
|
-
|
|
522
|
+
// A link page (nexdrive) links to the HubCloud page and to mirrors on FastDL and FilePress.
|
|
523
|
+
// Each mirror is optional: when one fails, the others still play.
|
|
524
|
+
const mirrors = [];
|
|
525
|
+
let hubCloudUrl = episodeUrl;
|
|
526
|
+
if (!(0, _fileHosts.isHubCloudPage)(episodeUrl)) {
|
|
527
|
+
const hosts = linkPageHosts((await request(episodeUrl)).data);
|
|
528
|
+
hubCloudUrl = hosts.hubCloud;
|
|
529
|
+
if (hosts.fastDl) {
|
|
628
530
|
try {
|
|
629
|
-
const
|
|
630
|
-
|
|
631
|
-
if (filepressLink) {
|
|
632
|
-
const filepressID = filepressLink.split('/').filter(Boolean).pop();
|
|
633
|
-
const filepressBaseUrl = filepressLink.split('/').slice(0, 3).join('/');
|
|
634
|
-
const fpRes1 = await axios.post(`${filepressBaseUrl}/api/file/downlaod/`, {
|
|
635
|
-
id: filepressID,
|
|
636
|
-
method: 'indexDownlaod',
|
|
637
|
-
captchaValue: null
|
|
638
|
-
}, {
|
|
639
|
-
headers: {
|
|
640
|
-
'Content-Type': 'application/json',
|
|
641
|
-
'Referer': filepressBaseUrl
|
|
642
|
-
}
|
|
643
|
-
});
|
|
644
|
-
if (fpRes1.data?.status && fpRes1.data?.data) {
|
|
645
|
-
const fpToken = fpRes1.data.data;
|
|
646
|
-
const fpRes2 = await axios.post(`${filepressBaseUrl}/api/file/downlaod2/`, {
|
|
647
|
-
id: fpToken,
|
|
648
|
-
method: 'indexDownlaod',
|
|
649
|
-
captchaValue: null
|
|
650
|
-
}, {
|
|
651
|
-
headers: {
|
|
652
|
-
'Content-Type': 'application/json',
|
|
653
|
-
'Referer': filepressBaseUrl
|
|
654
|
-
}
|
|
655
|
-
});
|
|
656
|
-
const fpStreamUrl = fpRes2.data?.data?.[0];
|
|
657
|
-
if (fpStreamUrl && fpStreamUrl?.startsWith('http')) {
|
|
658
|
-
extraSources.push({
|
|
659
|
-
url: fpStreamUrl,
|
|
660
|
-
server: 'Filepress',
|
|
661
|
-
quality: epQuality,
|
|
662
|
-
isM3U8: false
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
}
|
|
531
|
+
const file = await fastDlFile(hosts.fastDl, episodeUrl);
|
|
532
|
+
if (file) mirrors.push(fileSource(file, 'fastdl'));
|
|
667
533
|
} catch {}
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
data
|
|
676
|
-
} = await axios.get(resolvedUrl, {
|
|
677
|
-
headers: {
|
|
678
|
-
...defaultHeaders,
|
|
679
|
-
Referer: 'https://nexdrive.fit/'
|
|
680
|
-
}
|
|
681
|
-
});
|
|
682
|
-
const reurlMatch = data.match(/var\s+reurl\s*=\s*['"]([^'"]+)['"]/);
|
|
683
|
-
const directUrl = reurlMatch ? reurlMatch[1] : resolvedUrl;
|
|
684
|
-
return {
|
|
685
|
-
headers: {
|
|
686
|
-
Referer: 'https://fastdl.zip/'
|
|
687
|
-
},
|
|
688
|
-
sources: [{
|
|
689
|
-
url: directUrl,
|
|
690
|
-
server: 'FastDL',
|
|
691
|
-
quality: epQuality,
|
|
692
|
-
isM3U8: false
|
|
693
|
-
}, ...extraSources],
|
|
694
|
-
download: directUrl
|
|
695
|
-
};
|
|
696
|
-
} catch {}
|
|
534
|
+
}
|
|
535
|
+
if (hosts.filePress) {
|
|
536
|
+
try {
|
|
537
|
+
const file = await filePressFile(hosts.filePress);
|
|
538
|
+
if (file) mirrors.push(fileSource(file, 'filepress'));
|
|
539
|
+
} catch {}
|
|
540
|
+
}
|
|
697
541
|
}
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
let hubCloudSources = [];
|
|
701
|
-
let hubHeaders = {
|
|
702
|
-
Referer: config.baseUrl
|
|
542
|
+
let headers = {
|
|
543
|
+
Referer: baseUrl
|
|
703
544
|
};
|
|
704
|
-
|
|
545
|
+
const hubCloudSources = [];
|
|
546
|
+
if (hubCloudUrl) {
|
|
705
547
|
try {
|
|
706
|
-
const
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
}));
|
|
714
|
-
if (hubCloudRes.headers) {
|
|
715
|
-
hubHeaders = hubCloudRes.headers;
|
|
548
|
+
const res = await readHubCloud(hubCloudUrl);
|
|
549
|
+
for (const source of res.sources) {
|
|
550
|
+
for (const file of await resolveGofile(source)) {
|
|
551
|
+
hubCloudSources.push({
|
|
552
|
+
...file,
|
|
553
|
+
quality: file.quality && file.quality !== 'auto' ? file.quality : episodeQuality
|
|
554
|
+
});
|
|
716
555
|
}
|
|
717
556
|
}
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
// Filter or prioritize requested server if specified and not 'hubcloud'
|
|
723
|
-
if (server && server.toLowerCase() !== 'hubcloud') {
|
|
724
|
-
const serverLower = server.toLowerCase();
|
|
725
|
-
const matched = allSources.filter(s => (s.server || '').toLowerCase().includes(serverLower));
|
|
726
|
-
if (matched.length > 0) {
|
|
727
|
-
const others = allSources.filter(s => !(s.server || '').toLowerCase().includes(serverLower));
|
|
728
|
-
allSources = [...matched, ...others];
|
|
557
|
+
headers = res.headers ?? headers;
|
|
558
|
+
} catch (err) {
|
|
559
|
+
if (!mirrors.length) throw err;
|
|
729
560
|
}
|
|
730
561
|
}
|
|
731
|
-
|
|
562
|
+
let sources = [...mirrors, ...hubCloudSources];
|
|
563
|
+
if (sources.length === 0) {
|
|
732
564
|
throw new Error(`[VegaMovies] No streamable video sources found for ${episodeId}`);
|
|
733
565
|
}
|
|
566
|
+
if (server) {
|
|
567
|
+
const wanted = server.toLowerCase();
|
|
568
|
+
const named = s => (s.server ?? '').toLowerCase().startsWith(wanted);
|
|
569
|
+
sources = [...sources.filter(named), ...sources.filter(s => !named(s))];
|
|
570
|
+
}
|
|
734
571
|
return {
|
|
735
|
-
headers
|
|
736
|
-
sources
|
|
737
|
-
download:
|
|
572
|
+
headers,
|
|
573
|
+
sources,
|
|
574
|
+
download: sources[0]?.url
|
|
738
575
|
};
|
|
739
576
|
};
|
|
577
|
+
const fetchLatest = (page = 1) => fetchListing('', page);
|
|
740
578
|
|
|
741
579
|
/**
|
|
742
|
-
*
|
|
743
|
-
* @param page page number (default 1)
|
|
580
|
+
* @param filter a category path, e.g. `web-series/netflix`
|
|
744
581
|
*/
|
|
745
|
-
const
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
hasNextPage: false,
|
|
749
|
-
results: []
|
|
750
|
-
};
|
|
751
|
-
try {
|
|
752
|
-
const url = page === 1 ? `${config.baseUrl}/` : `${config.baseUrl}/page/${page}/`;
|
|
753
|
-
const {
|
|
754
|
-
data
|
|
755
|
-
} = await axios.get(url, {
|
|
756
|
-
headers: {
|
|
757
|
-
...defaultHeaders,
|
|
758
|
-
Referer: config.baseUrl
|
|
759
|
-
}
|
|
760
|
-
});
|
|
761
|
-
const $ = load(data);
|
|
762
|
-
searchResult.results = parseHtmlGrid(data);
|
|
763
|
-
const navSelector = '.pagination, .nav-links';
|
|
764
|
-
searchResult.hasNextPage = $(navSelector).find('.next, a:contains("Next")').length > 0;
|
|
765
|
-
return searchResult;
|
|
766
|
-
} catch (err) {
|
|
767
|
-
throw new Error(err.message);
|
|
768
|
-
}
|
|
769
|
-
};
|
|
770
|
-
|
|
771
|
-
/**
|
|
772
|
-
* Fetch recent movies
|
|
773
|
-
*/
|
|
774
|
-
const fetchRecentMovies = async (page = 1) => {
|
|
775
|
-
return fetchByFilter('category/movies-by-genres', page);
|
|
776
|
-
};
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* Fetch recent TV shows
|
|
780
|
-
*/
|
|
781
|
-
const fetchRecentTVShows = async (page = 1) => {
|
|
782
|
-
return fetchByFilter('web-series', page);
|
|
783
|
-
};
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* Fetch movies/shows by category filter
|
|
787
|
-
* @param filter path filter (e.g. 'web-series/netflix')
|
|
788
|
-
* @param page page number (default 1)
|
|
789
|
-
*/
|
|
790
|
-
const fetchByFilter = async (filter, page = 1) => {
|
|
791
|
-
const searchResult = {
|
|
792
|
-
currentPage: page,
|
|
793
|
-
hasNextPage: false,
|
|
794
|
-
results: []
|
|
795
|
-
};
|
|
796
|
-
try {
|
|
797
|
-
const cleanFilter = filter.replace(/^\/|\/$/g, '');
|
|
798
|
-
const url = page === 1 ? `${config.baseUrl}/${cleanFilter}/` : `${config.baseUrl}/${cleanFilter}/page/${page}/`;
|
|
799
|
-
const {
|
|
800
|
-
data
|
|
801
|
-
} = await axios.get(url, {
|
|
802
|
-
headers: {
|
|
803
|
-
...defaultHeaders,
|
|
804
|
-
Referer: config.baseUrl
|
|
805
|
-
}
|
|
806
|
-
});
|
|
807
|
-
const $ = load(data);
|
|
808
|
-
searchResult.results = parseHtmlGrid(data);
|
|
809
|
-
const navSelector = '.pagination, .nav-links';
|
|
810
|
-
searchResult.hasNextPage = $(navSelector).find('.next, a:contains("Next")').length > 0;
|
|
811
|
-
return searchResult;
|
|
812
|
-
} catch (err) {
|
|
813
|
-
throw new Error(err.message);
|
|
814
|
-
}
|
|
815
|
-
};
|
|
582
|
+
const fetchByFilter = (filter, page = 1) => fetchListing(filter.replace(/^\/|\/$/g, ''), page);
|
|
583
|
+
const fetchRecentMovies = (page = 1) => fetchByFilter('category/movies-by-genres', page);
|
|
584
|
+
const fetchRecentTVShows = (page = 1) => fetchByFilter('web-series', page);
|
|
816
585
|
return {
|
|
817
586
|
...config,
|
|
818
587
|
supportedTypes,
|