react-native-consumet 1.6.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Consumet.podspec +2 -2
- package/README.md +24 -15
- package/android/build.gradle +9 -8
- package/android/generated/java/com/consumet/NativeConsumetSpec.java +0 -4
- package/android/generated/jni/RNConsumetSpec-generated.cpp +0 -6
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +0 -10
- package/android/src/androidTest/AndroidManifest.xml +4 -0
- package/android/src/androidTest/java/com/consumet/DeobfuscatorModuleTest.kt +88 -0
- package/android/src/androidTest/java/com/consumet/SynchronyEngineTest.kt +75 -0
- package/android/src/androidTest/java/com/consumet/TestSupport.kt +115 -0
- package/android/src/androidTest/java/com/consumet/WebViewContractTest.kt +125 -0
- package/android/src/main/java/com/consumet/ConsumetModule.kt +0 -13
- package/android/src/main/java/com/consumet/DdosGuardModule.kt +26 -60
- package/android/src/main/java/com/consumet/DeobfuscatorModule.kt +59 -68
- package/android/src/main/java/com/consumet/HttpRequestModule.kt +171 -285
- package/android/src/main/java/com/consumet/Synchrony.kt +65 -0
- package/android/src/main/java/com/consumet/SynchronyScriptCache.kt +121 -0
- package/android/src/main/java/com/consumet/WebViewDebugging.kt +36 -0
- package/android/src/main/java/com/consumet/WebViewTask.kt +101 -0
- package/ios/Consumet.mm +205 -184
- package/ios/RCConsumetSynchronyCache.h +51 -0
- package/ios/RCConsumetSynchronyCache.m +246 -0
- package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec-generated.mm +0 -7
- package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec.h +0 -2
- package/ios/generated/ReactCodegen/RNConsumetSpecJSI.h +0 -10
- package/lib/commonjs/NativeConsumet.ts +68 -2
- package/lib/commonjs/extension-registry.json +174 -54
- package/lib/commonjs/extension-registry.json.sig +1 -0
- package/lib/commonjs/extractors/asianload.js +11 -5
- package/lib/commonjs/extractors/asianload.js.map +1 -1
- package/lib/commonjs/extractors/filemoon.js +11 -6
- package/lib/commonjs/extractors/filemoon.js.map +1 -1
- package/lib/commonjs/extractors/flixcloud.js +0 -2
- package/lib/commonjs/extractors/flixcloud.js.map +1 -1
- package/lib/commonjs/extractors/gdflix.js +0 -2
- package/lib/commonjs/extractors/gdflix.js.map +1 -1
- package/lib/commonjs/extractors/gofile.js +0 -2
- package/lib/commonjs/extractors/gofile.js.map +1 -1
- package/lib/commonjs/extractors/gogocdn.js +13 -7
- package/lib/commonjs/extractors/gogocdn.js.map +1 -1
- package/lib/commonjs/extractors/hubcloud.js +0 -2
- package/lib/commonjs/extractors/hubcloud.js.map +1 -1
- package/lib/commonjs/extractors/index.js +28 -29
- package/lib/commonjs/extractors/index.js.map +1 -1
- package/lib/commonjs/extractors/kwik.js +0 -2
- package/lib/commonjs/extractors/kwik.js.map +1 -1
- package/lib/commonjs/extractors/megaplay.js +0 -2
- package/lib/commonjs/extractors/megaplay.js.map +1 -1
- package/lib/commonjs/extractors/megaup.js +2 -6
- package/lib/commonjs/extractors/megaup.js.map +1 -1
- package/lib/commonjs/extractors/mixdrop.js +10 -5
- package/lib/commonjs/extractors/mixdrop.js.map +1 -1
- package/lib/commonjs/extractors/mp4player.js +11 -6
- package/lib/commonjs/extractors/mp4player.js.map +1 -1
- package/lib/commonjs/extractors/mp4upload.js +10 -5
- package/lib/commonjs/extractors/mp4upload.js.map +1 -1
- package/lib/commonjs/extractors/rapidcloud.js +16 -10
- package/lib/commonjs/extractors/rapidcloud.js.map +1 -1
- package/lib/commonjs/extractors/streamhub.js +11 -6
- package/lib/commonjs/extractors/streamhub.js.map +1 -1
- package/lib/commonjs/extractors/streamlare.js +13 -8
- package/lib/commonjs/extractors/streamlare.js.map +1 -1
- package/lib/commonjs/extractors/streamsb.js +11 -6
- package/lib/commonjs/extractors/streamsb.js.map +1 -1
- package/lib/commonjs/extractors/streamtape.js +10 -5
- package/lib/commonjs/extractors/streamtape.js.map +1 -1
- package/lib/commonjs/extractors/vidhide.js +4 -4
- package/lib/commonjs/extractors/vidhide.js.map +1 -1
- package/lib/commonjs/extractors/vidmoly.js +11 -6
- package/lib/commonjs/extractors/vidmoly.js.map +1 -1
- package/lib/commonjs/extractors/vizcloud.js +11 -6
- package/lib/commonjs/extractors/vizcloud.js.map +1 -1
- package/lib/commonjs/extractors/voe.js +11 -6
- package/lib/commonjs/extractors/voe.js.map +1 -1
- package/lib/commonjs/index.js +130 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/base-provider.js +4 -0
- package/lib/commonjs/models/base-provider.js.map +1 -1
- package/lib/commonjs/models/extension-manifest.js +0 -4
- package/lib/commonjs/models/index.js +7 -0
- package/lib/commonjs/models/index.js.map +1 -1
- package/lib/commonjs/models/meta-error.js +36 -0
- package/lib/commonjs/models/meta-error.js.map +1 -0
- package/lib/commonjs/models/types.js +21 -0
- package/lib/commonjs/models/types.js.map +1 -1
- package/lib/commonjs/providers/anime/anikoto/anikoto.js +14 -10
- package/lib/commonjs/providers/anime/anikoto/anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js +6 -4
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/commonjs/providers/anime/animekai/animekai.js +14 -8
- package/lib/commonjs/providers/anime/animekai/animekai.js.map +1 -1
- package/lib/commonjs/providers/anime/animekai/create-animekai.js +6 -4
- package/lib/commonjs/providers/anime/animekai/create-animekai.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/animepahe.js +17 -11
- package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +6 -15
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animeunity.js +23 -10
- package/lib/commonjs/providers/anime/animeunity.js.map +1 -1
- package/lib/commonjs/providers/anime/anineko/anineko.js +18 -8
- package/lib/commonjs/providers/anime/anineko/anineko.js.map +1 -1
- package/lib/commonjs/providers/anime/anineko/create-anineko.js +4 -2
- package/lib/commonjs/providers/anime/anineko/create-anineko.js.map +1 -1
- package/lib/commonjs/providers/anime/index.js +26 -35
- package/lib/commonjs/providers/anime/index.js.map +1 -1
- package/lib/commonjs/providers/anime/reanime/create-reanime.js +4 -5
- package/lib/commonjs/providers/anime/reanime/create-reanime.js.map +1 -1
- package/lib/commonjs/providers/anime/reanime/reanime.js +13 -8
- package/lib/commonjs/providers/anime/reanime/reanime.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/create-zoro.js +8 -8
- package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/zoro.js +17 -11
- package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/commonjs/providers/index.js +8 -8
- package/lib/commonjs/providers/index.js.map +1 -1
- package/lib/commonjs/providers/light-novels/index.js +6 -7
- package/lib/commonjs/providers/light-novels/index.js.map +1 -1
- package/lib/commonjs/providers/light-novels/novelupdates.js +32 -11
- package/lib/commonjs/providers/light-novels/novelupdates.js.map +1 -1
- package/lib/commonjs/providers/light-novels/readlightnovels.js +15 -7
- package/lib/commonjs/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/commonjs/providers/manga/asurascans.js +169 -100
- package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
- package/lib/commonjs/providers/manga/flamescans.js +181 -94
- package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
- package/lib/commonjs/providers/manga/index.js +14 -31
- package/lib/commonjs/providers/manga/index.js.map +1 -1
- package/lib/commonjs/providers/manga/mangadex.js +243 -231
- package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahere.js +287 -138
- package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
- package/lib/commonjs/providers/manga/mangakakalot.js +215 -111
- package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapill.js +137 -44
- package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
- package/lib/commonjs/providers/meta/anilist.js +595 -1030
- package/lib/commonjs/providers/meta/anilist.js.map +1 -1
- package/lib/commonjs/providers/meta/index.js +1 -0
- package/lib/commonjs/providers/meta/index.js.map +1 -1
- package/lib/commonjs/providers/meta/mal.js +86 -89
- package/lib/commonjs/providers/meta/mal.js.map +1 -1
- package/lib/commonjs/providers/meta/tmdb-api-key.js +29 -0
- package/lib/commonjs/providers/meta/tmdb-api-key.js.map +1 -0
- package/lib/commonjs/providers/meta/tmdb.js +122 -94
- package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/create-himovies.js +3 -3
- package/lib/commonjs/providers/movies/himovies/create-himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/himovies.js +13 -8
- package/lib/commonjs/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/index.js +20 -30
- package/lib/commonjs/providers/movies/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js +3 -3
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies/multimovies.js +13 -8
- package/lib/commonjs/providers/movies/multimovies/multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/index.js +28 -17
- package/lib/commonjs/providers/movies/multistream/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/utils.js +18 -19
- package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js +451 -185
- package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js +22 -0
- package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js.map +1 -0
- package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js +11 -24
- package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
- package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js +30 -0
- package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js.map +1 -0
- package/lib/commonjs/providers/movies/netflixmirror/primemirror.js +22 -0
- package/lib/commonjs/providers/movies/netflixmirror/primemirror.js.map +1 -0
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js +57 -40
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
- package/lib/commonjs/providers/movies/vegamovies/vegamovies.js +11 -14
- package/lib/commonjs/providers/movies/vegamovies/vegamovies.js.map +1 -1
- package/lib/commonjs/providers/movies/yflix/create-yflix.js +2 -2
- package/lib/commonjs/providers/movies/yflix/create-yflix.js.map +1 -1
- package/lib/commonjs/providers/movies/yflix/yflix.js +13 -6
- package/lib/commonjs/providers/movies/yflix/yflix.js.map +1 -1
- package/lib/commonjs/providers/provider-args.js +17 -0
- package/lib/commonjs/providers/provider-args.js.map +1 -0
- package/lib/commonjs/registry-signing-keys.js +26 -0
- package/lib/commonjs/registry-signing-keys.js.map +1 -0
- package/lib/commonjs/utils/ExtractorManager.js +136 -233
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +181 -251
- package/lib/commonjs/utils/ProviderManager.js.map +1 -1
- package/lib/commonjs/utils/create-extractor-context.js +0 -1
- package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
- package/lib/commonjs/utils/create-provider-context.js +37 -29
- package/lib/commonjs/utils/create-provider-context.js.map +1 -1
- package/lib/commonjs/utils/extension-integrity.js +62 -0
- package/lib/commonjs/utils/extension-integrity.js.map +1 -0
- package/lib/commonjs/utils/extension-modules.js +109 -0
- package/lib/commonjs/utils/extension-modules.js.map +1 -0
- package/lib/commonjs/utils/extension-utils.js +46 -40
- package/lib/commonjs/utils/extension-utils.js.map +1 -1
- package/lib/commonjs/utils/fetch-with-timeout.js +76 -0
- package/lib/commonjs/utils/fetch-with-timeout.js.map +1 -0
- package/lib/commonjs/utils/index.js +96 -2
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/manga.js +60 -0
- package/lib/commonjs/utils/manga.js.map +1 -0
- package/lib/commonjs/utils/meta-http.js +42 -0
- package/lib/commonjs/utils/meta-http.js.map +1 -0
- package/lib/commonjs/utils/provider-maps.js +26 -18
- package/lib/commonjs/utils/provider-maps.js.map +1 -1
- package/lib/commonjs/utils/queries.js +24 -11
- package/lib/commonjs/utils/queries.js.map +1 -1
- package/lib/commonjs/utils/registry-schema.js +263 -0
- package/lib/commonjs/utils/registry-schema.js.map +1 -0
- package/lib/commonjs/utils/registry-signature.js +180 -0
- package/lib/commonjs/utils/registry-signature.js.map +1 -0
- package/lib/commonjs/utils/url-polyfill.js +1075 -426
- package/lib/commonjs/utils/url-polyfill.js.map +1 -1
- package/lib/commonjs/utils/utils.js +2 -30
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/NativeConsumet.ts +68 -2
- package/lib/module/extension-registry.json +174 -54
- package/lib/module/extension-registry.json.sig +1 -0
- package/lib/module/extractors/asianload.js +10 -5
- package/lib/module/extractors/asianload.js.map +1 -1
- package/lib/module/extractors/filemoon.js +10 -5
- package/lib/module/extractors/filemoon.js.map +1 -1
- package/lib/module/extractors/flixcloud.js +0 -1
- package/lib/module/extractors/flixcloud.js.map +1 -1
- package/lib/module/extractors/gdflix.js +0 -1
- package/lib/module/extractors/gdflix.js.map +1 -1
- package/lib/module/extractors/gofile.js +0 -1
- package/lib/module/extractors/gofile.js.map +1 -1
- package/lib/module/extractors/gogocdn.js +12 -7
- package/lib/module/extractors/gogocdn.js.map +1 -1
- package/lib/module/extractors/hubcloud.js +0 -1
- package/lib/module/extractors/hubcloud.js.map +1 -1
- package/lib/module/extractors/index.js +24 -25
- package/lib/module/extractors/index.js.map +1 -1
- package/lib/module/extractors/kwik.js +0 -1
- package/lib/module/extractors/kwik.js.map +1 -1
- package/lib/module/extractors/megaplay.js +0 -1
- package/lib/module/extractors/megaplay.js.map +1 -1
- package/lib/module/extractors/megaup.js +2 -4
- package/lib/module/extractors/megaup.js.map +1 -1
- package/lib/module/extractors/mixdrop.js +9 -4
- package/lib/module/extractors/mixdrop.js.map +1 -1
- package/lib/module/extractors/mp4player.js +10 -5
- package/lib/module/extractors/mp4player.js.map +1 -1
- package/lib/module/extractors/mp4upload.js +9 -4
- package/lib/module/extractors/mp4upload.js.map +1 -1
- package/lib/module/extractors/rapidcloud.js +15 -10
- package/lib/module/extractors/rapidcloud.js.map +1 -1
- package/lib/module/extractors/streamhub.js +10 -5
- package/lib/module/extractors/streamhub.js.map +1 -1
- package/lib/module/extractors/streamlare.js +11 -6
- package/lib/module/extractors/streamlare.js.map +1 -1
- package/lib/module/extractors/streamsb.js +10 -5
- package/lib/module/extractors/streamsb.js.map +1 -1
- package/lib/module/extractors/streamtape.js +9 -4
- package/lib/module/extractors/streamtape.js.map +1 -1
- package/lib/module/extractors/vidhide.js +4 -3
- package/lib/module/extractors/vidhide.js.map +1 -1
- package/lib/module/extractors/vidmoly.js +10 -5
- package/lib/module/extractors/vidmoly.js.map +1 -1
- package/lib/module/extractors/vizcloud.js +10 -5
- package/lib/module/extractors/vizcloud.js.map +1 -1
- package/lib/module/extractors/voe.js +10 -5
- package/lib/module/extractors/voe.js.map +1 -1
- package/lib/module/index.js +11 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/base-provider.js +4 -0
- package/lib/module/models/base-provider.js.map +1 -1
- package/lib/module/models/extension-manifest.js +0 -2
- package/lib/module/models/index.js +2 -1
- package/lib/module/models/index.js.map +1 -1
- package/lib/module/models/meta-error.js +31 -0
- package/lib/module/models/meta-error.js.map +1 -0
- package/lib/module/models/types.js +30 -0
- package/lib/module/models/types.js.map +1 -1
- package/lib/module/providers/anime/anikoto/anikoto.js +13 -8
- package/lib/module/providers/anime/anikoto/anikoto.js.map +1 -1
- package/lib/module/providers/anime/anikoto/create-anikoto.js +6 -4
- package/lib/module/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/module/providers/anime/animekai/animekai.js +13 -6
- package/lib/module/providers/anime/animekai/animekai.js.map +1 -1
- package/lib/module/providers/anime/animekai/create-animekai.js +6 -4
- package/lib/module/providers/anime/animekai/create-animekai.js.map +1 -1
- package/lib/module/providers/anime/animepahe/animepahe.js +13 -8
- package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/module/providers/anime/animepahe/create-animepahe.js +6 -15
- package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/module/providers/anime/animeunity.js +21 -9
- package/lib/module/providers/anime/animeunity.js.map +1 -1
- package/lib/module/providers/anime/anineko/anineko.js +17 -6
- package/lib/module/providers/anime/anineko/anineko.js.map +1 -1
- package/lib/module/providers/anime/anineko/create-anineko.js +4 -2
- package/lib/module/providers/anime/anineko/create-anineko.js.map +1 -1
- package/lib/module/providers/anime/index.js +13 -21
- package/lib/module/providers/anime/index.js.map +1 -1
- package/lib/module/providers/anime/reanime/create-reanime.js +3 -4
- package/lib/module/providers/anime/reanime/create-reanime.js.map +1 -1
- package/lib/module/providers/anime/reanime/reanime.js +12 -6
- package/lib/module/providers/anime/reanime/reanime.js.map +1 -1
- package/lib/module/providers/anime/zoro/create-zoro.js +8 -9
- package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/module/providers/anime/zoro/zoro.js +13 -8
- package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/module/providers/index.js +4 -4
- package/lib/module/providers/index.js.map +1 -1
- package/lib/module/providers/light-novels/index.js +3 -3
- package/lib/module/providers/light-novels/index.js.map +1 -1
- package/lib/module/providers/light-novels/novelupdates.js +29 -11
- package/lib/module/providers/light-novels/novelupdates.js.map +1 -1
- package/lib/module/providers/light-novels/readlightnovels.js +12 -7
- package/lib/module/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/module/providers/manga/asurascans.js +169 -99
- package/lib/module/providers/manga/asurascans.js.map +1 -1
- package/lib/module/providers/manga/flamescans.js +181 -93
- package/lib/module/providers/manga/flamescans.js.map +1 -1
- package/lib/module/providers/manga/index.js +8 -24
- package/lib/module/providers/manga/index.js.map +1 -1
- package/lib/module/providers/manga/mangadex.js +244 -232
- package/lib/module/providers/manga/mangadex.js.map +1 -1
- package/lib/module/providers/manga/mangahere.js +284 -135
- package/lib/module/providers/manga/mangahere.js.map +1 -1
- package/lib/module/providers/manga/mangakakalot.js +215 -110
- package/lib/module/providers/manga/mangakakalot.js.map +1 -1
- package/lib/module/providers/manga/mangapill.js +137 -44
- package/lib/module/providers/manga/mangapill.js.map +1 -1
- package/lib/module/providers/meta/anilist.js +598 -1031
- package/lib/module/providers/meta/anilist.js.map +1 -1
- package/lib/module/providers/meta/index.js +1 -0
- package/lib/module/providers/meta/index.js.map +1 -1
- package/lib/module/providers/meta/mal.js +87 -89
- package/lib/module/providers/meta/mal.js.map +1 -1
- package/lib/module/providers/meta/tmdb-api-key.js +24 -0
- package/lib/module/providers/meta/tmdb-api-key.js.map +1 -0
- package/lib/module/providers/meta/tmdb.js +123 -93
- package/lib/module/providers/meta/tmdb.js.map +1 -1
- package/lib/module/providers/movies/himovies/create-himovies.js +3 -3
- package/lib/module/providers/movies/himovies/create-himovies.js.map +1 -1
- package/lib/module/providers/movies/himovies/himovies.js +12 -9
- package/lib/module/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/module/providers/movies/index.js +14 -11
- package/lib/module/providers/movies/index.js.map +1 -1
- package/lib/module/providers/movies/multimovies/create-multimovies.js +3 -3
- package/lib/module/providers/movies/multimovies/create-multimovies.js.map +1 -1
- package/lib/module/providers/movies/multimovies/multimovies.js +12 -8
- package/lib/module/providers/movies/multimovies/multimovies.js.map +1 -1
- package/lib/module/providers/movies/multistream/index.js +27 -17
- package/lib/module/providers/movies/multistream/index.js.map +1 -1
- package/lib/module/providers/movies/multistream/utils.js +8 -9
- package/lib/module/providers/movies/multistream/utils.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js +449 -185
- package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/disneymirror.js +17 -0
- package/lib/module/providers/movies/netflixmirror/disneymirror.js.map +1 -0
- package/lib/module/providers/movies/netflixmirror/netflixmirror.js +9 -24
- package/lib/module/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
- package/lib/module/providers/movies/netflixmirror/netmirror-parser.js +25 -0
- package/lib/module/providers/movies/netflixmirror/netmirror-parser.js.map +1 -0
- package/lib/module/providers/movies/netflixmirror/primemirror.js +17 -0
- package/lib/module/providers/movies/netflixmirror/primemirror.js.map +1 -0
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js +57 -40
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
- package/lib/module/providers/movies/vegamovies/vegamovies.js +12 -10
- package/lib/module/providers/movies/vegamovies/vegamovies.js.map +1 -1
- package/lib/module/providers/movies/yflix/create-yflix.js +2 -2
- package/lib/module/providers/movies/yflix/create-yflix.js.map +1 -1
- package/lib/module/providers/movies/yflix/yflix.js +12 -6
- package/lib/module/providers/movies/yflix/yflix.js.map +1 -1
- package/lib/module/providers/provider-args.js +14 -0
- package/lib/module/providers/provider-args.js.map +1 -0
- package/lib/module/registry-signing-keys.js +22 -0
- package/lib/module/registry-signing-keys.js.map +1 -0
- package/lib/module/utils/ExtractorManager.js +138 -234
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +180 -250
- package/lib/module/utils/ProviderManager.js.map +1 -1
- package/lib/module/utils/create-extractor-context.js +1 -2
- package/lib/module/utils/create-extractor-context.js.map +1 -1
- package/lib/module/utils/create-provider-context.js +39 -30
- package/lib/module/utils/create-provider-context.js.map +1 -1
- package/lib/module/utils/extension-integrity.js +52 -0
- package/lib/module/utils/extension-integrity.js.map +1 -0
- package/lib/module/utils/extension-modules.js +101 -0
- package/lib/module/utils/extension-modules.js.map +1 -0
- package/lib/module/utils/extension-utils.js +46 -40
- package/lib/module/utils/extension-utils.js.map +1 -1
- package/lib/module/utils/fetch-with-timeout.js +71 -0
- package/lib/module/utils/fetch-with-timeout.js.map +1 -0
- package/lib/module/utils/index.js +7 -3
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/manga.js +54 -0
- package/lib/module/utils/manga.js.map +1 -0
- package/lib/module/utils/meta-http.js +37 -0
- package/lib/module/utils/meta-http.js.map +1 -0
- package/lib/module/utils/provider-maps.js +26 -18
- package/lib/module/utils/provider-maps.js.map +1 -1
- package/lib/module/utils/queries.js +22 -9
- package/lib/module/utils/queries.js.map +1 -1
- package/lib/module/utils/registry-schema.js +255 -0
- package/lib/module/utils/registry-schema.js.map +1 -0
- package/lib/module/utils/registry-signature.js +168 -0
- package/lib/module/utils/registry-signature.js.map +1 -0
- package/lib/module/utils/url-polyfill.js +1073 -425
- package/lib/module/utils/url-polyfill.js.map +1 -1
- package/lib/module/utils/utils.js +0 -26
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts +68 -2
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/asianload.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/asianload.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/filemoon.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/filemoon.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gdflix.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/gdflix.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gofile.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/gofile.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/index.d.ts +24 -25
- package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megaplay.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/megaplay.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mp4player.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/mp4player.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamhub.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/streamhub.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamlare.d.ts +5 -4
- package/lib/typescript/commonjs/src/extractors/streamlare.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamsb.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/streamsb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamtape.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/streamtape.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/voe.d.ts +5 -3
- package/lib/typescript/commonjs/src/extractors/voe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +15 -9
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/base-provider.d.ts +5 -1
- package/lib/typescript/commonjs/src/models/base-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts +27 -5
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts +1 -2
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/index.d.ts +6 -4
- package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/meta-error.d.ts +20 -0
- package/lib/typescript/commonjs/src/models/meta-error.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/provider-context.d.ts +21 -16
- package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/types.d.ts +144 -8
- package/lib/typescript/commonjs/src/models/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts +11 -3
- package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts +13 -22
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts +1 -2
- package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +3 -3
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts +7 -2
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/index.d.ts +3 -4
- package/lib/typescript/commonjs/src/providers/light-novels/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts +7 -3
- package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts +5 -3
- package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts +19 -7
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts +23 -6
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/index.d.ts +7 -24
- package/lib/typescript/commonjs/src/providers/manga/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts +27 -8
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts +20 -6
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts +31 -7
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts +21 -5
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts +26 -9
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/providers/meta/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/mal.d.ts +9 -4
- package/lib/typescript/commonjs/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts +7 -0
- package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts +18 -5
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts +8 -3
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts +14 -10
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts +8 -3
- package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts +10 -3
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +7 -6
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts +2 -6
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts +12 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts +9 -17
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts +21 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts +12 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts +8 -5
- package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts +8 -3
- package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/provider-args.d.ts +8 -0
- package/lib/typescript/commonjs/src/providers/provider-args.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/registry-signing-keys.d.ts +18 -0
- package/lib/typescript/commonjs/src/registry-signing-keys.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts +33 -15
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +73 -21
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/extension-integrity.d.ts +40 -0
- package/lib/typescript/commonjs/src/utils/extension-integrity.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/extension-modules.d.ts +49 -0
- package/lib/typescript/commonjs/src/utils/extension-modules.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +24 -46
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts +29 -0
- package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts +12 -4
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/manga.d.ts +19 -0
- package/lib/typescript/commonjs/src/utils/manga.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/meta-http.d.ts +16 -0
- package/lib/typescript/commonjs/src/utils/meta-http.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +14 -7
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/queries.d.ts +17 -8
- package/lib/typescript/commonjs/src/utils/queries.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/registry-schema.d.ts +66 -0
- package/lib/typescript/commonjs/src/utils/registry-schema.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/registry-signature.d.ts +66 -0
- package/lib/typescript/commonjs/src/utils/registry-signature.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts +20 -8
- package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/utils.d.ts +0 -1
- package/lib/typescript/commonjs/src/utils/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/NativeConsumet.d.ts +68 -2
- package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/asianload.d.ts +5 -3
- package/lib/typescript/module/src/extractors/asianload.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/filemoon.d.ts +5 -3
- package/lib/typescript/module/src/extractors/filemoon.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/flixcloud.d.ts +0 -1
- package/lib/typescript/module/src/extractors/flixcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gdflix.d.ts +0 -1
- package/lib/typescript/module/src/extractors/gdflix.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gofile.d.ts +0 -1
- package/lib/typescript/module/src/extractors/gofile.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gogocdn.d.ts +5 -3
- package/lib/typescript/module/src/extractors/gogocdn.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/hubcloud.d.ts +0 -1
- package/lib/typescript/module/src/extractors/hubcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/index.d.ts +24 -25
- package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts +0 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megaplay.d.ts +0 -1
- package/lib/typescript/module/src/extractors/megaplay.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megaup.d.ts +0 -1
- package/lib/typescript/module/src/extractors/megaup.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mixdrop.d.ts +5 -3
- package/lib/typescript/module/src/extractors/mixdrop.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mp4player.d.ts +5 -3
- package/lib/typescript/module/src/extractors/mp4player.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mp4upload.d.ts +5 -3
- package/lib/typescript/module/src/extractors/mp4upload.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/rapidcloud.d.ts +5 -3
- package/lib/typescript/module/src/extractors/rapidcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamhub.d.ts +5 -3
- package/lib/typescript/module/src/extractors/streamhub.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamlare.d.ts +5 -4
- package/lib/typescript/module/src/extractors/streamlare.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamsb.d.ts +5 -3
- package/lib/typescript/module/src/extractors/streamsb.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamtape.d.ts +5 -3
- package/lib/typescript/module/src/extractors/streamtape.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vidhide.d.ts +0 -1
- package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vidmoly.d.ts +5 -3
- package/lib/typescript/module/src/extractors/vidmoly.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vizcloud.d.ts +5 -3
- package/lib/typescript/module/src/extractors/vizcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/voe.d.ts +5 -3
- package/lib/typescript/module/src/extractors/voe.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +15 -9
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/base-provider.d.ts +5 -1
- package/lib/typescript/module/src/models/base-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extension-manifest.d.ts +27 -5
- package/lib/typescript/module/src/models/extension-manifest.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extractor-context.d.ts +1 -2
- package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/index.d.ts +6 -4
- package/lib/typescript/module/src/models/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/meta-error.d.ts +20 -0
- package/lib/typescript/module/src/models/meta-error.d.ts.map +1 -0
- package/lib/typescript/module/src/models/provider-context.d.ts +21 -16
- package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/types.d.ts +144 -8
- package/lib/typescript/module/src/models/types.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animeunity.d.ts +11 -3
- package/lib/typescript/module/src/providers/anime/animeunity.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/index.d.ts +13 -22
- package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts +1 -2
- package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +3 -3
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts +7 -2
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/index.d.ts +4 -4
- package/lib/typescript/module/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/index.d.ts +3 -4
- package/lib/typescript/module/src/providers/light-novels/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts +7 -3
- package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts +5 -3
- package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts +19 -7
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts +23 -6
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/index.d.ts +7 -24
- package/lib/typescript/module/src/providers/manga/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts +27 -8
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts +20 -6
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts +31 -7
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts +21 -5
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/anilist.d.ts +26 -9
- package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/index.d.ts +1 -0
- package/lib/typescript/module/src/providers/meta/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/mal.d.ts +9 -4
- package/lib/typescript/module/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts +7 -0
- package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts +18 -5
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts +8 -3
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/index.d.ts +14 -10
- package/lib/typescript/module/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts +8 -3
- package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts +10 -3
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +7 -6
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts +2 -6
- package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts +12 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts +9 -17
- package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts +21 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts +12 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts +8 -5
- package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts +8 -3
- package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/provider-args.d.ts +8 -0
- package/lib/typescript/module/src/providers/provider-args.d.ts.map +1 -0
- package/lib/typescript/module/src/registry-signing-keys.d.ts +18 -0
- package/lib/typescript/module/src/registry-signing-keys.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts +33 -15
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts +73 -21
- package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/extension-integrity.d.ts +40 -0
- package/lib/typescript/module/src/utils/extension-integrity.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/extension-modules.d.ts +49 -0
- package/lib/typescript/module/src/utils/extension-modules.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/extension-utils.d.ts +24 -46
- package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts +29 -0
- package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/index.d.ts +12 -4
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/manga.d.ts +19 -0
- package/lib/typescript/module/src/utils/manga.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/meta-http.d.ts +16 -0
- package/lib/typescript/module/src/utils/meta-http.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/provider-maps.d.ts +14 -7
- package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/queries.d.ts +17 -8
- package/lib/typescript/module/src/utils/queries.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/registry-schema.d.ts +66 -0
- package/lib/typescript/module/src/utils/registry-schema.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/registry-signature.d.ts +66 -0
- package/lib/typescript/module/src/utils/registry-signature.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/url-polyfill.d.ts +20 -8
- package/lib/typescript/module/src/utils/url-polyfill.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/utils.d.ts +0 -1
- package/lib/typescript/module/src/utils/utils.d.ts.map +1 -1
- package/package.json +30 -19
- package/src/NativeConsumet.ts +68 -2
- package/src/extension-registry.json +174 -54
- package/src/extension-registry.json.sig +1 -0
- package/src/extractors/asianload.ts +10 -7
- package/src/extractors/filemoon.ts +10 -7
- package/src/extractors/flixcloud.ts +0 -2
- package/src/extractors/gdflix.ts +0 -2
- package/src/extractors/gofile.ts +0 -2
- package/src/extractors/gogocdn.ts +12 -9
- package/src/extractors/hubcloud.ts +0 -2
- package/src/extractors/index.ts +24 -51
- package/src/extractors/kwik.ts +0 -2
- package/src/extractors/megaplay.ts +0 -2
- package/src/extractors/megaup.ts +2 -6
- package/src/extractors/mixdrop.ts +9 -5
- package/src/extractors/mp4player.ts +10 -6
- package/src/extractors/mp4upload.ts +9 -5
- package/src/extractors/rapidcloud.ts +15 -12
- package/src/extractors/streamhub.ts +10 -6
- package/src/extractors/streamlare.ts +10 -8
- package/src/extractors/streamsb.ts +10 -7
- package/src/extractors/streamtape.ts +9 -5
- package/src/extractors/vidhide.ts +3 -4
- package/src/extractors/vidmoly.ts +10 -6
- package/src/extractors/vizcloud.ts +10 -7
- package/src/extractors/voe.ts +10 -7
- package/src/index.tsx +115 -3
- package/src/models/base-provider.ts +6 -1
- package/src/models/extension-manifest.ts +30 -6
- package/src/models/extractor-context.ts +0 -2
- package/src/models/index.ts +13 -1
- package/src/models/meta-error.ts +33 -0
- package/src/models/provider-context.ts +21 -58
- package/src/models/types.ts +148 -6
- package/src/providers/anime/anikoto/anikoto.ts +14 -10
- package/src/providers/anime/anikoto/create-anikoto.ts +5 -4
- package/src/providers/anime/animekai/animekai.ts +14 -9
- package/src/providers/anime/animekai/create-animekai.ts +5 -5
- package/src/providers/anime/animepahe/animepahe.ts +14 -11
- package/src/providers/anime/animepahe/create-animepahe.ts +5 -14
- package/src/providers/anime/animeunity.ts +20 -10
- package/src/providers/anime/anineko/anineko.ts +18 -8
- package/src/providers/anime/anineko/create-anineko.ts +3 -2
- package/src/providers/anime/index.ts +13 -21
- package/src/providers/anime/reanime/create-reanime.ts +2 -4
- package/src/providers/anime/reanime/reanime.ts +13 -9
- package/src/providers/anime/zoro/create-zoro.ts +6 -7
- package/src/providers/anime/zoro/zoro.ts +14 -11
- package/src/providers/index.ts +4 -4
- package/src/providers/light-novels/index.ts +3 -3
- package/src/providers/light-novels/novelupdates.ts +33 -19
- package/src/providers/light-novels/readlightnovels.ts +12 -8
- package/src/providers/manga/asurascans.ts +207 -136
- package/src/providers/manga/flamescans.ts +229 -122
- package/src/providers/manga/index.ts +7 -23
- package/src/providers/manga/mangadex.ts +343 -286
- package/src/providers/manga/mangahere.ts +317 -160
- package/src/providers/manga/mangakakalot.ts +257 -156
- package/src/providers/manga/mangapill.ts +172 -69
- package/src/providers/meta/anilist.ts +613 -1450
- package/src/providers/meta/index.ts +6 -1
- package/src/providers/meta/mal.ts +102 -139
- package/src/providers/meta/tmdb-api-key.ts +27 -0
- package/src/providers/meta/tmdb.ts +150 -141
- package/src/providers/movies/himovies/create-himovies.ts +3 -3
- package/src/providers/movies/himovies/himovies.ts +13 -11
- package/src/providers/movies/index.ts +14 -12
- package/src/providers/movies/multimovies/create-multimovies.ts +3 -3
- package/src/providers/movies/multimovies/multimovies.ts +13 -11
- package/src/providers/movies/multistream/index.ts +30 -18
- package/src/providers/movies/multistream/utils.ts +27 -15
- package/src/providers/movies/netflixmirror/create-netflixmirror.ts +567 -232
- package/src/providers/movies/netflixmirror/disneymirror.ts +16 -0
- package/src/providers/movies/netflixmirror/netflixmirror.ts +13 -43
- package/src/providers/movies/netflixmirror/netmirror-parser.ts +43 -0
- package/src/providers/movies/netflixmirror/primemirror.ts +16 -0
- package/src/providers/movies/vegamovies/create-vegamovies.ts +75 -50
- package/src/providers/movies/vegamovies/vegamovies.ts +13 -13
- package/src/providers/movies/yflix/create-yflix.ts +2 -2
- package/src/providers/movies/yflix/yflix.ts +13 -10
- package/src/providers/provider-args.ts +15 -0
- package/src/registry-signing-keys.ts +20 -0
- package/src/utils/ExtractorManager.ts +165 -247
- package/src/utils/ProviderManager.ts +235 -285
- package/src/utils/create-extractor-context.ts +0 -2
- package/src/utils/create-provider-context.ts +45 -29
- package/src/utils/extension-integrity.ts +82 -0
- package/src/utils/extension-modules.ts +123 -0
- package/src/utils/extension-utils.ts +45 -42
- package/src/utils/fetch-with-timeout.ts +76 -0
- package/src/utils/index.ts +32 -4
- package/src/utils/manga.ts +58 -0
- package/src/utils/meta-http.ts +35 -0
- package/src/utils/provider-maps.ts +39 -19
- package/src/utils/queries.ts +30 -26
- package/src/utils/registry-schema.ts +273 -0
- package/src/utils/registry-signature.ts +215 -0
- package/src/utils/url-polyfill.ts +1146 -460
- package/src/utils/utils.ts +0 -26
- package/lib/commonjs/extractors/StreamP2P.js +0 -69
- package/lib/commonjs/extractors/StreamP2P.js.map +0 -1
- package/lib/commonjs/extractors/kisskh/kkey.js +0 -98
- package/lib/commonjs/extractors/kisskh/kkey.js.map +0 -1
- package/lib/commonjs/extractors/kisskh/staticdata.js +0 -9
- package/lib/commonjs/extractors/kisskh/staticdata.js.map +0 -1
- package/lib/commonjs/providers/anime/anify.js +0 -195
- package/lib/commonjs/providers/anime/anify.js.map +0 -1
- package/lib/commonjs/providers/anime/animedrive.js +0 -228
- package/lib/commonjs/providers/anime/animedrive.js.map +0 -1
- package/lib/commonjs/providers/anime/animesuge/animesuge.js +0 -78
- package/lib/commonjs/providers/anime/animesuge/animesuge.js.map +0 -1
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js +0 -312
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js.map +0 -1
- package/lib/commonjs/providers/anime/kickassanime.js +0 -48
- package/lib/commonjs/providers/anime/kickassanime.js.map +0 -1
- package/lib/commonjs/providers/anime/marin.js +0 -282
- package/lib/commonjs/providers/anime/marin.js.map +0 -1
- package/lib/commonjs/providers/manga/brmangas.js +0 -105
- package/lib/commonjs/providers/manga/brmangas.js.map +0 -1
- package/lib/commonjs/providers/manga/comick.js +0 -149
- package/lib/commonjs/providers/manga/comick.js.map +0 -1
- package/lib/commonjs/providers/manga/mangahost.js +0 -108
- package/lib/commonjs/providers/manga/mangahost.js.map +0 -1
- package/lib/commonjs/providers/manga/mangapark.js +0 -92
- package/lib/commonjs/providers/manga/mangapark.js.map +0 -1
- package/lib/commonjs/providers/manga/mangareader.js +0 -101
- package/lib/commonjs/providers/manga/mangareader.js.map +0 -1
- package/lib/commonjs/providers/manga/mangasee123.js +0 -156
- package/lib/commonjs/providers/manga/mangasee123.js.map +0 -1
- package/lib/commonjs/providers/manga/readmanga.js +0 -258
- package/lib/commonjs/providers/manga/readmanga.js.map +0 -1
- package/lib/commonjs/providers/manga/vyvymanga.js +0 -161
- package/lib/commonjs/providers/manga/vyvymanga.js.map +0 -1
- package/lib/commonjs/providers/movies/dramacool.js +0 -397
- package/lib/commonjs/providers/movies/dramacool.js.map +0 -1
- package/lib/commonjs/providers/movies/yflix.js +0 -561
- package/lib/commonjs/providers/movies/yflix.js.map +0 -1
- package/lib/module/extractors/StreamP2P.js +0 -63
- package/lib/module/extractors/StreamP2P.js.map +0 -1
- package/lib/module/extractors/kisskh/kkey.js +0 -92
- package/lib/module/extractors/kisskh/kkey.js.map +0 -1
- package/lib/module/extractors/kisskh/staticdata.js +0 -5
- package/lib/module/extractors/kisskh/staticdata.js.map +0 -1
- package/lib/module/providers/anime/anify.js +0 -192
- package/lib/module/providers/anime/anify.js.map +0 -1
- package/lib/module/providers/anime/animedrive.js +0 -223
- package/lib/module/providers/anime/animedrive.js.map +0 -1
- package/lib/module/providers/anime/animesuge/animesuge.js +0 -73
- package/lib/module/providers/anime/animesuge/animesuge.js.map +0 -1
- package/lib/module/providers/anime/animesuge/create-animesuge.js +0 -309
- package/lib/module/providers/anime/animesuge/create-animesuge.js.map +0 -1
- package/lib/module/providers/anime/kickassanime.js +0 -45
- package/lib/module/providers/anime/kickassanime.js.map +0 -1
- package/lib/module/providers/anime/marin.js +0 -281
- package/lib/module/providers/anime/marin.js.map +0 -1
- package/lib/module/providers/manga/brmangas.js +0 -100
- package/lib/module/providers/manga/brmangas.js.map +0 -1
- package/lib/module/providers/manga/comick.js +0 -145
- package/lib/module/providers/manga/comick.js.map +0 -1
- package/lib/module/providers/manga/mangahost.js +0 -103
- package/lib/module/providers/manga/mangahost.js.map +0 -1
- package/lib/module/providers/manga/mangapark.js +0 -87
- package/lib/module/providers/manga/mangapark.js.map +0 -1
- package/lib/module/providers/manga/mangareader.js +0 -97
- package/lib/module/providers/manga/mangareader.js.map +0 -1
- package/lib/module/providers/manga/mangasee123.js +0 -152
- package/lib/module/providers/manga/mangasee123.js.map +0 -1
- package/lib/module/providers/manga/readmanga.js +0 -253
- package/lib/module/providers/manga/readmanga.js.map +0 -1
- package/lib/module/providers/manga/vyvymanga.js +0 -156
- package/lib/module/providers/manga/vyvymanga.js.map +0 -1
- package/lib/module/providers/movies/dramacool.js +0 -397
- package/lib/module/providers/movies/dramacool.js.map +0 -1
- package/lib/module/providers/movies/yflix.js +0 -561
- package/lib/module/providers/movies/yflix.js.map +0 -1
- package/lib/typescript/commonjs/src/extractors/StreamP2P.d.ts +0 -10
- package/lib/typescript/commonjs/src/extractors/StreamP2P.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts +0 -25
- package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts +0 -3
- package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/anify.d.ts +0 -40
- package/lib/typescript/commonjs/src/providers/anime/anify.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts +0 -33
- package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts +0 -34
- package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts +0 -14
- package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts +0 -30
- package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/marin.d.ts +0 -32
- package/lib/typescript/commonjs/src/providers/anime/marin.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts +0 -16
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts +0 -36
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts +0 -16
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts +0 -12
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts +0 -16
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts +0 -15
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts +0 -23
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts +0 -15
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts +0 -1
- package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts +0 -1
- package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/StreamP2P.d.ts +0 -10
- package/lib/typescript/module/src/extractors/StreamP2P.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts +0 -25
- package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts +0 -3
- package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/anify.d.ts +0 -40
- package/lib/typescript/module/src/providers/anime/anify.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animedrive.d.ts +0 -33
- package/lib/typescript/module/src/providers/anime/animedrive.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts +0 -34
- package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts +0 -14
- package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/kickassanime.d.ts +0 -30
- package/lib/typescript/module/src/providers/anime/kickassanime.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/marin.d.ts +0 -32
- package/lib/typescript/module/src/providers/anime/marin.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts +0 -16
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/comick.d.ts +0 -36
- package/lib/typescript/module/src/providers/manga/comick.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts +0 -16
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts +0 -12
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts +0 -16
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts +0 -15
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts +0 -23
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts +0 -15
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/dramacool.d.ts +0 -1
- package/lib/typescript/module/src/providers/movies/dramacool.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/yflix.d.ts +0 -1
- package/lib/typescript/module/src/providers/movies/yflix.d.ts.map +0 -1
- package/src/extractors/StreamP2P.ts +0 -60
- package/src/extractors/kisskh/kkey.ts +0 -161
- package/src/extractors/kisskh/staticdata.ts +0 -144
- package/src/providers/anime/anify.ts +0 -276
- package/src/providers/anime/animedrive.ts +0 -245
- package/src/providers/anime/animesuge/animesuge.ts +0 -77
- package/src/providers/anime/animesuge/create-animesuge.ts +0 -327
- package/src/providers/anime/kickassanime.ts +0 -51
- package/src/providers/anime/marin.ts +0 -319
- package/src/providers/manga/brmangas.ts +0 -144
- package/src/providers/manga/comick.ts +0 -280
- package/src/providers/manga/mangahost.ts +0 -130
- package/src/providers/manga/mangapark.ts +0 -111
- package/src/providers/manga/mangareader.ts +0 -128
- package/src/providers/manga/mangasee123.ts +0 -183
- package/src/providers/manga/readmanga.ts +0 -367
- package/src/providers/manga/vyvymanga.ts +0 -233
- package/src/providers/movies/dramacool.ts +0 -395
- package/src/providers/movies/yflix.ts +0 -559
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
type IMovieInfo,
|
|
3
|
+
type IMovieEpisode,
|
|
3
4
|
type IEpisodeServer,
|
|
4
5
|
type ISource,
|
|
5
6
|
type IMovieResult,
|
|
@@ -7,67 +8,145 @@ import {
|
|
|
7
8
|
type ProviderContext,
|
|
8
9
|
type ProviderConfig,
|
|
9
10
|
} from '../../../models';
|
|
11
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
{ code: 'nf', label: 'Netflix' },
|
|
13
|
-
{ code: 'pv', label: 'Prime Video' },
|
|
14
|
-
{ code: 'dp', label: 'Disney+' },
|
|
15
|
-
{ code: 'lg', label: 'Lionsgate' },
|
|
16
|
-
] as const;
|
|
13
|
+
type NetMirrorOtt = 'nf' | 'pv' | 'hs';
|
|
17
14
|
|
|
18
|
-
|
|
15
|
+
interface NetMirrorPlatform {
|
|
16
|
+
ott: NetMirrorOtt;
|
|
17
|
+
label: string;
|
|
18
|
+
name: string;
|
|
19
|
+
classPath: string;
|
|
20
|
+
/** Path segment after /mobile/ for this catalog ('' for Netflix). */
|
|
21
|
+
path: string;
|
|
22
|
+
/** Value of the `ott` cookie. */
|
|
23
|
+
cookieOtt: string;
|
|
24
|
+
/** Whether the catalog's `year` for a series is its first-air year (Disney+ reports the latest season's). */
|
|
25
|
+
seriesYearIsFirstAired: boolean;
|
|
26
|
+
poster: (id: string) => string;
|
|
27
|
+
cover: (id: string) => string;
|
|
28
|
+
episodeImage: (id: string) => string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const PLATFORMS: Record<NetMirrorOtt, NetMirrorPlatform> = {
|
|
32
|
+
nf: {
|
|
33
|
+
ott: 'nf',
|
|
34
|
+
label: 'Netflix',
|
|
35
|
+
name: 'NetflixMirror',
|
|
36
|
+
classPath: 'MOVIES.NetflixMirror',
|
|
37
|
+
path: '',
|
|
38
|
+
cookieOtt: 'nf',
|
|
39
|
+
seriesYearIsFirstAired: true,
|
|
40
|
+
poster: (id) => `https://imgcdn.kim/poster/v/${id}.jpg`,
|
|
41
|
+
cover: (id) => `https://imgcdn.kim/poster/h/${id}.jpg`,
|
|
42
|
+
episodeImage: (id) => `https://imgcdn.kim/epimg/150/${id}.jpg`,
|
|
43
|
+
},
|
|
44
|
+
pv: {
|
|
45
|
+
ott: 'pv',
|
|
46
|
+
label: 'Prime Video',
|
|
47
|
+
name: 'PrimeMirror',
|
|
48
|
+
classPath: 'MOVIES.PrimeMirror',
|
|
49
|
+
path: 'pv/',
|
|
50
|
+
cookieOtt: 'pv',
|
|
51
|
+
seriesYearIsFirstAired: true,
|
|
52
|
+
poster: (id) => (id.length > 10 ? `https://imgcdn.kim/pv/v/350/${id}.jpg` : `https://imgcdn.kim/pv/341/${id}.jpg`),
|
|
53
|
+
cover: (id) => `https://imgcdn.kim/pv/1920/${id}.jpg`,
|
|
54
|
+
episodeImage: (id) => `https://imgcdn.kim/pvepimg/${id}.jpg`,
|
|
55
|
+
},
|
|
56
|
+
hs: {
|
|
57
|
+
ott: 'hs',
|
|
58
|
+
label: 'Disney+',
|
|
59
|
+
name: 'DisneyMirror',
|
|
60
|
+
classPath: 'MOVIES.DisneyMirror',
|
|
61
|
+
path: 'hs/',
|
|
62
|
+
cookieOtt: 'dp',
|
|
63
|
+
seriesYearIsFirstAired: false,
|
|
64
|
+
poster: (id) => `https://imgcdn.kim/hs/v/${id}.jpg`,
|
|
65
|
+
cover: (id) => `https://imgcdn.kim/hs/h/${id}.jpg`,
|
|
66
|
+
episodeImage: (id) => `https://imgcdn.kim/hsepimg/${id}.jpg`,
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// The site only serves real data to its Android app UA once a session is verified.
|
|
71
|
+
const APP_UA =
|
|
72
|
+
'Mozilla/5.0 (Linux; Android 13; Pixel 5 Build/TQ3A.230901.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/144.0.7559.132 Safari/537.36 /OS.Gatu v3.0';
|
|
73
|
+
const SESSION_TTL_MS = 12 * 60 * 60 * 1000;
|
|
74
|
+
const UNLOCK_TIMEOUT_MS = 60 * 1000;
|
|
75
|
+
|
|
76
|
+
// The site's TV API serves search and title metadata without a verified session,
|
|
77
|
+
// so only playback has to wait for the (slow) session unlock.
|
|
78
|
+
const NEWTV_API = 'https://tv.imgcdn.kim';
|
|
79
|
+
const NEWTV_UA = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0 /OS.GatuNewTV v1.0';
|
|
80
|
+
|
|
81
|
+
// One verified session works for every catalog, so share it across platforms and instances.
|
|
82
|
+
const sessions = new Map<string, { token: string; ts: number }>();
|
|
83
|
+
const pendingUnlocks = new Map<string, Promise<string>>();
|
|
19
84
|
|
|
20
85
|
interface NetMirrorSearchResult {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
86
|
+
status?: string;
|
|
87
|
+
searchResult?: Array<{ id: string | number; t: string; y?: string; r?: string }>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface NewTvEpisode {
|
|
91
|
+
id: string;
|
|
92
|
+
t: string;
|
|
93
|
+
ep: string;
|
|
94
|
+
ep_desc?: string;
|
|
95
|
+
/** e.g. ["E1", "S5", "71m"] or ["E1:S2", "5 Oct 2023", "45m"] */
|
|
96
|
+
info?: string[];
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
interface NewTvPost {
|
|
100
|
+
status?: string;
|
|
101
|
+
title?: string;
|
|
102
|
+
year?: string;
|
|
103
|
+
runtime?: string;
|
|
104
|
+
type?: string;
|
|
105
|
+
desc?: string;
|
|
106
|
+
moredetails?: Array<{ k: string; v: string }>;
|
|
107
|
+
/** `s` looks like "Season 1 (8 EP)" */
|
|
108
|
+
season?: Array<{ s: string; id: string }>;
|
|
109
|
+
episodes?: Array<NewTvEpisode | null>;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
interface NewTvEpisodesPage {
|
|
113
|
+
episodes?: Array<NewTvEpisode | null>;
|
|
114
|
+
nextPageShow?: number;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
interface NetMirrorEpisode {
|
|
118
|
+
id: string;
|
|
119
|
+
t: string;
|
|
120
|
+
s: string;
|
|
121
|
+
ep: string;
|
|
122
|
+
time?: string;
|
|
123
|
+
ep_desc?: string;
|
|
24
124
|
}
|
|
25
125
|
|
|
26
126
|
interface NetMirrorPostData {
|
|
27
|
-
status
|
|
28
|
-
|
|
29
|
-
title
|
|
30
|
-
year
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
episodes?: Array<{
|
|
46
|
-
complate: string;
|
|
47
|
-
id: string;
|
|
48
|
-
t: string;
|
|
49
|
-
s: string;
|
|
50
|
-
ep: string;
|
|
51
|
-
ep_desc: string;
|
|
52
|
-
time: string;
|
|
53
|
-
}>;
|
|
127
|
+
status?: string;
|
|
128
|
+
error?: string;
|
|
129
|
+
title?: string;
|
|
130
|
+
year?: string;
|
|
131
|
+
type?: string;
|
|
132
|
+
genre?: string;
|
|
133
|
+
cast?: string;
|
|
134
|
+
runtime?: string;
|
|
135
|
+
desc?: string;
|
|
136
|
+
m_desc?: string;
|
|
137
|
+
season?: Array<{ s: string; id: string; ep: string }>;
|
|
138
|
+
episodes?: Array<NetMirrorEpisode | null>;
|
|
139
|
+
nextPageShow?: number;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface NetMirrorEpisodesPage {
|
|
143
|
+
episodes?: Array<NetMirrorEpisode | null>;
|
|
144
|
+
nextPageShow?: number;
|
|
54
145
|
}
|
|
55
146
|
|
|
56
147
|
interface NetMirrorPlaylist {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
sources: Array<{
|
|
60
|
-
file: string;
|
|
61
|
-
label: string;
|
|
62
|
-
type: string;
|
|
63
|
-
default?: string;
|
|
64
|
-
}>;
|
|
65
|
-
tracks: Array<{
|
|
66
|
-
kind: string;
|
|
67
|
-
file: string;
|
|
68
|
-
label: string;
|
|
69
|
-
language?: string;
|
|
70
|
-
}>;
|
|
148
|
+
sources?: Array<{ file: string; label: string; type?: string }>;
|
|
149
|
+
tracks?: Array<{ kind: string; file: string; label?: string; language?: string }>;
|
|
71
150
|
}
|
|
72
151
|
|
|
73
152
|
export type NetflixMirrorProviderInstance = {
|
|
@@ -78,12 +157,6 @@ export type NetflixMirrorProviderInstance = {
|
|
|
78
157
|
supportedTypes: Set<any>;
|
|
79
158
|
isNSFW: boolean;
|
|
80
159
|
isWorking?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Searches Netflix, Prime Video, Disney+ and Lionsgate in parallel.
|
|
83
|
-
* Each result's `otherNames` array contains the platform label(s) it was found on.
|
|
84
|
-
* Results are deduplicated by id; if the same id appears on multiple platforms
|
|
85
|
-
* all platform labels are merged into `otherNames`.
|
|
86
|
-
*/
|
|
87
160
|
search: (query: string, page?: number) => Promise<ISearch<IMovieResult>>;
|
|
88
161
|
fetchMediaInfo: (mediaId: string) => Promise<IMovieInfo>;
|
|
89
162
|
fetchEpisodeServers: (episodeId: string, mediaId?: string) => Promise<IEpisodeServer[]>;
|
|
@@ -91,17 +164,31 @@ export type NetflixMirrorProviderInstance = {
|
|
|
91
164
|
fetchHlsPlaylist: (episodeId: string) => Promise<string>;
|
|
92
165
|
};
|
|
93
166
|
|
|
94
|
-
|
|
95
|
-
|
|
167
|
+
function createNetMirror(
|
|
168
|
+
ctx: ProviderContext,
|
|
169
|
+
platform: NetMirrorPlatform,
|
|
170
|
+
customBaseURL?: string
|
|
171
|
+
): NetflixMirrorProviderInstance {
|
|
172
|
+
const { enums, axios: ctxAxios, createCustomBaseUrl } = ctx;
|
|
173
|
+
// React Native sends its native cookie jar with every request unless withCredentials is false,
|
|
174
|
+
// and on Android the jar replaces the Cookie headers set here. With a stored session cookie the
|
|
175
|
+
// site then serves an already-unlocked home page (no data-addhash, and no Set-Cookie to read the
|
|
176
|
+
// token from) and never sees the ott cookie that picks the platform. This provider sends its own
|
|
177
|
+
// cookies, so every request opts out of the jar, as requests in Node do.
|
|
178
|
+
const axios = {
|
|
179
|
+
get: <T = any>(url: string, options?: AxiosRequestConfig) =>
|
|
180
|
+
ctxAxios.get<T>(url, { ...options, withCredentials: false }),
|
|
181
|
+
post: <T = any>(url: string, data?: unknown, options?: AxiosRequestConfig) =>
|
|
182
|
+
ctxAxios.post<T>(url, data, { ...options, withCredentials: false }),
|
|
183
|
+
};
|
|
96
184
|
const { TvType: TvTypeEnum } = enums;
|
|
97
|
-
const
|
|
98
|
-
const baseUrl = createCustomBaseUrl('https://net20.cc', customBaseURL);
|
|
185
|
+
const baseUrl = createCustomBaseUrl('https://net52.cc', customBaseURL);
|
|
99
186
|
|
|
100
187
|
const config: ProviderConfig = {
|
|
101
|
-
name:
|
|
188
|
+
name: platform.name,
|
|
102
189
|
languages: 'all',
|
|
103
|
-
classPath:
|
|
104
|
-
logo:
|
|
190
|
+
classPath: platform.classPath,
|
|
191
|
+
logo: `${baseUrl}/img/nf2/icon_x192.png`,
|
|
105
192
|
baseUrl,
|
|
106
193
|
isNSFW: false,
|
|
107
194
|
isWorking: true,
|
|
@@ -109,226 +196,462 @@ export function createNetflixMirror(ctx: ProviderContext, customBaseURL?: string
|
|
|
109
196
|
|
|
110
197
|
const supportedTypes = new Set([TvTypeEnum.MOVIE, TvTypeEnum.TVSERIES]);
|
|
111
198
|
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
|
|
199
|
+
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
200
|
+
const now = () => Math.round(Date.now() / 1000);
|
|
201
|
+
|
|
202
|
+
const readSetCookies = (headers: any): string[] => {
|
|
203
|
+
const raw = headers?.['set-cookie'] ?? headers?.['x-set-cookie'] ?? [];
|
|
204
|
+
return (Array.isArray(raw) ? raw : [raw]).map(String);
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
// `::99` marks a placeholder token the server hands out before verification.
|
|
208
|
+
const extractToken = (cookies: string[]): string | undefined => {
|
|
209
|
+
for (const cookie of cookies) {
|
|
210
|
+
const match = /t_hash_t=([^;,]+)/.exec(cookie);
|
|
211
|
+
if (!match) continue;
|
|
212
|
+
const token = decodeURIComponent(match[1]!);
|
|
213
|
+
if (token && !token.includes('::99')) return token;
|
|
214
|
+
}
|
|
215
|
+
return undefined;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
const storeToken = (token: string) => {
|
|
219
|
+
sessions.set(baseUrl, { token, ts: Date.now() });
|
|
220
|
+
return token;
|
|
115
221
|
};
|
|
116
222
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
223
|
+
// Mirrors the app's sponsor-ad verification: open home, register the ad visit, then
|
|
224
|
+
// poll verify2.php until the server marks the session verified (~20-40s).
|
|
225
|
+
const unlockSession = async (): Promise<string> => {
|
|
226
|
+
const home = await axios.get(`${baseUrl}/mobile/home?app=1`, {
|
|
227
|
+
headers: {
|
|
228
|
+
'User-Agent': APP_UA,
|
|
229
|
+
'X-Requested-With': 'com.netmirror.app',
|
|
230
|
+
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
|
231
|
+
},
|
|
232
|
+
timeout: 15000,
|
|
122
233
|
});
|
|
234
|
+
const homeCookies = readSetCookies(home.headers);
|
|
235
|
+
const alreadyVerified = extractToken(homeCookies);
|
|
236
|
+
if (alreadyVerified) return storeToken(alreadyVerified);
|
|
237
|
+
|
|
238
|
+
const addhash = /data-addhash=["']([^"']+)["']/.exec(String(home.data))?.[1];
|
|
239
|
+
if (!addhash) throw new Error('session unlock failed: no addhash on home page');
|
|
240
|
+
|
|
241
|
+
const initialCookie = homeCookies
|
|
242
|
+
.map((cookie) => cookie.split(';')[0])
|
|
243
|
+
.filter(Boolean)
|
|
244
|
+
.join('; ');
|
|
245
|
+
const host = baseUrl.replace(/^https?:\/\//, '').replace(/\/.*$/, '');
|
|
246
|
+
|
|
247
|
+
await axios
|
|
248
|
+
.get(`https://userver.${host}/?hee5=${addhash}&a=y&t=${Math.random()}`, {
|
|
249
|
+
headers: { 'User-Agent': APP_UA, 'Referer': `${baseUrl}/mobile/home?app=1`, 'Cookie': initialCookie },
|
|
250
|
+
maxRedirects: 0,
|
|
251
|
+
validateStatus: () => true,
|
|
252
|
+
timeout: 10000,
|
|
253
|
+
})
|
|
254
|
+
.catch(() => undefined);
|
|
255
|
+
|
|
256
|
+
const pollCookie = [
|
|
257
|
+
'ext_name=ojplmecpdpgccookcobabopnaifgidhf',
|
|
258
|
+
`addhash=${encodeURIComponent(addhash)}`,
|
|
259
|
+
initialCookie,
|
|
260
|
+
]
|
|
261
|
+
.filter(Boolean)
|
|
262
|
+
.join('; ');
|
|
263
|
+
|
|
264
|
+
const deadline = Date.now() + UNLOCK_TIMEOUT_MS;
|
|
265
|
+
while (Date.now() < deadline) {
|
|
266
|
+
await sleep(2000);
|
|
267
|
+
const res = await axios
|
|
268
|
+
.post(`${baseUrl}/mobile/verify2.php`, `verify=${encodeURIComponent(addhash)}`, {
|
|
269
|
+
headers: {
|
|
270
|
+
'User-Agent': APP_UA,
|
|
271
|
+
'X-Requested-With': 'XMLHttpRequest',
|
|
272
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
|
273
|
+
'Referer': `${baseUrl}/mobile/home`,
|
|
274
|
+
'Origin': baseUrl,
|
|
275
|
+
'Cookie': pollCookie,
|
|
276
|
+
},
|
|
277
|
+
validateStatus: () => true,
|
|
278
|
+
timeout: 10000,
|
|
279
|
+
})
|
|
280
|
+
.catch(() => undefined);
|
|
281
|
+
if (!res) continue;
|
|
282
|
+
|
|
283
|
+
const token = extractToken(readSetCookies(res.headers));
|
|
284
|
+
if (token) return storeToken(token);
|
|
285
|
+
|
|
286
|
+
if (res.data?.statusup === 'All Done') {
|
|
287
|
+
const reload = await axios.get(`${baseUrl}/mobile/home?app=1`, {
|
|
288
|
+
headers: { 'User-Agent': APP_UA, 'X-Requested-With': 'com.netmirror.app', 'Cookie': pollCookie },
|
|
289
|
+
timeout: 15000,
|
|
290
|
+
});
|
|
291
|
+
const verified = extractToken(readSetCookies(reload.headers));
|
|
292
|
+
if (verified) return storeToken(verified);
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
throw new Error('session unlock did not complete');
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
const getSessionToken = async (forceRefresh = false): Promise<string> => {
|
|
300
|
+
const cached = sessions.get(baseUrl);
|
|
301
|
+
if (!forceRefresh && cached && Date.now() - cached.ts < SESSION_TTL_MS) return cached.token;
|
|
302
|
+
if (forceRefresh) sessions.delete(baseUrl);
|
|
303
|
+
|
|
304
|
+
let pending = pendingUnlocks.get(baseUrl);
|
|
305
|
+
if (!pending) {
|
|
306
|
+
pending = unlockSession().finally(() => pendingUnlocks.delete(baseUrl));
|
|
307
|
+
pendingUnlocks.set(baseUrl, pending);
|
|
308
|
+
}
|
|
309
|
+
return pending;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
const requestHeaders = (token: string) => ({
|
|
313
|
+
'User-Agent': APP_UA,
|
|
314
|
+
'Referer': `${baseUrl}/home`,
|
|
315
|
+
'Origin': baseUrl,
|
|
316
|
+
'Accept': 'application/json, text/plain, */*',
|
|
317
|
+
'Cookie': `t_hash_t=${token}; hd=on; ott=${platform.cookieOtt}`,
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
// Requests one endpoint; if the response says the session is not verified,
|
|
321
|
+
// unlocks a fresh session and retries once.
|
|
322
|
+
const getVerified = async <T>(path: string, isUnverified: (data: T) => boolean): Promise<T> => {
|
|
323
|
+
let token = await getSessionToken();
|
|
324
|
+
let { data } = await axios.get<T>(`${baseUrl}${path}`, { headers: requestHeaders(token) });
|
|
325
|
+
if (!isUnverified(data)) return data;
|
|
326
|
+
|
|
327
|
+
token = await getSessionToken(true);
|
|
328
|
+
({ data } = await axios.get<T>(`${baseUrl}${path}`, { headers: requestHeaders(token) }));
|
|
329
|
+
if (isUnverified(data)) throw new Error('session not accepted by server');
|
|
330
|
+
return data;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
const rejectedStatus = (data: { status?: string } | undefined) => data?.status === 'n';
|
|
123
334
|
|
|
124
|
-
|
|
125
|
-
|
|
335
|
+
// Start unlocking in the background while the user browses, so playback rarely waits.
|
|
336
|
+
const warmUpSession = () => {
|
|
337
|
+
getSessionToken().catch(() => undefined);
|
|
338
|
+
};
|
|
126
339
|
|
|
127
|
-
|
|
128
|
-
const
|
|
340
|
+
const getNewTv = async <T>(path: string): Promise<T> => {
|
|
341
|
+
const { data } = await axios.get<T>(`${NEWTV_API}/newtv/${path}`, {
|
|
342
|
+
headers: {
|
|
343
|
+
'Ott': platform.ott,
|
|
344
|
+
'X-Requested-With': 'NetmirrorNewTV v1.0',
|
|
345
|
+
'User-Agent': NEWTV_UA,
|
|
346
|
+
'Accept': 'application/json, text/plain, */*',
|
|
347
|
+
},
|
|
348
|
+
timeout: 10000,
|
|
349
|
+
});
|
|
350
|
+
return data;
|
|
351
|
+
};
|
|
129
352
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
353
|
+
const postUrl = (id: string) => `${baseUrl}/mobile/${platform.path}post.php?id=${id}`;
|
|
354
|
+
const playlistUrl = (id: string) => `${baseUrl}/mobile/${platform.path}playlist.php?id=${id}`;
|
|
355
|
+
|
|
356
|
+
// Search only returns id + title; meta providers (e.g. TMDB) match on type, year and
|
|
357
|
+
// season count, so fill those in from each title's (session-free) post data.
|
|
358
|
+
const withPostDetails = async (result: IMovieResult): Promise<IMovieResult> => {
|
|
359
|
+
try {
|
|
360
|
+
const post = await getNewTv<NewTvPost>(`post.php?id=${result.id}`);
|
|
361
|
+
if (post?.status !== 'ok') return result;
|
|
362
|
+
const isSeries = post.type === 't';
|
|
363
|
+
return {
|
|
364
|
+
...result,
|
|
365
|
+
type: isSeries ? TvTypeEnum.TVSERIES : TvTypeEnum.MOVIE,
|
|
366
|
+
seasons: isSeries ? post.season?.length || 1 : undefined,
|
|
367
|
+
// TMDB requires an exact year match whenever any result has one, so omit years
|
|
368
|
+
// entirely for catalogs that report a series' latest-season year.
|
|
369
|
+
releaseDate: platform.seriesYearIsFirstAired ? post.year || undefined : undefined,
|
|
370
|
+
};
|
|
371
|
+
} catch {
|
|
372
|
+
return result;
|
|
373
|
+
}
|
|
374
|
+
};
|
|
133
375
|
|
|
134
|
-
|
|
376
|
+
const searchNewTv = async (query: string): Promise<IMovieResult[]> => {
|
|
377
|
+
const data = await getNewTv<NetMirrorSearchResult>(`search.php?s=${encodeURIComponent(query)}`);
|
|
378
|
+
if (data?.status !== 'y') throw new Error('NewTV search unavailable');
|
|
379
|
+
return Promise.all(
|
|
380
|
+
(data.searchResult ?? []).map((item) => {
|
|
381
|
+
const id = String(item.id);
|
|
382
|
+
return withPostDetails({ id, title: item.t, url: postUrl(id), image: platform.poster(id) });
|
|
383
|
+
})
|
|
384
|
+
);
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
const searchViaSession = async (query: string): Promise<IMovieResult[]> => {
|
|
388
|
+
const data = await getVerified<NetMirrorSearchResult>(
|
|
389
|
+
`/mobile/${platform.path}search.php?s=${encodeURIComponent(query)}&t=${now()}`,
|
|
390
|
+
rejectedStatus
|
|
391
|
+
);
|
|
392
|
+
return (data.searchResult ?? []).map((item) => {
|
|
393
|
+
const id = String(item.id);
|
|
394
|
+
return {
|
|
395
|
+
id,
|
|
396
|
+
title: item.t,
|
|
397
|
+
url: postUrl(id),
|
|
398
|
+
image: platform.poster(id),
|
|
399
|
+
releaseDate: item.y,
|
|
400
|
+
type: item.r === 'Series' ? TvTypeEnum.TVSERIES : item.r ? TvTypeEnum.MOVIE : undefined,
|
|
401
|
+
};
|
|
402
|
+
});
|
|
135
403
|
};
|
|
136
404
|
|
|
137
405
|
const search = async (query: string, page: number = 1): Promise<ISearch<IMovieResult>> => {
|
|
406
|
+
warmUpSession();
|
|
138
407
|
try {
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
408
|
+
const results = await searchNewTv(query).catch(() => searchViaSession(query));
|
|
409
|
+
return { currentPage: page, hasNextPage: false, results };
|
|
410
|
+
} catch (err) {
|
|
411
|
+
throw new Error(`${config.name} search failed: ${(err as Error).message}`);
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
const mapEpisode = (ep: NetMirrorEpisode, fallbackSeason: number): IMovieEpisode => ({
|
|
416
|
+
id: ep.id,
|
|
417
|
+
title: ep.t,
|
|
418
|
+
number: parseInt(ep.ep.replace(/\D/g, ''), 10) || undefined,
|
|
419
|
+
season: parseInt(ep.s.replace(/\D/g, ''), 10) || fallbackSeason,
|
|
420
|
+
url: playlistUrl(ep.id),
|
|
421
|
+
description: ep.ep_desc,
|
|
422
|
+
duration: ep.time,
|
|
423
|
+
image: platform.episodeImage(ep.id),
|
|
424
|
+
});
|
|
425
|
+
|
|
426
|
+
const movieEpisodes = (mediaId: string, title?: string): IMovieEpisode[] => [
|
|
427
|
+
{ id: mediaId, title: title || 'Full Movie', number: 1, season: 1, url: playlistUrl(mediaId) },
|
|
428
|
+
];
|
|
429
|
+
|
|
430
|
+
const fetchSeasonEpisodes = async (seasonId: string, seriesId: string, seasonNumber: number) => {
|
|
431
|
+
const token = await getSessionToken();
|
|
432
|
+
const episodes: IMovieEpisode[] = [];
|
|
433
|
+
for (let page = 1; page <= 20; page++) {
|
|
434
|
+
const { data } = await axios.get<NetMirrorEpisodesPage>(
|
|
435
|
+
`${baseUrl}/mobile/${platform.path}episodes.php?s=${seasonId}&series=${seriesId}&t=${now()}&page=${page}`,
|
|
436
|
+
{ headers: requestHeaders(token) }
|
|
148
437
|
);
|
|
438
|
+
for (const ep of data.episodes ?? []) {
|
|
439
|
+
if (ep) episodes.push(mapEpisode(ep, seasonNumber));
|
|
440
|
+
}
|
|
441
|
+
if (!data.nextPageShow) break;
|
|
442
|
+
}
|
|
443
|
+
return episodes;
|
|
444
|
+
};
|
|
149
445
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
446
|
+
const splitList = (value?: string) =>
|
|
447
|
+
value
|
|
448
|
+
? value
|
|
449
|
+
.split(',')
|
|
450
|
+
.map((v) => v.trim())
|
|
451
|
+
.filter(Boolean)
|
|
452
|
+
: [];
|
|
453
|
+
|
|
454
|
+
const baseInfo = (mediaId: string, post: { title?: string; year?: string; type?: string }): IMovieInfo => ({
|
|
455
|
+
id: mediaId,
|
|
456
|
+
title: post.title || '',
|
|
457
|
+
url: postUrl(mediaId),
|
|
458
|
+
type: post.type === 't' ? TvTypeEnum.TVSERIES : TvTypeEnum.MOVIE,
|
|
459
|
+
image: platform.poster(mediaId),
|
|
460
|
+
cover: platform.cover(mediaId),
|
|
461
|
+
releaseDate: post.year || undefined,
|
|
462
|
+
});
|
|
463
|
+
|
|
464
|
+
const mapNewTvEpisode = (ep: NewTvEpisode, season: number): IMovieEpisode => ({
|
|
465
|
+
id: ep.id,
|
|
466
|
+
title: ep.t,
|
|
467
|
+
number: parseInt(ep.ep, 10) || undefined,
|
|
468
|
+
season,
|
|
469
|
+
url: playlistUrl(ep.id),
|
|
470
|
+
description: ep.ep_desc,
|
|
471
|
+
duration: ep.info?.find((part) => /^\d+\s*m(in)?$/i.test(part)),
|
|
472
|
+
// Only some catalogs include an air date, e.g. "9 Jun 2021".
|
|
473
|
+
releaseDate: ep.info?.find((part) => /[a-z]/i.test(part) && /\b\d{4}\b/.test(part)),
|
|
474
|
+
image: platform.episodeImage(ep.id),
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
const fetchNewTvSeasonEpisodes = async (seasonId: string, seriesId: string, season: number) => {
|
|
478
|
+
const episodes: IMovieEpisode[] = [];
|
|
479
|
+
for (let page = 1; page <= 20; page++) {
|
|
480
|
+
const data = await getNewTv<NewTvEpisodesPage>(`episodes.php?id=${seasonId}&series=${seriesId}&page=${page}`);
|
|
481
|
+
for (const ep of data.episodes ?? []) {
|
|
482
|
+
if (ep) episodes.push(mapNewTvEpisode(ep, season));
|
|
167
483
|
}
|
|
484
|
+
if (!data.nextPageShow) break;
|
|
485
|
+
}
|
|
486
|
+
return episodes;
|
|
487
|
+
};
|
|
168
488
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
489
|
+
const fetchMediaInfoNewTv = async (mediaId: string): Promise<IMovieInfo> => {
|
|
490
|
+
const post = await getNewTv<NewTvPost>(`post.php?id=${mediaId}`);
|
|
491
|
+
if (post?.status !== 'ok') throw new Error('NewTV title unavailable');
|
|
492
|
+
|
|
493
|
+
const detail = (key: string) => post.moredetails?.find((d) => d.k === key)?.v;
|
|
494
|
+
const info: IMovieInfo = {
|
|
495
|
+
...baseInfo(mediaId, post),
|
|
496
|
+
genres: splitList(detail('Genre') ?? detail('HotStar Genres') ?? detail('IMDB Genres')),
|
|
497
|
+
casts: splitList(detail('Cast')),
|
|
498
|
+
rating: parseFloat(detail('IMDB Rating') ?? '') || undefined,
|
|
499
|
+
duration: post.type === 't' ? undefined : post.runtime,
|
|
500
|
+
description: post.desc || '',
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
if (post.type !== 't') {
|
|
504
|
+
info.episodes = movieEpisodes(mediaId, post.title);
|
|
505
|
+
return info;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
if (post.season?.length) {
|
|
509
|
+
const perSeason = await Promise.all(
|
|
510
|
+
post.season.map((season, index) =>
|
|
511
|
+
fetchNewTvSeasonEpisodes(season.id, mediaId, parseInt(/(\d+)/.exec(season.s)?.[1] ?? '', 10) || index + 1)
|
|
512
|
+
)
|
|
513
|
+
);
|
|
514
|
+
info.episodes = perSeason.flat();
|
|
515
|
+
} else {
|
|
516
|
+
info.episodes = (post.episodes ?? [])
|
|
517
|
+
.filter((ep): ep is NewTvEpisode => Boolean(ep))
|
|
518
|
+
.map((ep) => mapNewTvEpisode(ep, 1));
|
|
172
519
|
}
|
|
520
|
+
info.totalEpisodes = info.episodes.length;
|
|
521
|
+
|
|
522
|
+
// Disney+ reports the latest season's year; prefer the earliest episode air date when present.
|
|
523
|
+
const airYears = info.episodes
|
|
524
|
+
.map((ep) => /\b(\d{4})\b/.exec(String(ep.releaseDate ?? ''))?.[1])
|
|
525
|
+
.filter((year): year is string => Boolean(year));
|
|
526
|
+
if (airYears.length) info.releaseDate = airYears.sort()[0];
|
|
527
|
+
|
|
528
|
+
return info;
|
|
173
529
|
};
|
|
174
530
|
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
531
|
+
const fetchMediaInfoViaSession = async (mediaId: string): Promise<IMovieInfo> => {
|
|
532
|
+
const post = await getVerified<NetMirrorPostData>(
|
|
533
|
+
`/mobile/${platform.path}post.php?id=${mediaId}&t=${now()}`,
|
|
534
|
+
rejectedStatus
|
|
535
|
+
);
|
|
536
|
+
|
|
537
|
+
const info: IMovieInfo = {
|
|
538
|
+
...baseInfo(mediaId, post),
|
|
539
|
+
genres: splitList(post.genre),
|
|
540
|
+
casts: splitList(post.cast),
|
|
541
|
+
duration: post.type === 't' ? undefined : post.runtime,
|
|
542
|
+
description: post.desc || post.m_desc || '',
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
if (post.type !== 't') {
|
|
546
|
+
info.episodes = movieEpisodes(mediaId, post.title);
|
|
547
|
+
return info;
|
|
186
548
|
}
|
|
549
|
+
|
|
550
|
+
if (post.season?.length) {
|
|
551
|
+
const perSeason = await Promise.all(
|
|
552
|
+
post.season.map((season) =>
|
|
553
|
+
fetchSeasonEpisodes(season.id, mediaId, parseInt(season.s.replace(/\D/g, ''), 10) || 1)
|
|
554
|
+
)
|
|
555
|
+
);
|
|
556
|
+
info.episodes = perSeason.flat();
|
|
557
|
+
} else {
|
|
558
|
+
info.episodes = (post.episodes ?? [])
|
|
559
|
+
.filter((ep): ep is NetMirrorEpisode => Boolean(ep))
|
|
560
|
+
.map((ep) => mapEpisode(ep, 1));
|
|
561
|
+
}
|
|
562
|
+
info.totalEpisodes = info.episodes.length;
|
|
563
|
+
return info;
|
|
187
564
|
};
|
|
188
565
|
|
|
189
566
|
const fetchMediaInfo = async (mediaId: string): Promise<IMovieInfo> => {
|
|
567
|
+
warmUpSession();
|
|
190
568
|
try {
|
|
191
|
-
|
|
192
|
-
const isTvShow = postData.type === 't';
|
|
193
|
-
|
|
194
|
-
const movieInfo: IMovieInfo = {
|
|
195
|
-
id: mediaId,
|
|
196
|
-
title: postData.title || '',
|
|
197
|
-
type: isTvShow ? TvTypeEnum.TVSERIES : TvTypeEnum.MOVIE,
|
|
198
|
-
image: `https://imgcdn.kim/poster/780/${mediaId}.jpg`,
|
|
199
|
-
cover: `https://imgcdn.kim/poster/1920/${mediaId}.jpg`,
|
|
200
|
-
genres: postData.genre?.split(',').map((g) => g.trim()) || [],
|
|
201
|
-
duration: postData.runtime,
|
|
202
|
-
description: postData.desc || postData.m_desc || '',
|
|
203
|
-
// rating is a string in the response, but IMovieInfo expects a number.
|
|
204
|
-
// We'll leave it undefined since we can't convert it reliably.
|
|
205
|
-
rating: undefined,
|
|
206
|
-
year: postData.year || undefined,
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
// Handle episodes for TV shows
|
|
210
|
-
if (isTvShow) {
|
|
211
|
-
// Check if episodes array exists and has valid entries
|
|
212
|
-
if (postData.episodes && postData.episodes.length > 0 && postData.episodes[0] !== null) {
|
|
213
|
-
movieInfo.episodes = postData.episodes.map((ep) => ({
|
|
214
|
-
id: ep.id,
|
|
215
|
-
title: ep.t,
|
|
216
|
-
number: parseInt(ep.ep),
|
|
217
|
-
season: parseInt(ep.s.replace('S', '')),
|
|
218
|
-
description: ep.ep_desc,
|
|
219
|
-
duration: ep.time,
|
|
220
|
-
}));
|
|
221
|
-
} else if (postData.season && postData.season.length > 0) {
|
|
222
|
-
// Fallback: Create episodes based on seasons if episodes array is empty
|
|
223
|
-
movieInfo.episodes = postData.season.flatMap((season) => {
|
|
224
|
-
const episodes = [];
|
|
225
|
-
for (let i = 1; i <= parseInt(season.ep); i++) {
|
|
226
|
-
episodes.push({
|
|
227
|
-
id: season.id,
|
|
228
|
-
title: `Season ${season.s} Episode ${i}`,
|
|
229
|
-
number: i,
|
|
230
|
-
season: parseInt(season.s),
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
return episodes;
|
|
234
|
-
});
|
|
235
|
-
} else {
|
|
236
|
-
// Fallback: Single episode for the entire show
|
|
237
|
-
movieInfo.episodes = [
|
|
238
|
-
{
|
|
239
|
-
id: mediaId,
|
|
240
|
-
title: 'Full Content',
|
|
241
|
-
},
|
|
242
|
-
];
|
|
243
|
-
}
|
|
244
|
-
} else {
|
|
245
|
-
// Handle movies
|
|
246
|
-
movieInfo.episodes = [
|
|
247
|
-
{
|
|
248
|
-
id: mediaId,
|
|
249
|
-
title: postData.title || 'Full Movie',
|
|
250
|
-
},
|
|
251
|
-
];
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
return movieInfo;
|
|
569
|
+
return await fetchMediaInfoNewTv(mediaId).catch(() => fetchMediaInfoViaSession(mediaId));
|
|
255
570
|
} catch (err) {
|
|
256
|
-
throw new Error(
|
|
571
|
+
throw new Error(`${config.name} fetchMediaInfo failed: ${(err as Error).message}`);
|
|
257
572
|
}
|
|
258
573
|
};
|
|
259
574
|
|
|
575
|
+
const playlistPath = (episodeId: string) => `/mobile/${platform.path}playlist.php?id=${episodeId}&t=x&tm=${now()}`;
|
|
576
|
+
|
|
260
577
|
const fetchEpisodeServers = async (episodeId: string, mediaId?: string): Promise<IEpisodeServer[]> => {
|
|
261
|
-
return [
|
|
262
|
-
{
|
|
263
|
-
name: 'NetMirror',
|
|
264
|
-
url: `${config.baseUrl}/playlist.php?id=${episodeId}`,
|
|
265
|
-
},
|
|
266
|
-
];
|
|
578
|
+
return [{ name: platform.label, url: `${baseUrl}${playlistPath(episodeId)}` }];
|
|
267
579
|
};
|
|
268
580
|
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
},
|
|
278
|
-
}
|
|
279
|
-
);
|
|
280
|
-
|
|
281
|
-
if (!data || !Array.isArray(data) || data.length === 0) {
|
|
282
|
-
throw new Error('No playlist data received');
|
|
283
|
-
}
|
|
581
|
+
const qualityFromLabel = (label: string): string => {
|
|
582
|
+
const normalized = label.toLowerCase();
|
|
583
|
+
if (normalized.includes('full hd')) return '1080p';
|
|
584
|
+
if (normalized.includes('mid hd')) return '720p';
|
|
585
|
+
if (normalized.includes('low hd')) return '480p';
|
|
586
|
+
if (normalized.includes('auto')) return 'auto';
|
|
587
|
+
return label;
|
|
588
|
+
};
|
|
284
589
|
|
|
285
|
-
|
|
590
|
+
// The CDN serving variant playlists and segments rejects requests without this Referer.
|
|
591
|
+
const hlsHeaders = { 'Referer': `${baseUrl}/`, 'User-Agent': APP_UA };
|
|
286
592
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
593
|
+
/**
|
|
594
|
+
* The playlist lists every quality, but a quality the title doesn't have comes back as a master
|
|
595
|
+
* playlist with audio tracks and no video stream, which players reject as malformed. Keep the
|
|
596
|
+
* sources whose master has a video stream; one that can't be checked (network error) is kept.
|
|
597
|
+
*/
|
|
598
|
+
const withVideoStreams = async <S extends { url: string }>(sources: S[]): Promise<S[]> => {
|
|
599
|
+
const checks = await Promise.all(
|
|
600
|
+
sources.map((source) =>
|
|
601
|
+
axios
|
|
602
|
+
.get<string>(source.url, { headers: hlsHeaders, responseType: 'text', timeout: 10000 })
|
|
603
|
+
.then(({ data }) => typeof data !== 'string' || data.includes('#EXT-X-STREAM-INF'))
|
|
604
|
+
.catch(() => true)
|
|
605
|
+
)
|
|
606
|
+
);
|
|
607
|
+
const playable = sources.filter((_, i) => checks[i]);
|
|
608
|
+
return playable.length ? playable : sources;
|
|
609
|
+
};
|
|
290
610
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
return
|
|
298
|
-
url: `${config.baseUrl}${s.file}`,
|
|
299
|
-
quality,
|
|
300
|
-
isM3U8: true,
|
|
301
|
-
};
|
|
611
|
+
const fetchEpisodeSources = async (episodeId: string, mediaId?: string): Promise<ISource> => {
|
|
612
|
+
try {
|
|
613
|
+
// Without a verified session the server still returns a playlist, but every
|
|
614
|
+
// source is a teaser stream tagged `in=unknown`.
|
|
615
|
+
const data = await getVerified<NetMirrorPlaylist[] | NetMirrorPlaylist>(playlistPath(episodeId), (res) => {
|
|
616
|
+
const playlist = Array.isArray(res) ? res[0] : res;
|
|
617
|
+
return Boolean(playlist?.sources?.some((s) => s.file.includes('in=unknown')));
|
|
302
618
|
});
|
|
619
|
+
const playlist = Array.isArray(data) ? data[0] : data;
|
|
620
|
+
|
|
621
|
+
if (!playlist?.sources?.length) throw new Error('No sources in playlist');
|
|
303
622
|
|
|
304
|
-
const
|
|
305
|
-
|
|
623
|
+
const listed = playlist.sources.map((s) => ({
|
|
624
|
+
url: s.file.startsWith('http') ? s.file : `${baseUrl}${s.file}`,
|
|
625
|
+
quality: qualityFromLabel(s.label || ''),
|
|
626
|
+
isM3U8: true,
|
|
627
|
+
}));
|
|
628
|
+
const sources = await withVideoStreams(listed);
|
|
629
|
+
|
|
630
|
+
const subtitles = (playlist.tracks ?? [])
|
|
631
|
+
.filter((t) => t.kind === 'captions' && t.file)
|
|
306
632
|
.map((t) => ({
|
|
307
633
|
url: t.file.startsWith('//') ? `https:${t.file}` : t.file,
|
|
308
634
|
lang: t.label || t.language || 'Unknown',
|
|
309
635
|
}));
|
|
310
636
|
|
|
311
637
|
return {
|
|
312
|
-
headers:
|
|
638
|
+
headers: hlsHeaders,
|
|
313
639
|
sources,
|
|
314
640
|
subtitles,
|
|
315
641
|
};
|
|
316
642
|
} catch (err) {
|
|
317
|
-
throw new Error(
|
|
643
|
+
throw new Error(`${config.name} fetchEpisodeSources failed: ${(err as Error).message}`);
|
|
318
644
|
}
|
|
319
645
|
};
|
|
320
646
|
|
|
321
647
|
const fetchHlsPlaylist = async (episodeId: string): Promise<string> => {
|
|
322
648
|
try {
|
|
323
|
-
const {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
Cookie: await getCookies(),
|
|
327
|
-
},
|
|
328
|
-
});
|
|
649
|
+
const { sources, headers } = await fetchEpisodeSources(episodeId);
|
|
650
|
+
const master = sources.find((s) => s.quality === 'auto') ?? sources[0]!;
|
|
651
|
+
const { data } = await axios.get<string>(master.url, { headers, responseType: 'text' });
|
|
329
652
|
return data;
|
|
330
653
|
} catch (err) {
|
|
331
|
-
throw new Error(
|
|
654
|
+
throw new Error(`${config.name} fetchHlsPlaylist failed: ${(err as Error).message}`);
|
|
332
655
|
}
|
|
333
656
|
};
|
|
334
657
|
|
|
@@ -342,3 +665,15 @@ export function createNetflixMirror(ctx: ProviderContext, customBaseURL?: string
|
|
|
342
665
|
fetchHlsPlaylist,
|
|
343
666
|
};
|
|
344
667
|
}
|
|
668
|
+
|
|
669
|
+
export function createNetflixMirror(ctx: ProviderContext, customBaseURL?: string): NetflixMirrorProviderInstance {
|
|
670
|
+
return createNetMirror(ctx, PLATFORMS.nf, customBaseURL);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
export function createPrimeMirror(ctx: ProviderContext, customBaseURL?: string): NetflixMirrorProviderInstance {
|
|
674
|
+
return createNetMirror(ctx, PLATFORMS.pv, customBaseURL);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export function createDisneyMirror(ctx: ProviderContext, customBaseURL?: string): NetflixMirrorProviderInstance {
|
|
678
|
+
return createNetMirror(ctx, PLATFORMS.hs, customBaseURL);
|
|
679
|
+
}
|