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