react-native-consumet 1.2.0 → 1.2.1

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.
Files changed (261) hide show
  1. package/android/generated/java/com/consumet/NativeConsumetSpec.java +8 -0
  2. package/android/generated/jni/RNConsumetSpec-generated.cpp +12 -0
  3. package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI-generated.cpp +18 -0
  4. package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +18 -0
  5. package/android/src/main/java/com/consumet/ConsumetModule.kt +12 -1
  6. package/android/src/main/java/com/consumet/DdosGuardModule.kt +1 -132
  7. package/android/src/main/java/com/consumet/HttpRequestModule.kt +417 -0
  8. package/ios/generated/RNConsumetSpec/RNConsumetSpec-generated.mm +14 -0
  9. package/ios/generated/RNConsumetSpec/RNConsumetSpec.h +10 -0
  10. package/ios/generated/RNConsumetSpecJSI-generated.cpp +18 -0
  11. package/ios/generated/RNConsumetSpecJSI.h +18 -0
  12. package/lib/commonjs/NativeConsumet.ts +22 -0
  13. package/lib/commonjs/extension-registry.json +46 -2
  14. package/lib/commonjs/extractors/index.js +4 -4
  15. package/lib/commonjs/extractors/index.js.map +1 -1
  16. package/lib/commonjs/extractors/megaup.js +14 -5
  17. package/lib/commonjs/extractors/megaup.js.map +1 -1
  18. package/lib/commonjs/extractors/{StreamP2P.js → streamp2p.js} +1 -1
  19. package/lib/commonjs/extractors/{StreamP2P.js.map → streamp2p.js.map} +1 -1
  20. package/lib/commonjs/extractors/streamwish.js +31 -25
  21. package/lib/commonjs/extractors/streamwish.js.map +1 -1
  22. package/lib/commonjs/extractors/vidhide.js +35 -20
  23. package/lib/commonjs/extractors/vidhide.js.map +1 -1
  24. package/lib/commonjs/providers/anime/animekai/animekai.js +6 -12
  25. package/lib/commonjs/providers/anime/animekai/animekai.js.map +1 -1
  26. package/lib/commonjs/providers/anime/animekai/create-animekai.js +1 -9
  27. package/lib/commonjs/providers/anime/animekai/create-animekai.js.map +1 -1
  28. package/lib/commonjs/providers/anime/animepahe/animepahe.js +6 -13
  29. package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
  30. package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +1 -10
  31. package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
  32. package/lib/commonjs/providers/anime/zoro/create-zoro.js +1 -10
  33. package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
  34. package/lib/commonjs/providers/anime/zoro/zoro.js +6 -13
  35. package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
  36. package/lib/commonjs/providers/movies/dramacool.js +395 -331
  37. package/lib/commonjs/providers/movies/dramacool.js.map +1 -1
  38. package/lib/commonjs/providers/movies/himovies/create-himovies.js +1 -12
  39. package/lib/commonjs/providers/movies/himovies/create-himovies.js.map +1 -1
  40. package/lib/commonjs/providers/movies/himovies/himovies.js +6 -16
  41. package/lib/commonjs/providers/movies/himovies/himovies.js.map +1 -1
  42. package/lib/commonjs/providers/movies/index.js +10 -4
  43. package/lib/commonjs/providers/movies/index.js.map +1 -1
  44. package/lib/{module/providers/movies/multimovies.js → commonjs/providers/movies/multimovies/create-multimovies.js} +183 -149
  45. package/lib/commonjs/providers/movies/multimovies/create-multimovies.js.map +1 -0
  46. package/lib/commonjs/providers/movies/multimovies/multimovies.js +46 -0
  47. package/lib/commonjs/providers/movies/multimovies/multimovies.js.map +1 -0
  48. package/lib/commonjs/providers/movies/multistream/index.js +16 -16
  49. package/lib/commonjs/providers/movies/netflixmirror.js +14 -14
  50. package/lib/commonjs/providers/movies/yflix/create-yflix.js +418 -0
  51. package/lib/commonjs/providers/movies/yflix/create-yflix.js.map +1 -0
  52. package/lib/commonjs/providers/movies/yflix/yflix.js +59 -0
  53. package/lib/commonjs/providers/movies/yflix/yflix.js.map +1 -0
  54. package/lib/commonjs/providers/movies/yflix.js +561 -0
  55. package/lib/commonjs/providers/movies/yflix.js.map +1 -0
  56. package/lib/commonjs/utils/create-extractor-context.js +2 -0
  57. package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
  58. package/lib/commonjs/utils/create-provider-context.js +2 -0
  59. package/lib/commonjs/utils/create-provider-context.js.map +1 -1
  60. package/lib/commonjs/utils/extension-utils.js +4 -2
  61. package/lib/commonjs/utils/extension-utils.js.map +1 -1
  62. package/lib/commonjs/utils/provider-maps.js +4 -1
  63. package/lib/commonjs/utils/provider-maps.js.map +1 -1
  64. package/lib/module/NativeConsumet.ts +22 -0
  65. package/lib/module/extension-registry.json +46 -2
  66. package/lib/module/extractors/index.js +2 -2
  67. package/lib/module/extractors/index.js.map +1 -1
  68. package/lib/module/extractors/megaup.js +14 -5
  69. package/lib/module/extractors/megaup.js.map +1 -1
  70. package/lib/module/extractors/{StreamP2P.js → streamp2p.js} +1 -1
  71. package/lib/module/extractors/{StreamP2P.js.map → streamp2p.js.map} +1 -1
  72. package/lib/module/extractors/streamwish.js +28 -21
  73. package/lib/module/extractors/streamwish.js.map +1 -1
  74. package/lib/module/extractors/vidhide.js +33 -17
  75. package/lib/module/extractors/vidhide.js.map +1 -1
  76. package/lib/module/index.js +2 -2
  77. package/lib/module/index.js.map +1 -1
  78. package/lib/module/providers/anime/animekai/animekai.js +6 -12
  79. package/lib/module/providers/anime/animekai/animekai.js.map +1 -1
  80. package/lib/module/providers/anime/animekai/create-animekai.js +1 -9
  81. package/lib/module/providers/anime/animekai/create-animekai.js.map +1 -1
  82. package/lib/module/providers/anime/animepahe/animepahe.js +6 -13
  83. package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
  84. package/lib/module/providers/anime/animepahe/create-animepahe.js +1 -10
  85. package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
  86. package/lib/module/providers/anime/zoro/create-zoro.js +1 -10
  87. package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
  88. package/lib/module/providers/anime/zoro/zoro.js +6 -13
  89. package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
  90. package/lib/module/providers/movies/dramacool.js +395 -327
  91. package/lib/module/providers/movies/dramacool.js.map +1 -1
  92. package/lib/module/providers/movies/himovies/create-himovies.js +1 -11
  93. package/lib/module/providers/movies/himovies/create-himovies.js.map +1 -1
  94. package/lib/module/providers/movies/himovies/himovies.js +6 -16
  95. package/lib/module/providers/movies/himovies/himovies.js.map +1 -1
  96. package/lib/module/providers/movies/index.js +10 -4
  97. package/lib/module/providers/movies/index.js.map +1 -1
  98. package/lib/{commonjs/providers/movies/multimovies.js → module/providers/movies/multimovies/create-multimovies.js} +187 -161
  99. package/lib/module/providers/movies/multimovies/create-multimovies.js.map +1 -0
  100. package/lib/module/providers/movies/multimovies/multimovies.js +43 -0
  101. package/lib/module/providers/movies/multimovies/multimovies.js.map +1 -0
  102. package/lib/module/providers/movies/multistream/index.js +16 -16
  103. package/lib/module/providers/movies/netflixmirror.js +14 -14
  104. package/lib/module/providers/movies/yflix/create-yflix.js +414 -0
  105. package/lib/module/providers/movies/yflix/create-yflix.js.map +1 -0
  106. package/lib/module/providers/movies/yflix/yflix.js +55 -0
  107. package/lib/module/providers/movies/yflix/yflix.js.map +1 -0
  108. package/lib/module/providers/movies/yflix.js +561 -0
  109. package/lib/module/providers/movies/yflix.js.map +1 -0
  110. package/lib/module/utils/create-extractor-context.js +3 -1
  111. package/lib/module/utils/create-extractor-context.js.map +1 -1
  112. package/lib/module/utils/create-provider-context.js +3 -1
  113. package/lib/module/utils/create-provider-context.js.map +1 -1
  114. package/lib/module/utils/extension-utils.js +5 -3
  115. package/lib/module/utils/extension-utils.js.map +1 -1
  116. package/lib/module/utils/provider-maps.js +4 -1
  117. package/lib/module/utils/provider-maps.js.map +1 -1
  118. package/lib/typescript/commonjs/src/NativeConsumet.d.ts +36 -0
  119. package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
  120. package/lib/typescript/commonjs/src/extractors/index.d.ts +2 -2
  121. package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
  122. package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +1 -1
  123. package/lib/typescript/commonjs/src/extractors/{StreamP2P.d.ts → streamp2p.d.ts} +1 -1
  124. package/lib/typescript/commonjs/src/extractors/{StreamP2P.d.ts.map → streamp2p.d.ts.map} +1 -1
  125. package/lib/typescript/commonjs/src/extractors/streamwish.d.ts +7 -11
  126. package/lib/typescript/commonjs/src/extractors/streamwish.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/src/extractors/vidhide.d.ts +7 -7
  128. package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/src/index.d.ts +2 -2
  130. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/src/models/extractor-context.d.ts +3 -1
  132. package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/src/models/provider-context.d.ts +7 -5
  134. package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
  135. package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts +6 -4
  136. package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts.map +1 -1
  137. package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts +8 -4
  138. package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts.map +1 -1
  139. package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts +6 -4
  140. package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
  141. package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts +8 -4
  142. package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
  143. package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +8 -4
  144. package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
  145. package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts +6 -4
  146. package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
  147. package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts +0 -21
  148. package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/src/providers/movies/himovies/create-himovies.d.ts +8 -5
  150. package/lib/typescript/commonjs/src/providers/movies/himovies/create-himovies.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts +6 -5
  152. package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts.map +1 -1
  153. package/lib/typescript/commonjs/src/providers/movies/index.d.ts +7 -3
  154. package/lib/typescript/commonjs/src/providers/movies/index.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/src/providers/movies/multimovies/create-multimovies.d.ts +20 -0
  156. package/lib/typescript/commonjs/src/providers/movies/multimovies/create-multimovies.d.ts.map +1 -0
  157. package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts +21 -0
  158. package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/src/providers/movies/yflix/create-yflix.d.ts +25 -0
  160. package/lib/typescript/commonjs/src/providers/movies/yflix/create-yflix.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts +44 -0
  162. package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts.map +1 -0
  163. package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts +1 -0
  164. package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts.map +1 -0
  165. package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts.map +1 -1
  166. package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -1
  167. package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +4 -4
  168. package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
  169. package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +1 -0
  170. package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -1
  171. package/lib/typescript/module/src/NativeConsumet.d.ts +36 -0
  172. package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
  173. package/lib/typescript/module/src/extractors/index.d.ts +2 -2
  174. package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
  175. package/lib/typescript/module/src/extractors/megaup.d.ts.map +1 -1
  176. package/lib/typescript/module/src/extractors/{StreamP2P.d.ts → streamp2p.d.ts} +1 -1
  177. package/lib/typescript/module/src/extractors/{StreamP2P.d.ts.map → streamp2p.d.ts.map} +1 -1
  178. package/lib/typescript/module/src/extractors/streamwish.d.ts +7 -11
  179. package/lib/typescript/module/src/extractors/streamwish.d.ts.map +1 -1
  180. package/lib/typescript/module/src/extractors/vidhide.d.ts +7 -7
  181. package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
  182. package/lib/typescript/module/src/index.d.ts +2 -2
  183. package/lib/typescript/module/src/index.d.ts.map +1 -1
  184. package/lib/typescript/module/src/models/extractor-context.d.ts +3 -1
  185. package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
  186. package/lib/typescript/module/src/models/provider-context.d.ts +7 -5
  187. package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
  188. package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts +6 -4
  189. package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts.map +1 -1
  190. package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts +8 -4
  191. package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts.map +1 -1
  192. package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts +6 -4
  193. package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
  194. package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts +8 -4
  195. package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
  196. package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +8 -4
  197. package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
  198. package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts +6 -4
  199. package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
  200. package/lib/typescript/module/src/providers/movies/dramacool.d.ts +0 -21
  201. package/lib/typescript/module/src/providers/movies/dramacool.d.ts.map +1 -1
  202. package/lib/typescript/module/src/providers/movies/himovies/create-himovies.d.ts +8 -5
  203. package/lib/typescript/module/src/providers/movies/himovies/create-himovies.d.ts.map +1 -1
  204. package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts +6 -5
  205. package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts.map +1 -1
  206. package/lib/typescript/module/src/providers/movies/index.d.ts +7 -3
  207. package/lib/typescript/module/src/providers/movies/index.d.ts.map +1 -1
  208. package/lib/typescript/module/src/providers/movies/multimovies/create-multimovies.d.ts +20 -0
  209. package/lib/typescript/module/src/providers/movies/multimovies/create-multimovies.d.ts.map +1 -0
  210. package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts +21 -0
  211. package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts.map +1 -0
  212. package/lib/typescript/module/src/providers/movies/yflix/create-yflix.d.ts +25 -0
  213. package/lib/typescript/module/src/providers/movies/yflix/create-yflix.d.ts.map +1 -0
  214. package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts +44 -0
  215. package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts.map +1 -0
  216. package/lib/typescript/module/src/providers/movies/yflix.d.ts +1 -0
  217. package/lib/typescript/module/src/providers/movies/yflix.d.ts.map +1 -0
  218. package/lib/typescript/module/src/utils/create-extractor-context.d.ts.map +1 -1
  219. package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -1
  220. package/lib/typescript/module/src/utils/extension-utils.d.ts +4 -4
  221. package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
  222. package/lib/typescript/module/src/utils/provider-maps.d.ts +1 -0
  223. package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -1
  224. package/package.json +15 -5
  225. package/src/NativeConsumet.ts +22 -0
  226. package/src/extension-registry.json +46 -2
  227. package/src/extractors/index.ts +2 -2
  228. package/src/extractors/megaup.ts +27 -10
  229. package/src/extractors/streamwish.ts +36 -27
  230. package/src/extractors/vidhide.ts +42 -23
  231. package/src/index.tsx +2 -2
  232. package/src/models/extractor-context.ts +4 -0
  233. package/src/models/provider-context.ts +8 -10
  234. package/src/providers/anime/animekai/animekai.ts +14 -14
  235. package/src/providers/anime/animekai/create-animekai.ts +1 -10
  236. package/src/providers/anime/animepahe/animepahe.ts +14 -14
  237. package/src/providers/anime/animepahe/create-animepahe.ts +1 -11
  238. package/src/providers/anime/zoro/create-zoro.ts +1 -11
  239. package/src/providers/anime/zoro/zoro.ts +14 -14
  240. package/src/providers/movies/dramacool.ts +395 -394
  241. package/src/providers/movies/himovies/create-himovies.ts +1 -12
  242. package/src/providers/movies/himovies/himovies.ts +14 -17
  243. package/src/providers/movies/index.ts +9 -3
  244. package/src/providers/movies/{multimovies.ts → multimovies/create-multimovies.ts} +181 -156
  245. package/src/providers/movies/multimovies/multimovies.ts +57 -0
  246. package/src/providers/movies/multistream/index.ts +232 -232
  247. package/src/providers/movies/netflixmirror.ts +288 -288
  248. package/src/providers/movies/yflix/create-yflix.ts +496 -0
  249. package/src/providers/movies/yflix/yflix.ts +82 -0
  250. package/src/providers/movies/yflix.ts +559 -0
  251. package/src/utils/create-extractor-context.ts +4 -0
  252. package/src/utils/create-provider-context.ts +4 -0
  253. package/src/utils/extension-utils.ts +6 -2
  254. package/src/utils/provider-maps.ts +4 -1
  255. package/lib/commonjs/providers/movies/multimovies.js.map +0 -1
  256. package/lib/module/providers/movies/multimovies.js.map +0 -1
  257. package/lib/typescript/commonjs/src/providers/movies/multimovies.d.ts +0 -40
  258. package/lib/typescript/commonjs/src/providers/movies/multimovies.d.ts.map +0 -1
  259. package/lib/typescript/module/src/providers/movies/multimovies.d.ts +0 -40
  260. package/lib/typescript/module/src/providers/movies/multimovies.d.ts.map +0 -1
  261. /package/src/extractors/{StreamP2P.ts → streamp2p.ts} +0 -0
@@ -12,7 +12,7 @@
12
12
  },
13
13
  {
14
14
  "name": "MegaUp",
15
- "version": "1.0.0",
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//web-app-manifest-512x512.png",
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
  }
@@ -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
 
@@ -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: decrypted.tracks.map((track) => ({
84
- kind: track.kind,
85
- url: track.file,
86
- lang: track.label || 'English',
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: decrypted.tracks.map((track) => ({
94
- kind: track.kind,
95
- url: track.file,
96
- lang: track.label || 'English',
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 axios from 'axios';
2
- import { VideoExtractor, type IVideo, type ISubtitle } from '../models';
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
- class StreamWish extends VideoExtractor {
6
- protected override serverName = 'streamwish';
7
- protected override sources: IVideo[] = [];
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
- override extract = async (
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
- const linkParser = new URL(link);
81
+
82
+ const linkParser = new PolyURL(link);
84
83
  linkParser.searchParams.set('i', '0.4');
85
- this.sources.push({
86
- quality: 'default',
87
- url: linkParser.href,
88
- isM3U8: link.includes('.m3u8'),
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(this.sources[0]!.url, options);
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
- this.sources.push({
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: this.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 axios from 'axios';
2
- import { VideoExtractor, type IVideo, type ISubtitle } from '../models';
1
+ import { type ExtractorContext, type IVideo, type ISource, type IVideoExtractor } from '../models';
2
+ import type { PolyURL } from '../utils/url-polyfill';
3
3
 
4
- class VidHide extends VideoExtractor {
5
- protected override serverName = 'VidHide';
6
- protected override sources: IVideo[] = [];
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
- override extract = async (videoUrl: URL): Promise<IVideo[]> => {
14
+ const extract = async (videoUrl: PolyURL): Promise<ISource> => {
9
15
  try {
10
- const result: { sources: IVideo[]; subtitles: ISubtitle[] } = {
11
- sources: [],
12
- subtitles: [],
13
- };
14
-
15
- const { data } = await axios.get(videoUrl.href).catch(() => {
16
- throw new Error('Video not found');
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
- result.sources.push({
31
- quality: 'auto',
32
- url: m3u8Link,
33
- isM3U8: m3u8Link.includes('.m3u8'),
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
- result.sources.push({
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 result.sources;
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 ExtensionRegistry from './extension-registry.json';
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: new (
94
- proxyConfig?: any,
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: new (
112
- proxyConfig?: any,
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
- public logo: string;
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
- name: config.name,
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
- public logo: string;
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
- // Configuration
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
- // Configuration
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
- public logo: string;
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)