react-native-consumet 1.2.0 → 1.2.2
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/android/generated/java/com/consumet/NativeConsumetSpec.java +8 -0
- package/android/generated/jni/RNConsumetSpec-generated.cpp +12 -0
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI-generated.cpp +18 -0
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +18 -0
- package/android/src/main/java/com/consumet/ConsumetModule.kt +12 -1
- package/android/src/main/java/com/consumet/DdosGuardModule.kt +1 -132
- package/android/src/main/java/com/consumet/HttpRequestModule.kt +417 -0
- package/ios/generated/RNConsumetSpec/RNConsumetSpec-generated.mm +14 -0
- package/ios/generated/RNConsumetSpec/RNConsumetSpec.h +10 -0
- package/ios/generated/RNConsumetSpecJSI-generated.cpp +18 -0
- package/ios/generated/RNConsumetSpecJSI.h +18 -0
- package/lib/commonjs/NativeConsumet.ts +22 -0
- package/lib/commonjs/extension-registry.json +46 -2
- package/lib/commonjs/extractors/index.js +4 -4
- package/lib/commonjs/extractors/index.js.map +1 -1
- package/lib/commonjs/extractors/megaup.js +14 -5
- package/lib/commonjs/extractors/megaup.js.map +1 -1
- package/lib/commonjs/extractors/{StreamP2P.js → streamp2p.js} +1 -1
- package/lib/commonjs/extractors/{StreamP2P.js.map → streamp2p.js.map} +1 -1
- package/lib/commonjs/extractors/streamwish.js +31 -25
- package/lib/commonjs/extractors/streamwish.js.map +1 -1
- package/lib/commonjs/extractors/vidhide.js +35 -20
- package/lib/commonjs/extractors/vidhide.js.map +1 -1
- package/lib/commonjs/providers/anime/animekai/animekai.js +6 -12
- package/lib/commonjs/providers/anime/animekai/animekai.js.map +1 -1
- package/lib/commonjs/providers/anime/animekai/create-animekai.js +1 -9
- package/lib/commonjs/providers/anime/animekai/create-animekai.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/animepahe.js +6 -13
- package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +1 -10
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/create-zoro.js +1 -10
- package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/zoro.js +6 -13
- package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/commonjs/providers/meta/tmdb.js +1 -2
- package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
- package/lib/commonjs/providers/movies/dramacool.js +395 -331
- package/lib/commonjs/providers/movies/dramacool.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/create-himovies.js +1 -12
- package/lib/commonjs/providers/movies/himovies/create-himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/himovies/himovies.js +6 -16
- package/lib/commonjs/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/commonjs/providers/movies/index.js +10 -4
- package/lib/commonjs/providers/movies/index.js.map +1 -1
- package/lib/{module/providers/movies/multimovies.js → commonjs/providers/movies/multimovies/create-multimovies.js} +183 -149
- package/lib/commonjs/providers/movies/multimovies/create-multimovies.js.map +1 -0
- package/lib/commonjs/providers/movies/multimovies/multimovies.js +46 -0
- package/lib/commonjs/providers/movies/multimovies/multimovies.js.map +1 -0
- package/lib/commonjs/providers/movies/yflix/create-yflix.js +418 -0
- package/lib/commonjs/providers/movies/yflix/create-yflix.js.map +1 -0
- package/lib/commonjs/providers/movies/yflix/yflix.js +59 -0
- package/lib/commonjs/providers/movies/yflix/yflix.js.map +1 -0
- package/lib/commonjs/providers/movies/yflix.js +561 -0
- package/lib/commonjs/providers/movies/yflix.js.map +1 -0
- package/lib/commonjs/utils/create-extractor-context.js +2 -0
- package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
- package/lib/commonjs/utils/create-provider-context.js +2 -0
- package/lib/commonjs/utils/create-provider-context.js.map +1 -1
- package/lib/commonjs/utils/extension-utils.js +4 -2
- package/lib/commonjs/utils/extension-utils.js.map +1 -1
- package/lib/commonjs/utils/provider-maps.js +4 -1
- package/lib/commonjs/utils/provider-maps.js.map +1 -1
- package/lib/module/NativeConsumet.ts +22 -0
- package/lib/module/extension-registry.json +46 -2
- package/lib/module/extractors/index.js +2 -2
- package/lib/module/extractors/index.js.map +1 -1
- package/lib/module/extractors/megaup.js +14 -5
- package/lib/module/extractors/megaup.js.map +1 -1
- package/lib/module/extractors/{StreamP2P.js → streamp2p.js} +1 -1
- package/lib/module/extractors/{StreamP2P.js.map → streamp2p.js.map} +1 -1
- package/lib/module/extractors/streamwish.js +28 -21
- package/lib/module/extractors/streamwish.js.map +1 -1
- package/lib/module/extractors/vidhide.js +33 -17
- package/lib/module/extractors/vidhide.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/providers/anime/animekai/animekai.js +6 -12
- package/lib/module/providers/anime/animekai/animekai.js.map +1 -1
- package/lib/module/providers/anime/animekai/create-animekai.js +1 -9
- package/lib/module/providers/anime/animekai/create-animekai.js.map +1 -1
- package/lib/module/providers/anime/animepahe/animepahe.js +6 -13
- package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/module/providers/anime/animepahe/create-animepahe.js +1 -10
- package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/module/providers/anime/zoro/create-zoro.js +1 -10
- package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/module/providers/anime/zoro/zoro.js +6 -13
- package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/module/providers/meta/tmdb.js +1 -2
- package/lib/module/providers/meta/tmdb.js.map +1 -1
- package/lib/module/providers/movies/dramacool.js +395 -327
- package/lib/module/providers/movies/dramacool.js.map +1 -1
- package/lib/module/providers/movies/himovies/create-himovies.js +1 -11
- package/lib/module/providers/movies/himovies/create-himovies.js.map +1 -1
- package/lib/module/providers/movies/himovies/himovies.js +6 -16
- package/lib/module/providers/movies/himovies/himovies.js.map +1 -1
- package/lib/module/providers/movies/index.js +10 -4
- package/lib/module/providers/movies/index.js.map +1 -1
- package/lib/{commonjs/providers/movies/multimovies.js → module/providers/movies/multimovies/create-multimovies.js} +187 -161
- package/lib/module/providers/movies/multimovies/create-multimovies.js.map +1 -0
- package/lib/module/providers/movies/multimovies/multimovies.js +43 -0
- package/lib/module/providers/movies/multimovies/multimovies.js.map +1 -0
- package/lib/module/providers/movies/yflix/create-yflix.js +414 -0
- package/lib/module/providers/movies/yflix/create-yflix.js.map +1 -0
- package/lib/module/providers/movies/yflix/yflix.js +55 -0
- package/lib/module/providers/movies/yflix/yflix.js.map +1 -0
- package/lib/module/providers/movies/yflix.js +561 -0
- package/lib/module/providers/movies/yflix.js.map +1 -0
- package/lib/module/utils/create-extractor-context.js +3 -1
- package/lib/module/utils/create-extractor-context.js.map +1 -1
- package/lib/module/utils/create-provider-context.js +3 -1
- package/lib/module/utils/create-provider-context.js.map +1 -1
- package/lib/module/utils/extension-utils.js +5 -3
- package/lib/module/utils/extension-utils.js.map +1 -1
- package/lib/module/utils/provider-maps.js +4 -1
- package/lib/module/utils/provider-maps.js.map +1 -1
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts +36 -0
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/{StreamP2P.d.ts → streamp2p.d.ts} +1 -1
- package/lib/typescript/commonjs/src/extractors/{StreamP2P.d.ts.map → streamp2p.d.ts.map} +1 -1
- package/lib/typescript/commonjs/src/extractors/streamwish.d.ts +7 -11
- package/lib/typescript/commonjs/src/extractors/streamwish.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts +7 -7
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts +3 -1
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/provider-context.d.ts +7 -5
- package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts +6 -4
- 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 +8 -4
- 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 +6 -4
- 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 +8 -4
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +8 -4
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts +6 -4
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts +0 -21
- package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/himovies/create-himovies.d.ts +8 -5
- package/lib/typescript/commonjs/src/providers/movies/himovies/create-himovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts +6 -5
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts +7 -3
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multimovies/create-multimovies.d.ts +20 -0
- package/lib/typescript/commonjs/src/providers/movies/multimovies/create-multimovies.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts +21 -0
- package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/yflix/create-yflix.d.ts +25 -0
- package/lib/typescript/commonjs/src/providers/movies/yflix/create-yflix.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts +44 -0
- package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts +1 -0
- package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts.map +1 -0
- 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-utils.d.ts +4 -4
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -1
- package/lib/typescript/module/src/NativeConsumet.d.ts +36 -0
- package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/index.d.ts +2 -2
- package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megaup.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/{StreamP2P.d.ts → streamp2p.d.ts} +1 -1
- package/lib/typescript/module/src/extractors/{StreamP2P.d.ts.map → streamp2p.d.ts.map} +1 -1
- package/lib/typescript/module/src/extractors/streamwish.d.ts +7 -11
- package/lib/typescript/module/src/extractors/streamwish.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vidhide.d.ts +7 -7
- package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +2 -2
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extractor-context.d.ts +3 -1
- package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/provider-context.d.ts +7 -5
- package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts +6 -4
- 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 +8 -4
- 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 +6 -4
- 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 +8 -4
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +8 -4
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts +6 -4
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/dramacool.d.ts +0 -21
- package/lib/typescript/module/src/providers/movies/dramacool.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/himovies/create-himovies.d.ts +8 -5
- package/lib/typescript/module/src/providers/movies/himovies/create-himovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts +6 -5
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/index.d.ts +7 -3
- package/lib/typescript/module/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multimovies/create-multimovies.d.ts +20 -0
- package/lib/typescript/module/src/providers/movies/multimovies/create-multimovies.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts +21 -0
- package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/yflix/create-yflix.d.ts +25 -0
- package/lib/typescript/module/src/providers/movies/yflix/create-yflix.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts +44 -0
- package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/yflix.d.ts +1 -0
- package/lib/typescript/module/src/providers/movies/yflix.d.ts.map +1 -0
- 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-utils.d.ts +4 -4
- package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/provider-maps.d.ts +1 -0
- package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -1
- package/package.json +17 -6
- package/src/NativeConsumet.ts +22 -0
- package/src/extension-registry.json +46 -2
- package/src/extractors/index.ts +2 -2
- package/src/extractors/megaup.ts +27 -10
- package/src/extractors/streamwish.ts +36 -27
- package/src/extractors/vidhide.ts +42 -23
- package/src/index.tsx +2 -2
- package/src/models/extractor-context.ts +4 -0
- package/src/models/provider-context.ts +8 -10
- package/src/providers/anime/animekai/animekai.ts +14 -14
- package/src/providers/anime/animekai/create-animekai.ts +1 -10
- package/src/providers/anime/animepahe/animepahe.ts +14 -14
- package/src/providers/anime/animepahe/create-animepahe.ts +1 -11
- package/src/providers/anime/zoro/create-zoro.ts +1 -11
- package/src/providers/anime/zoro/zoro.ts +14 -14
- package/src/providers/meta/tmdb.ts +1 -2
- package/src/providers/movies/dramacool.ts +395 -394
- package/src/providers/movies/himovies/create-himovies.ts +1 -12
- package/src/providers/movies/himovies/himovies.ts +14 -17
- package/src/providers/movies/index.ts +9 -3
- package/src/providers/movies/{multimovies.ts → multimovies/create-multimovies.ts} +520 -495
- package/src/providers/movies/multimovies/multimovies.ts +57 -0
- package/src/providers/movies/yflix/create-yflix.ts +496 -0
- package/src/providers/movies/yflix/yflix.ts +82 -0
- package/src/providers/movies/yflix.ts +559 -0
- package/src/utils/create-extractor-context.ts +4 -0
- package/src/utils/create-provider-context.ts +4 -0
- package/src/utils/extension-utils.ts +6 -2
- package/src/utils/provider-maps.ts +4 -1
- package/lib/commonjs/providers/movies/multimovies.js.map +0 -1
- package/lib/module/providers/movies/multimovies.js.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/multimovies.d.ts +0 -40
- package/lib/typescript/commonjs/src/providers/movies/multimovies.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/multimovies.d.ts +0 -40
- package/lib/typescript/module/src/providers/movies/multimovies.d.ts.map +0 -1
- /package/src/extractors/{StreamP2P.ts → streamp2p.ts} +0 -0
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"name": "MegaUp",
|
|
15
|
-
"version": "1.
|
|
15
|
+
"version": "1.1.0",
|
|
16
16
|
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/megaup.js"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/providers/anime/animepahe/create-animepahe.js",
|
|
55
55
|
"factoryName": "createAnimePahe",
|
|
56
56
|
"baseUrl": "https://animepahe.si",
|
|
57
|
-
"logo": "https://animepahe.si
|
|
57
|
+
"logo": "https://animepahe.si/web-app-manifest-512x512.png",
|
|
58
58
|
"languages": ["en", "ja"],
|
|
59
59
|
"nsfw": false,
|
|
60
60
|
"status": "stable",
|
|
@@ -110,6 +110,50 @@
|
|
|
110
110
|
"extractors": ["MegaCloud"],
|
|
111
111
|
"isSourceEmbed": true,
|
|
112
112
|
"haveMultiServers": true
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"id": "multimovies",
|
|
116
|
+
"name": "MultiMovies",
|
|
117
|
+
"description": "Movies and TV shows streaming from MultiMovies",
|
|
118
|
+
"version": "1.0.0",
|
|
119
|
+
"author": {
|
|
120
|
+
"name": "RNConsumet Team",
|
|
121
|
+
"url": "https://github.com/uwumilabs"
|
|
122
|
+
},
|
|
123
|
+
"category": "movies",
|
|
124
|
+
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/providers/movies/multimovies/create-multimovies.js",
|
|
125
|
+
"factoryName": "createMultiMovies",
|
|
126
|
+
"baseUrl": "https://multimovies.center",
|
|
127
|
+
"logo": "https://multimovies.center/wp-content/uploads/2024/01/cropped-CompressJPEG.online_512x512_image.png",
|
|
128
|
+
"languages": ["all"],
|
|
129
|
+
"nsfw": false,
|
|
130
|
+
"status": "alpha",
|
|
131
|
+
"lastUpdated": "2025-08-05T00:00:00Z",
|
|
132
|
+
"extractors": ["StreamWish", "VidHide"],
|
|
133
|
+
"isSourceEmbed": true,
|
|
134
|
+
"haveMultiServers": true
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "yflix",
|
|
138
|
+
"name": "YFlix",
|
|
139
|
+
"description": "Movies and TV shows streaming from YFlix",
|
|
140
|
+
"version": "1.0.0",
|
|
141
|
+
"author": {
|
|
142
|
+
"name": "RNConsumet Team",
|
|
143
|
+
"url": "https://github.com/uwumilabs"
|
|
144
|
+
},
|
|
145
|
+
"category": "movies",
|
|
146
|
+
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/providers/movies/yflix/create-yflix.js",
|
|
147
|
+
"factoryName": "createYFlix",
|
|
148
|
+
"baseUrl": "https://yflix.to",
|
|
149
|
+
"logo": "https://yflix.to/wp-content/uploads/2024/01/cropped-CompressJPEG.online_512x512_image.png",
|
|
150
|
+
"languages": ["all"],
|
|
151
|
+
"nsfw": false,
|
|
152
|
+
"status": "stable",
|
|
153
|
+
"lastUpdated": "2025-08-05T00:00:00Z",
|
|
154
|
+
"extractors": ["MegaUp"],
|
|
155
|
+
"isSourceEmbed": true,
|
|
156
|
+
"haveMultiServers": true
|
|
113
157
|
}
|
|
114
158
|
]
|
|
115
159
|
}
|
package/src/extractors/index.ts
CHANGED
|
@@ -11,10 +11,10 @@ import StreamHub from './streamhub';
|
|
|
11
11
|
import StreamLare from './streamlare';
|
|
12
12
|
import StreamSB from './streamsb';
|
|
13
13
|
import StreamTape from './streamtape';
|
|
14
|
-
import StreamWish from './streamwish';
|
|
14
|
+
import { StreamWish } from './streamwish';
|
|
15
15
|
import VidMoly from './vidmoly';
|
|
16
16
|
import VizCloud from './vizcloud';
|
|
17
|
-
import VidHide from './vidhide';
|
|
17
|
+
import { VidHide } from './vidhide';
|
|
18
18
|
import Voe from './voe';
|
|
19
19
|
import { MegaUp } from './megaup';
|
|
20
20
|
|
package/src/extractors/megaup.ts
CHANGED
|
@@ -40,6 +40,17 @@ export function MegaUp(ctx: ExtractorContext): IVideoExtractor {
|
|
|
40
40
|
const extract = async (videoUrl: PolyURL): Promise<ISource> => {
|
|
41
41
|
try {
|
|
42
42
|
const mediaUrl = videoUrl.href.replace('/e/', '/media/');
|
|
43
|
+
const subsUrl = videoUrl.searchParams.get('sub.list');
|
|
44
|
+
let externalSubs: { kind: string; url: string; lang: string }[] = [];
|
|
45
|
+
if (subsUrl) {
|
|
46
|
+
externalSubs = await axios.get(subsUrl).then((res) =>
|
|
47
|
+
res.data.map((sub: { kind: string; file: string; label: string }) => ({
|
|
48
|
+
kind: sub.kind,
|
|
49
|
+
url: sub.file,
|
|
50
|
+
lang: sub.label,
|
|
51
|
+
}))
|
|
52
|
+
);
|
|
53
|
+
}
|
|
43
54
|
const { data } = await client.get(mediaUrl, {
|
|
44
55
|
headers: {
|
|
45
56
|
'Connection': 'keep-alive',
|
|
@@ -80,21 +91,27 @@ export function MegaUp(ctx: ExtractorContext): IVideoExtractor {
|
|
|
80
91
|
}
|
|
81
92
|
return {
|
|
82
93
|
sources: [qualitySources, defaultSource].flat(),
|
|
83
|
-
subtitles:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
94
|
+
subtitles: [
|
|
95
|
+
...decrypted.tracks.map((track) => ({
|
|
96
|
+
kind: track.kind,
|
|
97
|
+
url: track.file,
|
|
98
|
+
lang: track.label || 'English',
|
|
99
|
+
})),
|
|
100
|
+
...(externalSubs.length > 0 ? externalSubs : []),
|
|
101
|
+
],
|
|
88
102
|
download: decrypted.download,
|
|
89
103
|
};
|
|
90
104
|
}
|
|
91
105
|
return {
|
|
92
106
|
sources: [defaultSource],
|
|
93
|
-
subtitles:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
107
|
+
subtitles: [
|
|
108
|
+
...decrypted.tracks.map((track) => ({
|
|
109
|
+
kind: track.kind,
|
|
110
|
+
url: track.file,
|
|
111
|
+
lang: track.label || track.kind,
|
|
112
|
+
})),
|
|
113
|
+
...(externalSubs.length > 0 ? externalSubs : []),
|
|
114
|
+
],
|
|
98
115
|
download: decrypted.download,
|
|
99
116
|
};
|
|
100
117
|
} catch (error) {
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { USER_AGENT } from '../utils/constants';
|
|
1
|
+
import { type ExtractorContext, type IVideo, type ISource, type IVideoExtractor, type ISubtitle } from '../models';
|
|
2
|
+
import type { PolyURL } from '../utils/url-polyfill';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
/**
|
|
5
|
+
* StreamWish extractor function
|
|
6
|
+
* @param ctx ExtractorContext containing axios, load, USER_AGENT
|
|
7
|
+
* @returns Object with extract method implementing IVideoExtractor interface
|
|
8
|
+
*/
|
|
9
|
+
export function StreamWish(ctx: ExtractorContext): IVideoExtractor {
|
|
10
|
+
const serverName = 'StreamWish';
|
|
11
|
+
const sources: IVideo[] = [];
|
|
12
|
+
const { axios, USER_AGENT, PolyURL } = ctx;
|
|
8
13
|
|
|
9
|
-
|
|
10
|
-
videoUrl: URL,
|
|
11
|
-
referer?: string
|
|
12
|
-
): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => {
|
|
14
|
+
const extract = async (videoUrl: PolyURL, referer?: string): Promise<ISource> => {
|
|
13
15
|
try {
|
|
14
16
|
const options = {
|
|
15
17
|
headers: {
|
|
@@ -53,15 +55,10 @@ class StreamWish extends VideoExtractor {
|
|
|
53
55
|
p = p.replace(regex, k[c]!);
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
|
-
|
|
57
|
-
// console.log('Decoded String:', p);
|
|
58
|
-
} else {
|
|
59
|
-
//console.log('No match found');
|
|
60
58
|
}
|
|
59
|
+
|
|
61
60
|
let link = p.match(/https?:\/\/[^"]+?\.m3u8[^"]*/)![0];
|
|
62
|
-
// console.log('Decoded Links:', link);
|
|
63
61
|
const subtitleMatches = p?.match(/{file:"([^"]+)",(label:"([^"]+)",)?kind:"(thumbnails|captions)"/g) ?? [];
|
|
64
|
-
// console.log(subtitleMatches, 'subtitleMatches');
|
|
65
62
|
const subtitles: ISubtitle[] = subtitleMatches.map((sub) => {
|
|
66
63
|
const lang = sub?.match(/label:"([^"]+)"/)?.[1] ?? '';
|
|
67
64
|
const url = sub?.match(/file:"([^"]+)"/)?.[1] ?? '';
|
|
@@ -77,19 +74,24 @@ class StreamWish extends VideoExtractor {
|
|
|
77
74
|
url: url,
|
|
78
75
|
};
|
|
79
76
|
});
|
|
77
|
+
|
|
80
78
|
if (link.includes('hls2"')) {
|
|
81
79
|
link = link.replace('hls2"', '').replace(new RegExp('"', 'g'), '');
|
|
82
80
|
}
|
|
83
|
-
|
|
81
|
+
|
|
82
|
+
const linkParser = new PolyURL(link);
|
|
84
83
|
linkParser.searchParams.set('i', '0.4');
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
|
|
85
|
+
const videoSources: IVideo[] = [
|
|
86
|
+
{
|
|
87
|
+
quality: 'default',
|
|
88
|
+
url: linkParser.href,
|
|
89
|
+
isM3U8: link.includes('.m3u8'),
|
|
90
|
+
},
|
|
91
|
+
];
|
|
90
92
|
|
|
91
93
|
try {
|
|
92
|
-
const m3u8Content = await axios.get(
|
|
94
|
+
const m3u8Content = await axios.get(videoSources[0]!.url, options);
|
|
93
95
|
|
|
94
96
|
if (m3u8Content.data.includes('EXTM3U')) {
|
|
95
97
|
const videoList = m3u8Content.data.split('#EXT-X-STREAM-INF:');
|
|
@@ -99,22 +101,29 @@ class StreamWish extends VideoExtractor {
|
|
|
99
101
|
const url = link.split('master.m3u8')[0] + video.split('\n')[1];
|
|
100
102
|
const quality = video.split('RESOLUTION=')[1].split(',')[0].split('x')[1];
|
|
101
103
|
|
|
102
|
-
|
|
104
|
+
videoSources.push({
|
|
103
105
|
url: url,
|
|
104
106
|
quality: `${quality}p`,
|
|
105
107
|
isM3U8: url.includes('.m3u8'),
|
|
106
108
|
});
|
|
107
109
|
}
|
|
108
110
|
}
|
|
109
|
-
} catch (e) {
|
|
111
|
+
} catch (e) {
|
|
112
|
+
// M3U8 parsing failed, continue with default source
|
|
113
|
+
}
|
|
110
114
|
|
|
111
115
|
return {
|
|
112
|
-
sources:
|
|
116
|
+
sources: videoSources,
|
|
113
117
|
subtitles: subtitles,
|
|
114
118
|
};
|
|
115
119
|
} catch (err) {
|
|
116
120
|
throw new Error((err as Error).message);
|
|
117
121
|
}
|
|
118
122
|
};
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
serverName,
|
|
126
|
+
sources,
|
|
127
|
+
extract,
|
|
128
|
+
};
|
|
119
129
|
}
|
|
120
|
-
export default StreamWish;
|
|
@@ -1,20 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { type ExtractorContext, type IVideo, type ISource, type IVideoExtractor } from '../models';
|
|
2
|
+
import type { PolyURL } from '../utils/url-polyfill';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
/**
|
|
5
|
+
* VidHide extractor function
|
|
6
|
+
* @param ctx ExtractorContext containing axios, load, USER_AGENT
|
|
7
|
+
* @returns Object with extract method implementing IVideoExtractor interface
|
|
8
|
+
*/
|
|
9
|
+
export function VidHide(ctx: ExtractorContext): IVideoExtractor {
|
|
10
|
+
const serverName = 'VidHide';
|
|
11
|
+
const sources: IVideo[] = [];
|
|
12
|
+
const { axios, USER_AGENT } = ctx;
|
|
7
13
|
|
|
8
|
-
|
|
14
|
+
const extract = async (videoUrl: PolyURL): Promise<ISource> => {
|
|
9
15
|
try {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const { data } = await axios
|
|
17
|
+
.get(videoUrl.href, {
|
|
18
|
+
headers: {
|
|
19
|
+
'User-Agent': USER_AGENT,
|
|
20
|
+
'Referer': videoUrl.origin,
|
|
21
|
+
},
|
|
22
|
+
})
|
|
23
|
+
.catch(() => {
|
|
24
|
+
throw new Error('Video not found');
|
|
25
|
+
});
|
|
18
26
|
|
|
19
27
|
const unpackedData = eval(
|
|
20
28
|
/(eval)(\(f.*?)(\n<\/script>)/m.exec(data.replace(/\n/g, ' '))![2]!.replace('eval', '')
|
|
@@ -23,15 +31,18 @@ class VidHide extends VideoExtractor {
|
|
|
23
31
|
const m3u8Link = links[0];
|
|
24
32
|
const m3u8Content = await axios.get(m3u8Link, {
|
|
25
33
|
headers: {
|
|
26
|
-
Referer: m3u8Link,
|
|
34
|
+
'Referer': m3u8Link,
|
|
35
|
+
'User-Agent': USER_AGENT,
|
|
27
36
|
},
|
|
28
37
|
});
|
|
29
38
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
const videoSources: IVideo[] = [
|
|
40
|
+
{
|
|
41
|
+
quality: 'auto',
|
|
42
|
+
url: m3u8Link,
|
|
43
|
+
isM3U8: m3u8Link.includes('.m3u8'),
|
|
44
|
+
},
|
|
45
|
+
];
|
|
35
46
|
|
|
36
47
|
if (m3u8Content.data.includes('EXTM3U')) {
|
|
37
48
|
const pathWithoutMaster = m3u8Link.split('/master.m3u8')[0];
|
|
@@ -42,7 +53,7 @@ class VidHide extends VideoExtractor {
|
|
|
42
53
|
const url = video.split('\n')[1];
|
|
43
54
|
const quality = video.split('RESOLUTION=')[1]?.split(',')[0].split('x')[1];
|
|
44
55
|
|
|
45
|
-
|
|
56
|
+
videoSources.push({
|
|
46
57
|
url: `${pathWithoutMaster}/${url}`,
|
|
47
58
|
quality: `${quality}p`,
|
|
48
59
|
isM3U8: url.includes('.m3u8'),
|
|
@@ -50,10 +61,18 @@ class VidHide extends VideoExtractor {
|
|
|
50
61
|
}
|
|
51
62
|
}
|
|
52
63
|
|
|
53
|
-
return
|
|
64
|
+
return {
|
|
65
|
+
sources: videoSources,
|
|
66
|
+
subtitles: [],
|
|
67
|
+
};
|
|
54
68
|
} catch (err) {
|
|
55
69
|
throw new Error((err as Error).message);
|
|
56
70
|
}
|
|
57
71
|
};
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
serverName,
|
|
75
|
+
sources,
|
|
76
|
+
extract,
|
|
77
|
+
};
|
|
58
78
|
}
|
|
59
|
-
export default VidHide;
|
package/src/index.tsx
CHANGED
|
@@ -18,7 +18,7 @@ import { ANIME, LIGHT_NOVELS, MANGA, MOVIES, META } from './providers';
|
|
|
18
18
|
// Provider metadata (catalog of built-in providers)
|
|
19
19
|
import type { AnimeProvider, MovieProvider, animeProviders, movieProviders } from './utils';
|
|
20
20
|
|
|
21
|
-
import
|
|
21
|
+
import extensionRegistry from './extension-registry.json';
|
|
22
22
|
// Utils (contexts, and provider management)
|
|
23
23
|
import {
|
|
24
24
|
createProviderContext,
|
|
@@ -162,7 +162,7 @@ export type {
|
|
|
162
162
|
ExtensionManifest,
|
|
163
163
|
ExtractorInfo,
|
|
164
164
|
};
|
|
165
|
-
export { ExtensionRegistry };
|
|
165
|
+
export { extensionRegistry as ExtensionRegistry };
|
|
166
166
|
// Utils: context creation and provider management
|
|
167
167
|
export {
|
|
168
168
|
createProviderContext,
|
|
@@ -5,6 +5,8 @@ import type {
|
|
|
5
5
|
bypassDdosGuard,
|
|
6
6
|
getDdosGuardCookiesWithWebView,
|
|
7
7
|
makeGetRequestWithWebView,
|
|
8
|
+
makePostRequestWithWebView,
|
|
9
|
+
makePostRequest,
|
|
8
10
|
multiply,
|
|
9
11
|
deobfuscateScript,
|
|
10
12
|
} from '../NativeConsumet';
|
|
@@ -22,6 +24,8 @@ export interface ExtractorContext {
|
|
|
22
24
|
NativeConsumet: {
|
|
23
25
|
getDdosGuardCookiesWithWebView: typeof getDdosGuardCookiesWithWebView;
|
|
24
26
|
makeGetRequestWithWebView: typeof makeGetRequestWithWebView;
|
|
27
|
+
makePostRequestWithWebView: typeof makePostRequestWithWebView;
|
|
28
|
+
makePostRequest: typeof makePostRequest;
|
|
25
29
|
multiply: typeof multiply;
|
|
26
30
|
bypassDdosGuard: typeof bypassDdosGuard;
|
|
27
31
|
deobfuscateScript: typeof deobfuscateScript;
|
|
@@ -11,6 +11,8 @@ import type {
|
|
|
11
11
|
bypassDdosGuard,
|
|
12
12
|
getDdosGuardCookiesWithWebView,
|
|
13
13
|
makeGetRequestWithWebView,
|
|
14
|
+
makePostRequestWithWebView,
|
|
15
|
+
makePostRequest,
|
|
14
16
|
multiply,
|
|
15
17
|
deobfuscateScript,
|
|
16
18
|
} from '../NativeConsumet';
|
|
@@ -90,11 +92,8 @@ export interface ExtractorRegistry {
|
|
|
90
92
|
) => {
|
|
91
93
|
extract: (url: URL) => Promise<any>;
|
|
92
94
|
};
|
|
93
|
-
StreamWish:
|
|
94
|
-
|
|
95
|
-
adapter?: any
|
|
96
|
-
) => {
|
|
97
|
-
extract: (url: URL) => Promise<any>;
|
|
95
|
+
StreamWish: (ctx?: ExtractorContext) => {
|
|
96
|
+
extract: (url: PolyURL, referer?: string) => Promise<any>;
|
|
98
97
|
};
|
|
99
98
|
VidMoly: new (
|
|
100
99
|
proxyConfig?: any,
|
|
@@ -108,11 +107,8 @@ export interface ExtractorRegistry {
|
|
|
108
107
|
) => {
|
|
109
108
|
extract: (url: URL) => Promise<any>;
|
|
110
109
|
};
|
|
111
|
-
VidHide:
|
|
112
|
-
|
|
113
|
-
adapter?: any
|
|
114
|
-
) => {
|
|
115
|
-
extract: (url: URL) => Promise<any>;
|
|
110
|
+
VidHide: (ctx?: ExtractorContext) => {
|
|
111
|
+
extract: (url: PolyURL, referer?: string) => Promise<any>;
|
|
116
112
|
};
|
|
117
113
|
Voe: new (
|
|
118
114
|
proxyConfig?: any,
|
|
@@ -165,6 +161,8 @@ export interface ProviderContext {
|
|
|
165
161
|
NativeConsumet: {
|
|
166
162
|
getDdosGuardCookiesWithWebView: typeof getDdosGuardCookiesWithWebView;
|
|
167
163
|
makeGetRequestWithWebView: typeof makeGetRequestWithWebView;
|
|
164
|
+
makePostRequestWithWebView: typeof makePostRequestWithWebView;
|
|
165
|
+
makePostRequest: typeof makePostRequest;
|
|
168
166
|
multiply: typeof multiply;
|
|
169
167
|
bypassDdosGuard: typeof bypassDdosGuard;
|
|
170
168
|
deobfuscateScript: typeof deobfuscateScript;
|
|
@@ -4,14 +4,27 @@ import createAnimeKai, { type AnimeKaiProviderInstance } from './create-animekai
|
|
|
4
4
|
|
|
5
5
|
export class AnimeKai extends AnimeParser {
|
|
6
6
|
private instance: AnimeKaiProviderInstance;
|
|
7
|
-
|
|
7
|
+
override logo: string;
|
|
8
|
+
override name: string;
|
|
9
|
+
override baseUrl: string;
|
|
10
|
+
override classPath: string;
|
|
11
|
+
override isNSFW: boolean;
|
|
12
|
+
override isWorking: boolean;
|
|
13
|
+
override isDubAvailableSeparately: boolean;
|
|
8
14
|
|
|
9
15
|
constructor(customBaseURL?: string) {
|
|
10
16
|
super();
|
|
11
17
|
|
|
12
18
|
const defaultContext = createProviderContext();
|
|
13
19
|
this.instance = createAnimeKai(defaultContext, customBaseURL);
|
|
20
|
+
|
|
14
21
|
this.logo = this.instance.logo;
|
|
22
|
+
this.name = this.instance.name;
|
|
23
|
+
this.baseUrl = this.instance.baseUrl;
|
|
24
|
+
this.classPath = this.instance.classPath;
|
|
25
|
+
this.isNSFW = this.instance.isNSFW ?? false;
|
|
26
|
+
this.isWorking = this.instance.isWorking ?? true;
|
|
27
|
+
this.isDubAvailableSeparately = this.instance.isDubAvailableSeparately ?? false;
|
|
15
28
|
|
|
16
29
|
this.search = this.instance.search;
|
|
17
30
|
this.fetchLatestCompleted = this.instance.fetchLatestCompleted;
|
|
@@ -33,19 +46,6 @@ export class AnimeKai extends AnimeParser {
|
|
|
33
46
|
this.fetchEpisodeServers = this.instance.fetchEpisodeServers;
|
|
34
47
|
}
|
|
35
48
|
|
|
36
|
-
get name() {
|
|
37
|
-
return this.instance.name;
|
|
38
|
-
}
|
|
39
|
-
get baseUrl() {
|
|
40
|
-
return this.instance.baseUrl;
|
|
41
|
-
}
|
|
42
|
-
set baseUrl(value: string) {
|
|
43
|
-
this.instance.baseUrl = value;
|
|
44
|
-
}
|
|
45
|
-
get classPath() {
|
|
46
|
-
return this.instance.classPath;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
49
|
/**
|
|
50
50
|
* @param query Search query
|
|
51
51
|
* @param page Page number (optional)
|
|
@@ -543,16 +543,7 @@ function createAnimeKai(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
543
543
|
};
|
|
544
544
|
|
|
545
545
|
return {
|
|
546
|
-
|
|
547
|
-
get baseUrl() {
|
|
548
|
-
return config.baseUrl;
|
|
549
|
-
},
|
|
550
|
-
set baseUrl(value: string) {
|
|
551
|
-
config.baseUrl = value.startsWith('http') ? value : `http://${value}`;
|
|
552
|
-
},
|
|
553
|
-
logo: config.logo,
|
|
554
|
-
classPath: config.classPath,
|
|
555
|
-
|
|
546
|
+
...config,
|
|
556
547
|
search,
|
|
557
548
|
fetchLatestCompleted,
|
|
558
549
|
fetchRecentlyAdded,
|
|
@@ -5,7 +5,13 @@ import createAnimePahe, { type AnimePaheProviderInstance } from './create-animep
|
|
|
5
5
|
// Backward compatibility wrapper class
|
|
6
6
|
export class AnimePahe extends AnimeParser {
|
|
7
7
|
private instance: AnimePaheProviderInstance;
|
|
8
|
-
|
|
8
|
+
override logo: string;
|
|
9
|
+
override name: string;
|
|
10
|
+
override baseUrl: string;
|
|
11
|
+
override classPath: string;
|
|
12
|
+
override isNSFW: boolean;
|
|
13
|
+
override isWorking: boolean;
|
|
14
|
+
override isDubAvailableSeparately: boolean;
|
|
9
15
|
|
|
10
16
|
constructor(customBaseURL?: string) {
|
|
11
17
|
super();
|
|
@@ -14,7 +20,14 @@ export class AnimePahe extends AnimeParser {
|
|
|
14
20
|
const defaultContext = createProviderContext();
|
|
15
21
|
|
|
16
22
|
this.instance = createAnimePahe(defaultContext, customBaseURL);
|
|
23
|
+
|
|
17
24
|
this.logo = this.instance.logo;
|
|
25
|
+
this.name = this.instance.name;
|
|
26
|
+
this.baseUrl = this.instance.baseUrl;
|
|
27
|
+
this.classPath = this.instance.classPath;
|
|
28
|
+
this.isNSFW = this.instance.isNSFW ?? false;
|
|
29
|
+
this.isWorking = this.instance.isWorking ?? true;
|
|
30
|
+
this.isDubAvailableSeparately = this.instance.isDubAvailableSeparately ?? false;
|
|
18
31
|
|
|
19
32
|
// Bind all methods to preserve proper typing
|
|
20
33
|
this.search = this.instance.search;
|
|
@@ -23,19 +36,6 @@ export class AnimePahe extends AnimeParser {
|
|
|
23
36
|
this.fetchEpisodeServers = this.instance.fetchEpisodeServers;
|
|
24
37
|
}
|
|
25
38
|
|
|
26
|
-
// Getters for required AnimeParser properties
|
|
27
|
-
get name() {
|
|
28
|
-
return this.instance.name;
|
|
29
|
-
}
|
|
30
|
-
get baseUrl() {
|
|
31
|
-
return this.instance.baseUrl;
|
|
32
|
-
}
|
|
33
|
-
set baseUrl(value: string) {
|
|
34
|
-
this.instance.baseUrl = value;
|
|
35
|
-
}
|
|
36
|
-
get classPath() {
|
|
37
|
-
return this.instance.classPath;
|
|
38
|
-
}
|
|
39
39
|
/**
|
|
40
40
|
* @param query Search query
|
|
41
41
|
*/
|
|
@@ -335,17 +335,7 @@ function createAnimePahe(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
335
335
|
|
|
336
336
|
// Return the functional provider object
|
|
337
337
|
return {
|
|
338
|
-
|
|
339
|
-
name: config.name,
|
|
340
|
-
get baseUrl() {
|
|
341
|
-
return config.baseUrl;
|
|
342
|
-
},
|
|
343
|
-
set baseUrl(value: string) {
|
|
344
|
-
config.baseUrl = value.startsWith('http') ? value : `http://${value}`;
|
|
345
|
-
},
|
|
346
|
-
logo: config.logo,
|
|
347
|
-
classPath: config.classPath,
|
|
348
|
-
|
|
338
|
+
...config,
|
|
349
339
|
// Core methods, pass only the necessary methods, dont pass helpers or unused methods
|
|
350
340
|
search,
|
|
351
341
|
fetchAnimeInfo,
|
|
@@ -607,17 +607,7 @@ function createZoro(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
607
607
|
|
|
608
608
|
// Return the functional provider object
|
|
609
609
|
return {
|
|
610
|
-
|
|
611
|
-
name: config.name,
|
|
612
|
-
get baseUrl() {
|
|
613
|
-
return config.baseUrl;
|
|
614
|
-
},
|
|
615
|
-
set baseUrl(value: string) {
|
|
616
|
-
config.baseUrl = value.startsWith('http') ? value : `http://${value}`;
|
|
617
|
-
},
|
|
618
|
-
logo: config.logo,
|
|
619
|
-
classPath: config.classPath,
|
|
620
|
-
|
|
610
|
+
...config,
|
|
621
611
|
// Core methods, pass only the necessary methods, dont pass helpers or unused methods
|
|
622
612
|
search,
|
|
623
613
|
fetchAdvancedSearch,
|
|
@@ -5,7 +5,13 @@ import createZoro, { type ZoroProviderInstance } from './create-zoro';
|
|
|
5
5
|
// Backward compatibility wrapper class
|
|
6
6
|
export class Zoro extends AnimeParser {
|
|
7
7
|
private instance: ZoroProviderInstance;
|
|
8
|
-
|
|
8
|
+
override logo: string;
|
|
9
|
+
override name: string;
|
|
10
|
+
override baseUrl: string;
|
|
11
|
+
override classPath: string;
|
|
12
|
+
override isNSFW: boolean;
|
|
13
|
+
override isWorking: boolean;
|
|
14
|
+
override readonly isDubAvailableSeparately: boolean;
|
|
9
15
|
|
|
10
16
|
constructor(customBaseURL?: string) {
|
|
11
17
|
super();
|
|
@@ -14,7 +20,14 @@ export class Zoro extends AnimeParser {
|
|
|
14
20
|
const defaultContext = createProviderContext();
|
|
15
21
|
|
|
16
22
|
this.instance = createZoro(defaultContext, customBaseURL);
|
|
23
|
+
|
|
17
24
|
this.logo = this.instance.logo;
|
|
25
|
+
this.name = this.instance.name;
|
|
26
|
+
this.baseUrl = this.instance.baseUrl;
|
|
27
|
+
this.classPath = this.instance.classPath;
|
|
28
|
+
this.isNSFW = this.instance.isNSFW ?? false;
|
|
29
|
+
this.isWorking = this.instance.isWorking ?? true;
|
|
30
|
+
this.isDubAvailableSeparately = this.instance.isDubAvailableSeparately ?? false;
|
|
18
31
|
|
|
19
32
|
// Bind all methods to preserve proper typing
|
|
20
33
|
this.search = this.instance.search;
|
|
@@ -46,19 +59,6 @@ export class Zoro extends AnimeParser {
|
|
|
46
59
|
this.fetchEpisodeServers = this.instance.fetchEpisodeServers;
|
|
47
60
|
}
|
|
48
61
|
|
|
49
|
-
// Getters for required AnimeParser properties
|
|
50
|
-
get name() {
|
|
51
|
-
return this.instance.name;
|
|
52
|
-
}
|
|
53
|
-
get baseUrl() {
|
|
54
|
-
return this.instance.baseUrl;
|
|
55
|
-
}
|
|
56
|
-
set baseUrl(value: string) {
|
|
57
|
-
this.instance.baseUrl = value;
|
|
58
|
-
}
|
|
59
|
-
get classPath() {
|
|
60
|
-
return this.instance.classPath;
|
|
61
|
-
}
|
|
62
62
|
/**
|
|
63
63
|
* @param query Search query
|
|
64
64
|
* @param page Page number (optional)
|
|
@@ -418,9 +418,8 @@ class TMDB extends MovieParser {
|
|
|
418
418
|
else if (extraData.type === TvType.TVSERIES) return (result.type as string) === TvType.TVSERIES;
|
|
419
419
|
else return result;
|
|
420
420
|
});
|
|
421
|
-
|
|
422
421
|
// if extraData contains a year, filter out the results that don't match the year
|
|
423
|
-
if (extraData && extraData.year) {
|
|
422
|
+
if (extraData && extraData.year && findMedia.results.some((result) => result.releaseDate)) {
|
|
424
423
|
findMedia.results = findMedia.results.filter((result) => {
|
|
425
424
|
return String(result.releaseDate).split('-')[0]?.trim() === String(extraData.year).trim();
|
|
426
425
|
});
|