react-native-consumet 3.0.1 → 5.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/TestSupport.kt +12 -6
- package/android/src/androidTest/java/com/consumet/WebViewContractTest.kt +70 -22
- 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 +134 -198
- 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 +340 -432
- 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 +50 -52
- package/lib/commonjs/extension-registry.json +48 -188
- 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 +123 -97
- 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 +131 -288
- 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 +123 -217
- 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 +25 -52
- 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 +10 -4
- package/lib/commonjs/models/meta-error.js.map +1 -1
- package/lib/commonjs/models/movie-parser.js.map +1 -1
- package/lib/commonjs/models/provider-error.js +54 -0
- package/lib/commonjs/models/provider-error.js.map +1 -0
- 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 +319 -436
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/anikoto/hianime.js +77 -0
- package/lib/commonjs/providers/anime/anikoto/hianime.js.map +1 -0
- 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 +259 -190
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.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/index.js +1 -13
- package/lib/commonjs/providers/anime/index.js.map +1 -1
- package/lib/commonjs/providers/anime/reanime/create-reanime.js +42 -62
- 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/common/concurrency.js +38 -0
- package/lib/commonjs/providers/common/concurrency.js.map +1 -0
- 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/errors.js +77 -0
- package/lib/commonjs/providers/common/errors.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 +45 -0
- package/lib/commonjs/providers/common/servers.js.map +1 -0
- package/lib/commonjs/providers/common/ttl-cache.js +59 -0
- package/lib/commonjs/providers/common/ttl-cache.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 +43 -56
- 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 +252 -0
- package/lib/commonjs/providers/meta/anilist-media.js.map +1 -0
- package/lib/commonjs/providers/meta/anilist.js +435 -842
- 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 +139 -323
- package/lib/commonjs/providers/meta/mal.js.map +1 -1
- package/lib/commonjs/providers/meta/shared.js +132 -0
- package/lib/commonjs/providers/meta/shared.js.map +1 -0
- package/lib/commonjs/providers/meta/tmdb.js +251 -298
- package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
- package/lib/commonjs/providers/movies/index.js +7 -15
- package/lib/commonjs/providers/movies/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js +217 -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 +69 -15
- 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 +34 -0
- package/lib/commonjs/providers/movies/site-paths.js.map +1 -0
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js +474 -654
- 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 +156 -215
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +127 -241
- 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 +274 -44
- 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 +50 -16
- 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 +185 -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 +50 -52
- package/lib/module/extension-registry.json +48 -188
- 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 +123 -97
- 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 +132 -288
- 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 +9 -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 +11 -4
- package/lib/module/models/meta-error.js.map +1 -1
- package/lib/module/models/movie-parser.js.map +1 -1
- package/lib/module/models/provider-error.js +49 -0
- package/lib/module/models/provider-error.js.map +1 -0
- 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 +320 -436
- package/lib/module/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/module/providers/anime/anikoto/hianime.js +69 -0
- package/lib/module/providers/anime/anikoto/hianime.js.map +1 -0
- 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 +260 -190
- package/lib/module/providers/anime/animepahe/create-animepahe.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/index.js +1 -13
- package/lib/module/providers/anime/index.js.map +1 -1
- package/lib/module/providers/anime/reanime/create-reanime.js +40 -60
- 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/common/concurrency.js +34 -0
- package/lib/module/providers/common/concurrency.js.map +1 -0
- 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/errors.js +70 -0
- package/lib/module/providers/common/errors.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 +40 -0
- package/lib/module/providers/common/servers.js.map +1 -0
- package/lib/module/providers/common/ttl-cache.js +54 -0
- package/lib/module/providers/common/ttl-cache.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 +43 -56
- 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 +239 -0
- package/lib/module/providers/meta/anilist-media.js.map +1 -0
- package/lib/module/providers/meta/anilist.js +429 -837
- 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 +136 -322
- package/lib/module/providers/meta/mal.js.map +1 -1
- package/lib/module/providers/meta/shared.js +124 -0
- package/lib/module/providers/meta/shared.js.map +1 -0
- package/lib/module/providers/meta/tmdb.js +251 -299
- package/lib/module/providers/meta/tmdb.js.map +1 -1
- package/lib/module/providers/movies/index.js +5 -13
- package/lib/module/providers/movies/index.js.map +1 -1
- package/lib/module/providers/movies/multimovies/create-multimovies.js +218 -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 +69 -15
- 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 +28 -0
- package/lib/module/providers/movies/site-paths.js.map +1 -0
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js +474 -654
- 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 +155 -215
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +128 -241
- 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 +270 -44
- 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 +48 -15
- 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 +172 -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 +44 -79
- 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 +17 -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 +5 -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 +13 -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 +9 -3
- 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/provider-error.d.ts +32 -0
- package/lib/typescript/commonjs/src/models/provider-error.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/types.d.ts +43 -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/anikoto/hianime.d.ts +24 -0
- package/lib/typescript/commonjs/src/providers/anime/anikoto/hianime.d.ts.map +1 -0
- 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/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/index.d.ts +3 -18
- 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/common/concurrency.d.ts +8 -0
- package/lib/typescript/commonjs/src/providers/common/concurrency.d.ts.map +1 -0
- 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/errors.d.ts +36 -0
- package/lib/typescript/commonjs/src/providers/common/errors.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 +17 -0
- package/lib/typescript/commonjs/src/providers/common/servers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/common/ttl-cache.d.ts +21 -0
- package/lib/typescript/commonjs/src/providers/common/ttl-cache.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 +188 -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 +90 -131
- 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 +48 -0
- package/lib/typescript/commonjs/src/providers/meta/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts +77 -26
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts +8 -20
- 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 +12 -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 +57 -49
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +50 -69
- 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 +74 -24
- 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 +27 -1
- 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 +86 -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 +44 -79
- 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 +17 -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 +5 -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 +13 -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 +9 -3
- 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/provider-error.d.ts +32 -0
- package/lib/typescript/module/src/models/provider-error.d.ts.map +1 -0
- package/lib/typescript/module/src/models/types.d.ts +43 -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/anikoto/hianime.d.ts +24 -0
- package/lib/typescript/module/src/providers/anime/anikoto/hianime.d.ts.map +1 -0
- 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/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/index.d.ts +3 -18
- 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/common/concurrency.d.ts +8 -0
- package/lib/typescript/module/src/providers/common/concurrency.d.ts.map +1 -0
- 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/errors.d.ts +36 -0
- package/lib/typescript/module/src/providers/common/errors.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 +17 -0
- package/lib/typescript/module/src/providers/common/servers.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/common/ttl-cache.d.ts +21 -0
- package/lib/typescript/module/src/providers/common/ttl-cache.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 +188 -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 +90 -131
- 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 +48 -0
- package/lib/typescript/module/src/providers/meta/shared.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts +77 -26
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/index.d.ts +8 -20
- 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 +12 -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 +57 -49
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts +50 -69
- 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 +74 -24
- 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 +27 -1
- 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 +86 -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 +50 -52
- package/src/extension-registry.json +48 -188
- 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 +140 -128
- package/src/extractors/hls.ts +43 -0
- package/src/extractors/hubcloud.ts +147 -331
- 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 +51 -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 +7 -1
- package/src/models/extractor-context.ts +5 -46
- package/src/models/index.ts +13 -119
- package/src/models/lightnovel-parser.ts +5 -12
- package/src/models/manga-parser.ts +2 -10
- package/src/models/meta-error.ts +12 -5
- package/src/models/movie-parser.ts +9 -24
- package/src/models/provider-context.ts +11 -149
- package/src/models/provider-error.ts +57 -0
- package/src/models/types.ts +40 -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 +321 -510
- package/src/providers/anime/anikoto/hianime.ts +67 -0
- package/src/providers/anime/animepahe/animepahe.ts +5 -78
- package/src/providers/anime/animepahe/create-animepahe.ts +253 -212
- package/src/providers/anime/helpers.ts +9 -0
- package/src/providers/anime/index.ts +0 -12
- package/src/providers/anime/reanime/create-reanime.ts +37 -62
- package/src/providers/anime/reanime/reanime.ts +5 -44
- package/src/providers/common/concurrency.ts +32 -0
- package/src/providers/common/enc-dec.ts +2 -0
- package/src/providers/common/errors.ts +84 -0
- package/src/providers/common/media-status.ts +20 -0
- package/src/providers/common/search.ts +6 -0
- package/src/providers/common/servers.ts +40 -0
- package/src/providers/common/ttl-cache.ts +65 -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 +46 -64
- 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 +235 -0
- package/src/providers/meta/anilist.ts +460 -892
- package/src/providers/meta/index.ts +1 -1
- package/src/providers/meta/mal.ts +156 -416
- package/src/providers/meta/shared.ts +136 -0
- package/src/providers/meta/tmdb.ts +334 -358
- package/src/providers/movies/index.ts +4 -12
- package/src/providers/movies/multimovies/create-multimovies.ts +215 -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 +72 -34
- package/src/providers/movies/netflixmirror/netflixmirror.ts +9 -15
- package/src/providers/movies/site-paths.ts +25 -0
- package/src/providers/movies/vegamovies/create-vegamovies.ts +450 -725
- 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 +177 -237
- package/src/utils/ProviderManager.ts +170 -278
- 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 +281 -61
- package/src/utils/fetch-with-timeout.ts +4 -2
- package/src/utils/meta-http.ts +20 -27
- package/src/utils/registry-schema.ts +48 -15
- 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 +186 -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/anime/anineko/anineko.js +0 -41
- package/lib/commonjs/providers/anime/anineko/anineko.js.map +0 -1
- package/lib/commonjs/providers/anime/anineko/create-anineko.js +0 -449
- package/lib/commonjs/providers/anime/anineko/create-anineko.js.map +0 -1
- package/lib/commonjs/providers/anime/zoro/create-zoro.js +0 -586
- package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +0 -1
- package/lib/commonjs/providers/anime/zoro/zoro.js +0 -193
- package/lib/commonjs/providers/anime/zoro/zoro.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/himovies/create-himovies.js +0 -436
- package/lib/commonjs/providers/movies/himovies/create-himovies.js.map +0 -1
- package/lib/commonjs/providers/movies/himovies/himovies.js +0 -79
- package/lib/commonjs/providers/movies/himovies/himovies.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/anime/anineko/anineko.js +0 -36
- package/lib/module/providers/anime/anineko/anineko.js.map +0 -1
- package/lib/module/providers/anime/anineko/create-anineko.js +0 -445
- package/lib/module/providers/anime/anineko/create-anineko.js.map +0 -1
- package/lib/module/providers/anime/zoro/create-zoro.js +0 -582
- package/lib/module/providers/anime/zoro/create-zoro.js.map +0 -1
- package/lib/module/providers/anime/zoro/zoro.js +0 -189
- package/lib/module/providers/anime/zoro/zoro.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/himovies/create-himovies.js +0 -432
- package/lib/module/providers/movies/himovies/create-himovies.js.map +0 -1
- package/lib/module/providers/movies/himovies/himovies.js +0 -75
- package/lib/module/providers/movies/himovies/himovies.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/anime/anineko/anineko.d.ts +0 -28
- package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts +0 -52
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +0 -49
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts +0 -139
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.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/himovies/create-himovies.d.ts +0 -24
- package/lib/typescript/commonjs/src/providers/movies/himovies/create-himovies.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts +0 -50
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.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/anime/anineko/anineko.d.ts +0 -28
- package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts +0 -52
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +0 -49
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts +0 -139
- package/lib/typescript/module/src/providers/anime/zoro/zoro.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/himovies/create-himovies.d.ts +0 -24
- package/lib/typescript/module/src/providers/movies/himovies/create-himovies.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts +0 -50
- package/lib/typescript/module/src/providers/movies/himovies/himovies.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/anime/anineko/anineko.ts +0 -54
- package/src/providers/anime/anineko/create-anineko.ts +0 -490
- package/src/providers/anime/zoro/create-zoro.ts +0 -645
- package/src/providers/anime/zoro/zoro.ts +0 -201
- package/src/providers/meta/tmdb-api-key.ts +0 -27
- package/src/providers/movies/himovies/create-himovies.ts +0 -518
- package/src/providers/movies/himovies/himovies.ts +0 -89
- 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,35 @@ 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 { PAGE_TTL_MS, ttlCache } from '../../common/ttl-cache';
|
|
16
|
+
import { pageId, pageUrl } from '../site-paths';
|
|
13
17
|
|
|
14
18
|
const cleanTitle = (raw: string): string => {
|
|
15
19
|
let t = raw;
|
|
16
20
|
|
|
17
|
-
//
|
|
21
|
+
// Leading "Download" or "Watch"
|
|
18
22
|
t = t.replace(/^(?:Download|Watch)\s+/i, '');
|
|
19
23
|
|
|
20
|
-
//
|
|
24
|
+
// Cut at a season, e.g. " - Season 1", " (Season 1 – 3)", " Season 1", " S01-S03"
|
|
21
25
|
t = t.replace(/\s*[-–—:]?\s*\(?\b(?:Season\s*\d+|S\d{1,2})\b.*$/i, '');
|
|
22
26
|
|
|
23
|
-
//
|
|
27
|
+
// Cut at a year in parentheses, e.g. "(2025)"
|
|
24
28
|
t = t.replace(/\s*\(\s*(?:19\d{2}|20\d{2})\s*\).*$/, '');
|
|
25
29
|
|
|
26
|
-
//
|
|
30
|
+
// Cut at a trailing "{Hindi-English-Korean}" or "{E110 - Added}"
|
|
27
31
|
t = t.replace(/\s*\{.*?\}$/, '');
|
|
28
32
|
|
|
29
|
-
//
|
|
33
|
+
// Cut at a trailing "[S04 E15 Added]" or "[320MB]"
|
|
30
34
|
t = t.replace(/\s*\[.*?\]$/, '');
|
|
31
35
|
|
|
32
|
-
//
|
|
36
|
+
// Cut at quality, release, audio and network tags
|
|
33
37
|
t = t.replace(
|
|
34
38
|
/\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
39
|
''
|
|
36
40
|
);
|
|
37
41
|
|
|
38
|
-
// 7. Remove any trailing punctuation or leftover dashes/colons/slashes
|
|
39
42
|
return t
|
|
40
43
|
.replace(/[\r\n\t]+/g, ' ')
|
|
41
44
|
.replace(/\s+/g, ' ')
|
|
@@ -44,12 +47,64 @@ const cleanTitle = (raw: string): string => {
|
|
|
44
47
|
.trim();
|
|
45
48
|
};
|
|
46
49
|
|
|
50
|
+
const SERIES_TITLE = /\b(?:season|s\d+|web series|series)\b/i;
|
|
51
|
+
|
|
52
|
+
// The hosts of the site's download links that this provider can follow, most useful first:
|
|
53
|
+
// V-Cloud and HubCloud pages (the HubCloud extractor reads both), nexdrive pages that link to
|
|
54
|
+
// them, and FastDL.
|
|
55
|
+
const DOWNLOAD_HOSTS = ['vcloud', 'hubcloud', 'nexdrive', 'fastdl'];
|
|
56
|
+
const hostRank = (href: string) => DOWNLOAD_HOSTS.findIndex((host) => href.includes(host));
|
|
57
|
+
|
|
58
|
+
// FastDL links come from the site's nexdrive pages, and FastDL wants a Referer from there.
|
|
59
|
+
const NEXDRIVE_URL = 'https://nexdrive.fit/';
|
|
60
|
+
|
|
61
|
+
// Kept at the top level, so they outlive one provider instance (apps build one per query): a link
|
|
62
|
+
// page's (nexdrive) HTML by URL, when it links to a host, so servers, then sources, load it once.
|
|
63
|
+
const linkPages = ttlCache<any>({
|
|
64
|
+
ttlMs: PAGE_TTL_MS,
|
|
65
|
+
maxEntries: 16,
|
|
66
|
+
keep: (html) => typeof html === 'string' && /vcloud|hubcloud|fastdl|fsl\.|filebee|filepress|G-Direct/i.test(html),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const qualityRank = (text: string): number => {
|
|
70
|
+
if (/1080p|2160p|4k/i.test(text)) return 3;
|
|
71
|
+
if (/720p/i.test(text)) return 2;
|
|
72
|
+
if (/480p/i.test(text)) return 1;
|
|
73
|
+
return 0;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** The block a heading's links are in: the next paragraph, or the next element with a link. */
|
|
77
|
+
const linkBlockAfter = (heading: Cheerio<AnyNode>): Cheerio<AnyNode> => {
|
|
78
|
+
let block = heading.next();
|
|
79
|
+
while (block.length && !block.is('p') && !block.find('a[href]').length) block = block.next();
|
|
80
|
+
return block;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** A block's download link: its link to the most useful download host, else its download button's. */
|
|
84
|
+
const downloadLink = ($: CheerioAPI, block: Cheerio<AnyNode>): string | undefined => {
|
|
85
|
+
const hosted = block
|
|
86
|
+
.find('a[href]')
|
|
87
|
+
.toArray()
|
|
88
|
+
.map((a) => $(a).attr('href')!)
|
|
89
|
+
.filter((href) => hostRank(href) >= 0)
|
|
90
|
+
.reduce<string | undefined>((best, href) => (!best || hostRank(href) < hostRank(best) ? href : best), undefined);
|
|
91
|
+
if (hosted) return hosted;
|
|
92
|
+
const button = block.find('.dwd-button, .btn-outline').first();
|
|
93
|
+
return (button.is('a') ? button : button.parent('a')).attr('href');
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* VegaMovies (vegamovies.lease), a download site: an "episode" is a download link (a V-Cloud,
|
|
98
|
+
* HubCloud, nexdrive or FastDL page), and each server a host that file can be fetched from, named
|
|
99
|
+
* after the page that lists it: `hubcloud-<host>` (`hubcloud-cf-storage`), `fastdl`, `filepress`.
|
|
100
|
+
* @param customBaseURL site URL to use instead of the default
|
|
101
|
+
*/
|
|
47
102
|
export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
48
103
|
const { load, extractors, enums, axios, createCustomBaseUrl, PolyURL, USER_AGENT } = ctx;
|
|
49
|
-
const { HubCloud } = extractors;
|
|
50
|
-
const {
|
|
104
|
+
const { HubCloud, Gofile } = extractors;
|
|
105
|
+
const { TvType: TvTypeEnum } = enums;
|
|
51
106
|
|
|
52
|
-
const baseUrl = createCustomBaseUrl('https://
|
|
107
|
+
const baseUrl = createCustomBaseUrl('https://vegamovies.lease', customBaseURL);
|
|
53
108
|
|
|
54
109
|
const config: ProviderConfig = {
|
|
55
110
|
name: 'VegaMovies',
|
|
@@ -65,36 +120,26 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
65
120
|
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8',
|
|
66
121
|
'Accept-Language': 'en-US,en;q=0.9',
|
|
67
122
|
'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',
|
|
123
|
+
'User-Agent': USER_AGENT,
|
|
71
124
|
};
|
|
72
125
|
|
|
73
126
|
const supportedTypes = new Set([TvTypeEnum.MOVIE, TvTypeEnum.TVSERIES]);
|
|
74
127
|
|
|
75
|
-
/**
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
};
|
|
128
|
+
/** GETs a page of the site or its link hosts the way a browser coming from `referer` would. */
|
|
129
|
+
const request = (url: string, referer: string = baseUrl) =>
|
|
130
|
+
// Without withCredentials: false, React Native's Android networking replaces the Cookie header
|
|
131
|
+
// (the xla=s4t the site wants) with its own cookie jar's.
|
|
132
|
+
axios.get(url, { headers: { ...defaultHeaders, Referer: referer }, withCredentials: false });
|
|
133
|
+
|
|
134
|
+
const extractYear = (text: string): string | undefined => /\b(19\d{2}|20\d{2})\b/.exec(text)?.[1];
|
|
82
135
|
|
|
83
|
-
/**
|
|
84
|
-
* Parse season number from title/text
|
|
85
|
-
*/
|
|
86
136
|
const extractSeasonNumber = (text: string): number => {
|
|
87
137
|
const match = text.match(/season\s*(\d+)|s(\d+)/i);
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
if (num) return parseInt(num, 10);
|
|
91
|
-
}
|
|
92
|
-
return 1;
|
|
138
|
+
const num = match?.[1] || match?.[2];
|
|
139
|
+
return num ? parseInt(num, 10) : 1;
|
|
93
140
|
};
|
|
94
141
|
|
|
95
|
-
/**
|
|
96
|
-
* Number of seasons a post covers, from text like "Season 1-5", "Season 1 – 2" or "Season 3".
|
|
97
|
-
*/
|
|
142
|
+
/** Number of seasons a post covers, from text like "Season 1-5", "Season 1 – 2" or "Season 3". */
|
|
98
143
|
const countSeasons = (text: string): number | undefined => {
|
|
99
144
|
const range = /seasons?\s*(\d+)\s*(?:-|–|—|to|&)\s*(\d+)/i.exec(text);
|
|
100
145
|
if (range) return Math.abs(parseInt(range[2]!, 10) - parseInt(range[1]!, 10)) + 1;
|
|
@@ -111,11 +156,7 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
111
156
|
seasons: isSeries ? (countSeasons(rawTitle) ?? countSeasons(slug.replace(/-(\d+)-(\d+)/, ' $1-$2'))) : undefined,
|
|
112
157
|
});
|
|
113
158
|
|
|
114
|
-
|
|
115
|
-
* Helper to parse HTML grid items into IMovieResult list
|
|
116
|
-
*/
|
|
117
|
-
const parseHtmlGrid = (html: string): IMovieResult[] => {
|
|
118
|
-
const $ = load(html);
|
|
159
|
+
const parseHtmlGrid = ($: CheerioAPI): IMovieResult[] => {
|
|
119
160
|
const results: IMovieResult[] = [];
|
|
120
161
|
const seen = new Set<string>();
|
|
121
162
|
|
|
@@ -129,10 +170,9 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
129
170
|
const href = linkEl.attr('href') || element.attr('href') || '';
|
|
130
171
|
if (!href || href === '#' || href === '/') return;
|
|
131
172
|
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
seen.add(cleanId);
|
|
173
|
+
const id = pageId(href, baseUrl);
|
|
174
|
+
if (!id || seen.has(id)) return;
|
|
175
|
+
seen.add(id);
|
|
136
176
|
|
|
137
177
|
const rawTitle =
|
|
138
178
|
element.find('.poster-title, .entry-title, .post-title').text().trim() ||
|
|
@@ -141,8 +181,7 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
141
181
|
linkEl.attr('title') ||
|
|
142
182
|
'';
|
|
143
183
|
|
|
144
|
-
const isSeries =
|
|
145
|
-
/\b(?:season|s\d+|web series|series)\b/i.test(rawTitle) || href.includes('season') || href.includes('series');
|
|
184
|
+
const isSeries = SERIES_TITLE.test(rawTitle) || href.includes('season') || href.includes('series');
|
|
146
185
|
|
|
147
186
|
const title = cleanTitle(rawTitle);
|
|
148
187
|
if (!title) return;
|
|
@@ -157,777 +196,463 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
157
196
|
}
|
|
158
197
|
|
|
159
198
|
results.push({
|
|
160
|
-
id
|
|
199
|
+
id,
|
|
161
200
|
title,
|
|
162
|
-
url:
|
|
201
|
+
url: new PolyURL(href, `${baseUrl}/`).href,
|
|
163
202
|
image,
|
|
164
|
-
...resultMeta(rawTitle,
|
|
203
|
+
...resultMeta(rawTitle, id, isSeries),
|
|
165
204
|
});
|
|
166
205
|
});
|
|
167
206
|
|
|
168
207
|
return results;
|
|
169
208
|
};
|
|
170
209
|
|
|
171
|
-
/**
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
const search = async (query: string, page: number = 1): Promise<ISearch<IMovieResult>> => {
|
|
177
|
-
const searchResult: ISearch<IMovieResult> = {
|
|
210
|
+
/** A listing of the site's WordPress pages: `path` (none for the home page) at `page`, plus `query`. */
|
|
211
|
+
const fetchListing = async (path: string, page: number, query = ''): Promise<ISearch<IMovieResult>> => {
|
|
212
|
+
const { data } = await request(`${baseUrl}/${path ? `${path}/` : ''}${page > 1 ? `page/${page}/` : ''}${query}`);
|
|
213
|
+
const $ = load(data);
|
|
214
|
+
return {
|
|
178
215
|
currentPage: page,
|
|
179
|
-
hasNextPage:
|
|
180
|
-
results:
|
|
216
|
+
hasNextPage: $('.pagination, .nav-links').find('.next, a:contains("Next")').length > 0,
|
|
217
|
+
results: parseHtmlGrid($),
|
|
181
218
|
};
|
|
219
|
+
};
|
|
182
220
|
|
|
183
|
-
|
|
221
|
+
const search = async (query: string, page: number = 1): Promise<ISearch<IMovieResult>> => {
|
|
222
|
+
// search.php is the site's Typesense search; when it fails or finds nothing, the WordPress
|
|
223
|
+
// search may still find the post.
|
|
184
224
|
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) {
|
|
225
|
+
const { data } = await request(`${baseUrl}/search.php?q=${encodeURIComponent(query)}&page=${page}`);
|
|
226
|
+
if (Array.isArray(data?.hits) && data.hits.length > 0) {
|
|
194
227
|
const perPage = data.request_params?.per_page || 15;
|
|
195
228
|
const total = typeof data.found === 'number' ? data.found : 0;
|
|
196
|
-
|
|
197
|
-
|
|
229
|
+
const results: IMovieResult[] = [];
|
|
198
230
|
for (const hit of data.hits) {
|
|
199
231
|
const doc = hit.document;
|
|
200
232
|
if (!doc) continue;
|
|
201
233
|
|
|
202
234
|
const permalink = doc.permalink || '';
|
|
203
|
-
const
|
|
204
|
-
const cleanId = postUrl.pathname.replace(/^\/|\/$/g, '');
|
|
235
|
+
const id = pageId(permalink, baseUrl);
|
|
205
236
|
const rawPostTitle = doc.post_title || '';
|
|
206
|
-
const title = cleanTitle(rawPostTitle);
|
|
207
|
-
|
|
208
237
|
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);
|
|
238
|
+
const isSeries = categories.some((c) => /series/i.test(c)) || SERIES_TITLE.test(rawPostTitle);
|
|
211
239
|
|
|
212
|
-
|
|
213
|
-
id
|
|
214
|
-
title,
|
|
215
|
-
url:
|
|
240
|
+
results.push({
|
|
241
|
+
id,
|
|
242
|
+
title: cleanTitle(rawPostTitle),
|
|
243
|
+
url: new PolyURL(permalink, `${baseUrl}/`).href,
|
|
216
244
|
image: doc.post_thumbnail || '',
|
|
217
|
-
...resultMeta(rawPostTitle,
|
|
245
|
+
...resultMeta(rawPostTitle, id, isSeries),
|
|
218
246
|
});
|
|
219
247
|
}
|
|
220
|
-
|
|
221
|
-
return searchResult;
|
|
248
|
+
return { currentPage: page, hasNextPage: page * perPage < total, results };
|
|
222
249
|
}
|
|
223
|
-
} catch {
|
|
224
|
-
// Fallback to HTML scraping search
|
|
225
|
-
}
|
|
250
|
+
} catch {}
|
|
226
251
|
|
|
227
|
-
|
|
228
|
-
|
|
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
|
-
});
|
|
240
|
-
|
|
241
|
-
const $ = load(data);
|
|
242
|
-
searchResult.results = parseHtmlGrid(data);
|
|
252
|
+
return fetchListing('', page, `?s=${encodeURIComponent(query)}`);
|
|
253
|
+
};
|
|
243
254
|
|
|
244
|
-
|
|
245
|
-
|
|
255
|
+
type SeasonPack = { title: string; season: number; url: string };
|
|
256
|
+
|
|
257
|
+
const fetchPackEpisodes = async (pack: SeasonPack, postUrl: string): Promise<IMovieEpisode[]> => {
|
|
258
|
+
const { data } = await request(pack.url, postUrl);
|
|
259
|
+
const $ = load(data);
|
|
260
|
+
const episodes: IMovieEpisode[] = [];
|
|
261
|
+
|
|
262
|
+
$('h3, h4, h5, p').each((_, element) => {
|
|
263
|
+
const heading = $(element);
|
|
264
|
+
const text = heading.text().trim();
|
|
265
|
+
if (!/episodes?\s*[:\d-]/i.test(text) && !/e\d{1,3}\b/i.test(text) && !/^episode\s*\d+/i.test(text)) return;
|
|
266
|
+
|
|
267
|
+
const title = text
|
|
268
|
+
.replace(/\s+/g, ' ')
|
|
269
|
+
.trim()
|
|
270
|
+
.replace(/^[-:\s]+|[-:\s]+$/g, '')
|
|
271
|
+
.replace(/^episodes?\s*:\s*/i, 'Episode ');
|
|
272
|
+
const number = /\b(?:episode|e)\s*(\d+)/i.exec(title)?.[1];
|
|
273
|
+
const link = downloadLink($, linkBlockAfter(heading));
|
|
274
|
+
|
|
275
|
+
if (link?.startsWith('http') && !episodes.some((e) => e.url === link)) {
|
|
276
|
+
episodes.push({
|
|
277
|
+
id: link,
|
|
278
|
+
title,
|
|
279
|
+
number: number ? parseInt(number, 10) : undefined,
|
|
280
|
+
season: pack.season,
|
|
281
|
+
url: link,
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
});
|
|
246
285
|
|
|
247
|
-
|
|
248
|
-
} catch (err: any) {
|
|
249
|
-
throw new Error((err as Error).message);
|
|
250
|
-
}
|
|
286
|
+
return episodes;
|
|
251
287
|
};
|
|
252
288
|
|
|
253
|
-
/**
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
289
|
+
/** A series post lists a pack per season and quality; each pack's page lists its episodes. */
|
|
290
|
+
const fetchSeriesEpisodes = async ($: CheerioAPI, postUrl: string): Promise<IMovieEpisode[]> => {
|
|
291
|
+
const packs: SeasonPack[] = [];
|
|
292
|
+
|
|
293
|
+
$('h3, h4, h5, p').each((_, element) => {
|
|
294
|
+
const heading = $(element);
|
|
295
|
+
const text = heading.text().trim();
|
|
296
|
+
if (!/season\s*\d+|s\d+/i.test(text)) return;
|
|
297
|
+
|
|
298
|
+
// Only headings followed by download links are packs. This skips the post title heading
|
|
299
|
+
// ("Download X Season 3 ...") whose next paragraph holds the IMDb link.
|
|
300
|
+
const links = linkBlockAfter(heading)
|
|
301
|
+
.find('a[href]')
|
|
302
|
+
.toArray()
|
|
303
|
+
.map((a) => ({ href: $(a).attr('href') || '', text: $(a).text().trim() }))
|
|
304
|
+
.filter((l) => l.href.startsWith('http') && hostRank(l.href) >= 0 && !/zip|batch|login/i.test(l.text));
|
|
305
|
+
if (!links.length) return;
|
|
306
|
+
|
|
307
|
+
// Some blocks list one link per quality ("480p [150MB/E]", "720p [350MB/E]"); prefer V-Cloud otherwise.
|
|
308
|
+
const preferred = links.find((l) => /v-?cloud/i.test(l.text)) ?? links[0]!;
|
|
309
|
+
const best = links.reduce((acc, l) => (qualityRank(l.text) > qualityRank(acc.text) ? l : acc), preferred);
|
|
310
|
+
packs.push({ title: `${text} ${best.text}`, season: extractSeasonNumber(text), url: best.href });
|
|
311
|
+
});
|
|
262
312
|
|
|
263
|
-
const
|
|
313
|
+
const bestPerSeason = new Map<number, SeasonPack>();
|
|
314
|
+
for (const pack of packs) {
|
|
315
|
+
const current = bestPerSeason.get(pack.season);
|
|
316
|
+
if (!current || qualityRank(pack.title) > qualityRank(current.title)) bestPerSeason.set(pack.season, pack);
|
|
317
|
+
}
|
|
264
318
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
319
|
+
// A season whose pack page fails to load is left out; the other seasons still list.
|
|
320
|
+
const perSeason = await Promise.allSettled(
|
|
321
|
+
Array.from(bestPerSeason.values()).map((pack) => fetchPackEpisodes(pack, postUrl))
|
|
322
|
+
);
|
|
323
|
+
const episodes = perSeason.flatMap((r) => (r.status === 'fulfilled' ? r.value : []));
|
|
324
|
+
if (episodes.length) return episodes;
|
|
325
|
+
|
|
326
|
+
// No pack page listed episodes: offer the packs themselves.
|
|
327
|
+
return packs.map((pack, i) => ({
|
|
328
|
+
id: pack.url,
|
|
329
|
+
title: pack.title || `Season ${pack.season}`,
|
|
330
|
+
season: pack.season,
|
|
331
|
+
number: i + 1,
|
|
332
|
+
url: pack.url,
|
|
333
|
+
}));
|
|
334
|
+
};
|
|
270
335
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
336
|
+
/** A movie post lists a download link per quality. */
|
|
337
|
+
const movieEpisodes = ($: CheerioAPI, title: string): IMovieEpisode[] => {
|
|
338
|
+
const episodes: IMovieEpisode[] = [];
|
|
339
|
+
$('h3, h4, h5, p').each((_, element) => {
|
|
340
|
+
const heading = $(element);
|
|
341
|
+
const text = heading.text().trim();
|
|
342
|
+
const href = downloadLink($, linkBlockAfter(heading));
|
|
343
|
+
if (!href?.startsWith('http') || episodes.some((e) => e.url === href)) return;
|
|
344
|
+
episodes.push({ id: href, title: text || `${title} HD`, number: episodes.length + 1, season: 1, url: href });
|
|
345
|
+
});
|
|
346
|
+
if (episodes.length) return episodes;
|
|
347
|
+
|
|
348
|
+
// No quality blocks: take any download link on the page.
|
|
349
|
+
$('a[href]')
|
|
350
|
+
.toArray()
|
|
351
|
+
.map((a) => $(a).attr('href')!)
|
|
352
|
+
.filter((href) => hostRank(href) >= 0)
|
|
353
|
+
.forEach((href, i) => {
|
|
354
|
+
if (!href.startsWith('http') || episodes.some((e) => e.url === href)) return;
|
|
355
|
+
episodes.push({ id: href, title: `${title} Option ${i + 1}`, number: i + 1, season: 1, url: href });
|
|
277
356
|
});
|
|
357
|
+
return episodes;
|
|
358
|
+
};
|
|
278
359
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
360
|
+
/** @param mediaId post id (its slug) or URL */
|
|
361
|
+
const fetchMediaInfo = async (mediaId: string): Promise<IMovieInfo> => {
|
|
362
|
+
const url = pageUrl(mediaId ?? '', baseUrl);
|
|
363
|
+
const { data } = await request(url);
|
|
364
|
+
const $ = load(data);
|
|
365
|
+
const content = $('.entry-content, .post-content').first();
|
|
366
|
+
// "Series Info" / "Movie Info" block, e.g. "Season: 1-5 ... Released Year: 2008-2013"
|
|
367
|
+
const infoText = $('h3, h4')
|
|
368
|
+
.filter((_, el) => /(series|movie)\s*info/i.test($(el).text()))
|
|
369
|
+
.first()
|
|
370
|
+
.nextAll()
|
|
371
|
+
.slice(0, 2)
|
|
372
|
+
.text()
|
|
373
|
+
.replace(/\s+/g, ' ');
|
|
374
|
+
|
|
375
|
+
const rawTitle =
|
|
376
|
+
$('h1.entry-title').text().trim() ||
|
|
377
|
+
$('meta[property="og:title"]').attr('content') ||
|
|
378
|
+
$('h1').first().text().trim() ||
|
|
379
|
+
'';
|
|
380
|
+
const title = cleanTitle((rawTitle.split('|')[0] || '').trim());
|
|
381
|
+
|
|
382
|
+
let image =
|
|
383
|
+
$('meta[property="og:image"]').attr('content') ||
|
|
384
|
+
content.find('img[data-lazy-src]').attr('data-lazy-src') ||
|
|
385
|
+
content.find('img[data-src]').attr('data-src') ||
|
|
386
|
+
content.find('img').first().attr('src') ||
|
|
387
|
+
'';
|
|
388
|
+
if (image.startsWith('//')) {
|
|
389
|
+
image = `https:${image}`;
|
|
390
|
+
}
|
|
297
391
|
|
|
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;
|
|
392
|
+
const synopsisHeader = $('h3, h4, h5').filter((_, el) => /synopsis|plot/i.test($(el).text()));
|
|
393
|
+
const synopsis =
|
|
394
|
+
(synopsisHeader.length > 0 ? synopsisHeader.next('p').text().trim() : '') ||
|
|
395
|
+
$('meta[property="og:description"]').attr('content')?.trim() ||
|
|
396
|
+
'';
|
|
309
397
|
|
|
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;
|
|
398
|
+
const imdbId = ($('a[href*="imdb.com"]').attr('href')?.match(/tt\d+/) || data.match(/tt\d{7,}/))?.[0];
|
|
399
|
+
const ratingText =
|
|
400
|
+
$('.imdb-score, .starstruck-rating').text() || /IMDb Rating\W*([\d.]+)/i.exec(infoText)?.[1] || '';
|
|
401
|
+
const rating = /(\d+(?:\.\d+)?)/.exec(ratingText)?.[1];
|
|
320
402
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
}
|
|
403
|
+
const pageText = `${title} ${content.text()}`;
|
|
404
|
+
const isSeries =
|
|
405
|
+
/\b(?:web\s*series|season\s*\d+|s\d+\s*e\d+)\b/i.test(pageText) ||
|
|
406
|
+
$('a:contains("V-Cloud"), a:contains("vcloud")').length > 1;
|
|
326
407
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
$('.imdb-score, .starstruck-rating').text() || /IMDb Rating\W*([\d.]+)/i.exec(infoText)?.[1] || '';
|
|
330
|
-
const ratingMatch = ratingText.match(/(\d+(?:\.\d+)?)/);
|
|
331
|
-
if (ratingMatch?.[1]) {
|
|
332
|
-
movieInfo.rating = parseFloat(ratingMatch[1]);
|
|
333
|
-
}
|
|
408
|
+
const episodes = isSeries ? await fetchSeriesEpisodes($, url) : movieEpisodes($, title);
|
|
409
|
+
if (!episodes.length) episodes.push({ id: url, title: title || 'Movie', url, number: 1, season: 1 });
|
|
334
410
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
411
|
+
return {
|
|
412
|
+
id: pageId(url, baseUrl),
|
|
413
|
+
title,
|
|
414
|
+
url,
|
|
415
|
+
image,
|
|
416
|
+
description: synopsis,
|
|
417
|
+
...(imdbId ? { imdbId } : {}),
|
|
418
|
+
...(rating ? { rating: parseFloat(rating) } : {}),
|
|
419
|
+
// "Released Year: 2008-2013" gives the first-air year; titles often carry a season's year
|
|
420
|
+
releaseDate: extractYear(/Released?\s*Year\s*:?\s*([^\s]+)/i.exec(infoText)?.[1] ?? '') ?? extractYear(title),
|
|
421
|
+
genres: $('a[rel="category tag"], .category a')
|
|
341
422
|
.map((_, el) => $(el).text().trim())
|
|
342
423
|
.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
|
-
}
|
|
544
|
-
|
|
545
|
-
// Final fallback: at least 1 episode pointing to the media URL
|
|
546
|
-
if (episodesList.length === 0) {
|
|
547
|
-
episodesList.push({
|
|
548
|
-
id: movieInfo.url || fullUrl,
|
|
549
|
-
title: movieInfo.title || 'Movie',
|
|
550
|
-
url: movieInfo.url || fullUrl,
|
|
551
|
-
number: 1,
|
|
552
|
-
season: 1,
|
|
553
|
-
});
|
|
554
|
-
}
|
|
424
|
+
.filter((g) => g && !g.includes('1080p') && !g.includes('720p') && !g.includes('480p')),
|
|
425
|
+
type: isSeries ? TvTypeEnum.TVSERIES : TvTypeEnum.MOVIE,
|
|
426
|
+
episodes,
|
|
427
|
+
totalEpisodes: episodes.length,
|
|
428
|
+
};
|
|
429
|
+
};
|
|
555
430
|
|
|
556
|
-
|
|
557
|
-
|
|
431
|
+
/** An episode's download link: `episodeId` when it is one, else the first episode of the post it names. */
|
|
432
|
+
const resolveEpisodeUrl = async (episodeId: string): Promise<string> => {
|
|
433
|
+
if (episodeId?.startsWith('http')) return episodeId;
|
|
434
|
+
const url = (await fetchMediaInfo(episodeId)).episodes?.[0]?.url;
|
|
435
|
+
if (!url) throw new Error(`Unable to resolve episode source for ${episodeId}`);
|
|
436
|
+
return url;
|
|
437
|
+
};
|
|
558
438
|
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
439
|
+
/** The sources a HubCloud (or V-Cloud) page lists, each `server` the name of its server (`hubcloud-cf-storage`). */
|
|
440
|
+
const readHubCloud = async (url: string): Promise<ISource> => {
|
|
441
|
+
const res = await HubCloud(ctx).extract(new PolyURL(url));
|
|
442
|
+
return {
|
|
443
|
+
...res,
|
|
444
|
+
sources: res.sources.map((source) => ({ ...source, server: serverName('hubcloud', source.server) })),
|
|
445
|
+
};
|
|
563
446
|
};
|
|
564
447
|
|
|
565
448
|
/**
|
|
566
|
-
*
|
|
567
|
-
*
|
|
568
|
-
*
|
|
449
|
+
* The files on a Gofile page (none when Gofile can't read it), and whether Gofile's API took or
|
|
450
|
+
* rejected the account token it keeps: a file (or an empty folder) says the token works, and
|
|
451
|
+
* `error-auth` that Gofile dropped it, so the next read gets a new one.
|
|
569
452
|
*/
|
|
570
|
-
const
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
453
|
+
const readGofile = async (source: IVideo): Promise<{ files: IVideo[]; tokenChecked: boolean }> => {
|
|
454
|
+
try {
|
|
455
|
+
const { sources } = await Gofile(ctx).extract(new PolyURL(source.url));
|
|
456
|
+
const files = sources.map((file) => ({
|
|
457
|
+
...file,
|
|
458
|
+
server: source.server,
|
|
459
|
+
quality: source.quality,
|
|
460
|
+
size: source.size,
|
|
461
|
+
}));
|
|
462
|
+
return { files, tokenChecked: true };
|
|
463
|
+
} catch (err) {
|
|
464
|
+
const message = String((err as Error | undefined)?.message);
|
|
465
|
+
return {
|
|
466
|
+
files: [],
|
|
467
|
+
tokenChecked: /^\[Gofile\] (API returned (error-auth|HTTP 401)$|No downloadable file)/.test(message),
|
|
468
|
+
};
|
|
582
469
|
}
|
|
470
|
+
};
|
|
583
471
|
|
|
584
|
-
|
|
585
|
-
|
|
472
|
+
/**
|
|
473
|
+
* Each source, or when it is a Gofile page, the files on it, in order. Gofile pages are read one
|
|
474
|
+
* at a time until one checks Gofile's account token, then the others all at once. The token is
|
|
475
|
+
* kept from earlier calls and may have expired: the first page read with it drops it and the
|
|
476
|
+
* others get a new one, as when every page was read one after another.
|
|
477
|
+
*/
|
|
478
|
+
const resolveGofiles = async (sources: IVideo[]): Promise<IVideo[][]> => {
|
|
479
|
+
const resolved: (IVideo[] | Promise<IVideo[]>)[] = [];
|
|
480
|
+
let tokenChecked = false;
|
|
481
|
+
for (const source of sources) {
|
|
482
|
+
if (!isGofilePage(source.url)) {
|
|
483
|
+
resolved.push([source]);
|
|
484
|
+
} else if (tokenChecked) {
|
|
485
|
+
resolved.push(readGofile(source).then((read) => read.files));
|
|
486
|
+
} else {
|
|
487
|
+
const read = await readGofile(source);
|
|
488
|
+
tokenChecked = read.tokenChecked;
|
|
489
|
+
resolved.push(read.files);
|
|
490
|
+
}
|
|
586
491
|
}
|
|
492
|
+
return Promise.all(resolved);
|
|
493
|
+
};
|
|
587
494
|
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
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 });
|
|
495
|
+
/** The files a HubCloud page lists (its Gofile pages read), as sources of an episode of `quality`. */
|
|
496
|
+
const hubCloudFiles = async (url: string, quality: string) => {
|
|
497
|
+
const res = await readHubCloud(url);
|
|
498
|
+
const sources: IVideo[] = [];
|
|
499
|
+
for (const files of await resolveGofiles(res.sources)) {
|
|
500
|
+
for (const file of files) {
|
|
501
|
+
sources.push({ ...file, quality: file.quality && file.quality !== 'auto' ? file.quality : quality });
|
|
608
502
|
}
|
|
609
|
-
|
|
610
|
-
return servers;
|
|
611
503
|
}
|
|
504
|
+
return { sources, headers: res.headers };
|
|
505
|
+
};
|
|
612
506
|
|
|
613
|
-
|
|
507
|
+
/**
|
|
508
|
+
* The servers a HubCloud page lists, labelled with HubCloud's name for their host, then the page
|
|
509
|
+
* itself (`hubcloud`), which fetchEpisodeSources reads again.
|
|
510
|
+
*/
|
|
511
|
+
const hubCloudServers = async (url: string): Promise<IEpisodeServer[]> => {
|
|
512
|
+
const servers: IEpisodeServer[] = [];
|
|
614
513
|
try {
|
|
615
|
-
const
|
|
616
|
-
|
|
617
|
-
|
|
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 });
|
|
514
|
+
for (const source of (await HubCloud(ctx).extract(new PolyURL(url))).sources) {
|
|
515
|
+
const name = serverName('hubcloud', source.server);
|
|
516
|
+
if (!servers.some((s) => s.name === name)) servers.push({ name, url: source.url, label: source.server });
|
|
655
517
|
}
|
|
656
518
|
} catch {
|
|
657
|
-
//
|
|
519
|
+
// The page itself stays a server.
|
|
658
520
|
}
|
|
521
|
+
servers.push({ name: serverName('hubcloud'), url });
|
|
522
|
+
return servers;
|
|
523
|
+
};
|
|
659
524
|
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
}
|
|
525
|
+
/** A link page's (nexdrive) HTML, which servers, then sources, read (see linkPages). */
|
|
526
|
+
const linkPage = (url: string) => linkPages.get(url, async () => (await request(url)).data);
|
|
663
527
|
|
|
664
|
-
|
|
528
|
+
/** Where a link page (nexdrive) sends the file: its HubCloud page and its FastDL and FilePress mirrors. */
|
|
529
|
+
const linkPageHosts = (html: string) => {
|
|
530
|
+
const $ = load(html);
|
|
531
|
+
const hrefs = $('a[href]')
|
|
532
|
+
.toArray()
|
|
533
|
+
.map((a) => $(a).attr('href')!);
|
|
534
|
+
return {
|
|
535
|
+
hubCloud: hrefs.find(isHubCloudPage),
|
|
536
|
+
fastDl: hrefs.find(isFastDl) || $('a:contains("G-Direct")').attr('href'),
|
|
537
|
+
filePress:
|
|
538
|
+
$('.btn.btn-sm.btn-outline[style*="rgb(252,185,0)"]').parent().attr('href') ||
|
|
539
|
+
hrefs.find((href) => /filebee|filepress/.test(href)),
|
|
540
|
+
};
|
|
665
541
|
};
|
|
666
542
|
|
|
667
543
|
/**
|
|
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)
|
|
544
|
+
* @param episodeId download link from fetchMediaInfo, or a post id (its first episode is used)
|
|
672
545
|
*/
|
|
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';
|
|
697
|
-
|
|
698
|
-
const extraSources: IVideo[] = [];
|
|
699
|
-
|
|
700
|
-
// If not a direct cloud link (e.g. intermediate dotlink / nexdrive page)
|
|
701
|
-
if (!resolvedUrl.includes('cloud')) {
|
|
702
|
-
try {
|
|
703
|
-
const dotlinkRes = await axios.get(resolvedUrl, { headers: defaultHeaders });
|
|
704
|
-
const dotlinkText = dotlinkRes.data;
|
|
705
|
-
|
|
706
|
-
// Extract vlink (HubCloud / V-Cloud)
|
|
707
|
-
const vlinkMatch = dotlinkText.match(/<a\s+href="([^"]*cloud\.[^"]*)"/i);
|
|
708
|
-
if (vlinkMatch?.[1]) {
|
|
709
|
-
resolvedUrl = vlinkMatch[1];
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
// Extract FastDL direct stream if available
|
|
713
|
-
const fastdlMatch = dotlinkText.match(/<a\s+href="([^"]*fastdl\.[^"]*)"/i);
|
|
714
|
-
if (fastdlMatch?.[1]) {
|
|
715
|
-
try {
|
|
716
|
-
const fdlRes = await axios.get(fastdlMatch[1], {
|
|
717
|
-
headers: { ...defaultHeaders, Referer: resolvedUrl },
|
|
718
|
-
});
|
|
719
|
-
const reurlMatch = fdlRes.data.match(/var\s+reurl\s*=\s*['"]([^'"]+)['"]/);
|
|
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
|
-
}
|
|
546
|
+
const fetchEpisodeServers = async (episodeId: string, _mediaId?: string): Promise<IEpisodeServer[]> => {
|
|
547
|
+
const episodeUrl = await resolveEpisodeUrl(episodeId);
|
|
548
|
+
if (isHubCloudPage(episodeUrl)) return hubCloudServers(episodeUrl);
|
|
549
|
+
if (isFastDl(episodeUrl)) return [{ name: serverName('fastdl'), url: episodeUrl }];
|
|
550
|
+
|
|
551
|
+
const hosts = linkPageHosts(await linkPage(episodeUrl));
|
|
552
|
+
const servers = hosts.hubCloud ? await hubCloudServers(hosts.hubCloud) : [];
|
|
553
|
+
if (hosts.fastDl) servers.push({ name: serverName('fastdl'), url: hosts.fastDl });
|
|
554
|
+
if (hosts.filePress) servers.push({ name: serverName('filepress'), url: hosts.filePress });
|
|
555
|
+
return servers.length ? servers : [{ name: serverName('hubcloud'), url: episodeUrl }];
|
|
556
|
+
};
|
|
730
557
|
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
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
|
-
}
|
|
777
|
-
} catch {}
|
|
778
|
-
} catch {}
|
|
779
|
-
}
|
|
558
|
+
/** The file behind a FastDL page, which hands it to the browser in `var reurl`. */
|
|
559
|
+
const fastDlFile = async (url: string, referer: string): Promise<string | undefined> => {
|
|
560
|
+
const { data } = await request(url, referer);
|
|
561
|
+
const reurl = /var\s+reurl\s*=\s*['"]([^'"]+)['"]/.exec(data)?.[1];
|
|
562
|
+
return reurl ? unwrapFastDlUrl(reurl) : undefined;
|
|
563
|
+
};
|
|
780
564
|
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
565
|
+
const filePressFile = async (link: string): Promise<string | undefined> => {
|
|
566
|
+
const id = link.split('/').filter(Boolean).pop();
|
|
567
|
+
const origin = link.split('/').slice(0, 3).join('/');
|
|
568
|
+
const post = (path: string, fileId: unknown) =>
|
|
569
|
+
axios.post(
|
|
570
|
+
`${origin}/api/file/${path}/`,
|
|
571
|
+
{ id: fileId, method: 'indexDownlaod', captchaValue: null },
|
|
572
|
+
{ headers: { 'Content-Type': 'application/json', 'Referer': origin } }
|
|
573
|
+
);
|
|
574
|
+
const token = await post('downlaod', id);
|
|
575
|
+
if (!token.data?.status || !token.data?.data) return undefined;
|
|
576
|
+
const file = (await post('downlaod2', token.data.data)).data?.data?.[0];
|
|
577
|
+
return file?.startsWith('http') ? file : undefined;
|
|
578
|
+
};
|
|
790
579
|
|
|
791
|
-
|
|
792
|
-
|
|
580
|
+
/**
|
|
581
|
+
* @param episodeId download link from fetchMediaInfo (V-Cloud, HubCloud, nexdrive or FastDL page),
|
|
582
|
+
* or a post id (its first episode is used)
|
|
583
|
+
* @param server a server name from fetchEpisodeServers, or the start of one (`hubcloud`), whose
|
|
584
|
+
* sources to list first; no preference when omitted
|
|
585
|
+
*/
|
|
586
|
+
const fetchEpisodeSources = async (episodeId: string, _mediaId?: string, server?: string): Promise<ISource> => {
|
|
587
|
+
const episodeUrl = await resolveEpisodeUrl(episodeId);
|
|
588
|
+
const episodeQuality = qualityIn(episodeUrl) ?? 'auto';
|
|
589
|
+
const fileSource = (url: string, host: string): IVideo => ({
|
|
590
|
+
url,
|
|
591
|
+
server: serverName(host),
|
|
592
|
+
quality: episodeQuality,
|
|
593
|
+
isM3U8: false,
|
|
594
|
+
});
|
|
793
595
|
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
596
|
+
if (isFastDl(episodeUrl)) {
|
|
597
|
+
const file = (await fastDlFile(episodeUrl, NEXDRIVE_URL)) ?? unwrapFastDlUrl(episodeUrl);
|
|
598
|
+
return {
|
|
599
|
+
headers: { Referer: `${new PolyURL(episodeUrl).origin}/` },
|
|
600
|
+
sources: [fileSource(file, 'fastdl')],
|
|
601
|
+
download: file,
|
|
602
|
+
};
|
|
800
603
|
}
|
|
801
604
|
|
|
802
|
-
// HubCloud
|
|
803
|
-
|
|
804
|
-
let
|
|
805
|
-
|
|
806
|
-
if (
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
const hubCloudRes = await hubCloudExtractor.extract(new PolyURL(resolvedUrl));
|
|
810
|
-
if (hubCloudRes?.sources && Array.isArray(hubCloudRes.sources)) {
|
|
811
|
-
hubCloudSources = hubCloudRes.sources.map((s: IVideo) => ({
|
|
812
|
-
...s,
|
|
813
|
-
server: (s as any).server || s.quality || 'HubCloud',
|
|
814
|
-
quality:
|
|
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;
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
} catch {}
|
|
605
|
+
// A link page (nexdrive) links to the HubCloud page and to mirrors on FastDL and FilePress, which
|
|
606
|
+
// all load at once. Each mirror is optional: when one fails, the others still play.
|
|
607
|
+
let hosts: ReturnType<typeof linkPageHosts> | undefined;
|
|
608
|
+
let hubCloudUrl: string | undefined = episodeUrl;
|
|
609
|
+
if (!isHubCloudPage(episodeUrl)) {
|
|
610
|
+
hosts = linkPageHosts(await linkPage(episodeUrl));
|
|
611
|
+
hubCloudUrl = hosts.hubCloud;
|
|
826
612
|
}
|
|
613
|
+
const [fastDl, filePress, hubCloud] = await Promise.allSettled([
|
|
614
|
+
hosts?.fastDl ? fastDlFile(hosts.fastDl, episodeUrl) : undefined,
|
|
615
|
+
hosts?.filePress ? filePressFile(hosts.filePress) : undefined,
|
|
616
|
+
hubCloudUrl ? hubCloudFiles(hubCloudUrl, episodeQuality) : undefined,
|
|
617
|
+
]);
|
|
827
618
|
|
|
828
|
-
|
|
619
|
+
const mirrors: IVideo[] = [];
|
|
620
|
+
if (fastDl.status === 'fulfilled' && fastDl.value) mirrors.push(fileSource(fastDl.value, 'fastdl'));
|
|
621
|
+
if (filePress.status === 'fulfilled' && filePress.value) mirrors.push(fileSource(filePress.value, 'filepress'));
|
|
829
622
|
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
}
|
|
623
|
+
let headers: Record<string, string> = { Referer: baseUrl };
|
|
624
|
+
let hubCloudSources: IVideo[] = [];
|
|
625
|
+
if (hubCloud.status === 'rejected') {
|
|
626
|
+
if (!mirrors.length) throw hubCloud.reason;
|
|
627
|
+
} else if (hubCloud.value) {
|
|
628
|
+
hubCloudSources = hubCloud.value.sources;
|
|
629
|
+
headers = hubCloud.value.headers ?? headers;
|
|
838
630
|
}
|
|
839
631
|
|
|
840
|
-
|
|
632
|
+
let sources = [...mirrors, ...hubCloudSources];
|
|
633
|
+
if (sources.length === 0) {
|
|
841
634
|
throw new Error(`[VegaMovies] No streamable video sources found for ${episodeId}`);
|
|
842
635
|
}
|
|
843
636
|
|
|
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);
|
|
637
|
+
if (server) {
|
|
638
|
+
const wanted = server.toLowerCase();
|
|
639
|
+
const named = (s: IVideo) => (s.server ?? '').toLowerCase().startsWith(wanted);
|
|
640
|
+
sources = [...sources.filter(named), ...sources.filter((s) => !named(s))];
|
|
880
641
|
}
|
|
881
|
-
};
|
|
882
642
|
|
|
883
|
-
|
|
884
|
-
* Fetch recent movies
|
|
885
|
-
*/
|
|
886
|
-
const fetchRecentMovies = async (page: number = 1): Promise<ISearch<IMovieResult>> => {
|
|
887
|
-
return fetchByFilter('category/movies-by-genres', page);
|
|
643
|
+
return { headers, sources, download: sources[0]?.url };
|
|
888
644
|
};
|
|
889
645
|
|
|
890
|
-
|
|
891
|
-
* Fetch recent TV shows
|
|
892
|
-
*/
|
|
893
|
-
const fetchRecentTVShows = async (page: number = 1): Promise<ISearch<IMovieResult>> => {
|
|
894
|
-
return fetchByFilter('web-series', page);
|
|
895
|
-
};
|
|
646
|
+
const fetchLatest = (page: number = 1) => fetchListing('', page);
|
|
896
647
|
|
|
897
648
|
/**
|
|
898
|
-
*
|
|
899
|
-
* @param filter path filter (e.g. 'web-series/netflix')
|
|
900
|
-
* @param page page number (default 1)
|
|
649
|
+
* @param filter a category path, e.g. `web-series/netflix`
|
|
901
650
|
*/
|
|
902
|
-
const fetchByFilter =
|
|
903
|
-
const searchResult: ISearch<IMovieResult> = {
|
|
904
|
-
currentPage: page,
|
|
905
|
-
hasNextPage: false,
|
|
906
|
-
results: [],
|
|
907
|
-
};
|
|
908
|
-
|
|
909
|
-
try {
|
|
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);
|
|
651
|
+
const fetchByFilter = (filter: string, page: number = 1) => fetchListing(filter.replace(/^\/|\/$/g, ''), page);
|
|
922
652
|
|
|
923
|
-
|
|
924
|
-
searchResult.hasNextPage = $(navSelector).find('.next, a:contains("Next")').length > 0;
|
|
653
|
+
const fetchRecentMovies = (page: number = 1) => fetchByFilter('category/movies-by-genres', page);
|
|
925
654
|
|
|
926
|
-
|
|
927
|
-
} catch (err: any) {
|
|
928
|
-
throw new Error((err as Error).message);
|
|
929
|
-
}
|
|
930
|
-
};
|
|
655
|
+
const fetchRecentTVShows = (page: number = 1) => fetchByFilter('web-series', page);
|
|
931
656
|
|
|
932
657
|
return {
|
|
933
658
|
...config,
|