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
@@ -0,0 +1,559 @@
1
+ // import { load } from 'cheerio';
2
+
3
+ // import {
4
+ // MovieParser,
5
+ // TvType,
6
+ // type IMovieInfo,
7
+ // type IEpisodeServer,
8
+ // StreamingServers,
9
+ // type ISource,
10
+ // type IMovieResult,
11
+ // type ISearch,
12
+ // } from '../../models';
13
+ // import { MegaUp } from '../../extractors';
14
+ // import axios from 'axios';
15
+ // import { PolyURL } from '../../utils';
16
+
17
+ // class YFlix extends MovieParser {
18
+ // override readonly name = 'YFlix';
19
+ // protected override baseUrl = 'https://yflix.to';
20
+ // private readonly apiBase: string = 'https://enc-dec.app/api';
21
+ // protected override logo = 'https://yflix.to/assets/uploads/2f505f3de3c99889c1a72557f3e3714fc0c457b0.png';
22
+ // protected override classPath = 'MOVIES.YFlix';
23
+ // override supportedTypes = new Set([TvType.MOVIE, TvType.TVSERIES]);
24
+ // constructor(customBaseURL?: string) {
25
+ // super();
26
+ // if (customBaseURL) {
27
+ // if (customBaseURL.startsWith('http://') || customBaseURL.startsWith('https://')) {
28
+ // this.baseUrl = customBaseURL;
29
+ // } else {
30
+ // this.baseUrl = `http://${customBaseURL}`;
31
+ // }
32
+ // } else {
33
+ // this.baseUrl = this.baseUrl;
34
+ // }
35
+ // }
36
+
37
+ // /**
38
+ // *
39
+ // * @param query search query string
40
+ // * @param page page number (default 1) (optional)
41
+ // */
42
+ // override search = async (query: string, page: number = 1): Promise<ISearch<IMovieResult>> => {
43
+ // const searchResult: ISearch<IMovieResult> = {
44
+ // currentPage: page,
45
+ // hasNextPage: false,
46
+ // results: [],
47
+ // };
48
+ // try {
49
+ // const { data } = await axios.get(`${this.baseUrl}/browser?keyword=${query.replace(/[\W_]+/g, '+')}&page=${page}`);
50
+
51
+ // const $ = load(data);
52
+
53
+ // const navSelector = 'nav.navigation > ul.pagination';
54
+ // searchResult.hasNextPage =
55
+ // $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('active') : false;
56
+
57
+ // $('.film-section > div.item').each((i, el) => {
58
+ // const releaseDate = $(el).find('div.metadata > span:nth-child(2)').text();
59
+ // searchResult.results.push({
60
+ // id: $(el).find('div.inner > a').attr('href')?.split('/watch/')[1]!,
61
+ // title: $(el).find('div.info > a').text().trim()!,
62
+ // url: `${this.baseUrl}${$(el).find('div.inner > a').attr('href')}`,
63
+ // image: $(el).find('img').attr('data-src') || $(el).find('img').attr('src'),
64
+ // releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate,
65
+ // seasons: releaseDate.includes('SS') ? parseInt(releaseDate.split('SS')[1]!) : undefined,
66
+ // type: $(el).find('div.metadata > span:nth-child(1)').text() === 'Movie' ? TvType.MOVIE : TvType.TVSERIES,
67
+ // });
68
+ // });
69
+
70
+ // return searchResult;
71
+ // } catch (err) {
72
+ // throw new Error((err as Error).message);
73
+ // }
74
+ // };
75
+
76
+ // /**
77
+ // *
78
+ // * @param mediaId media link or id
79
+ // */
80
+ // override fetchMediaInfo = async (mediaId: string): Promise<IMovieInfo> => {
81
+ // if (!mediaId.startsWith(this.baseUrl)) {
82
+ // mediaId = `${this.baseUrl}/watch/${mediaId}`;
83
+ // }
84
+
85
+ // const movieInfo: IMovieInfo = {
86
+ // id: mediaId.split('to/').pop()!,
87
+ // title: '',
88
+ // url: mediaId,
89
+ // };
90
+ // try {
91
+ // const { data } = await axios.get(mediaId);
92
+ // const $ = load(data);
93
+ // const recommendationsArray: IMovieResult[] = [];
94
+
95
+ // $('section.movie-related > div.film-section > div.item').each((i, el) => {
96
+ // const releaseDate = $(el).find('div.metadata > span:nth-child(2)').text();
97
+ // recommendationsArray.push({
98
+ // id: $(el).find('div.inner > a').attr('href')?.split('/watch/')[1]!,
99
+ // title: $(el).find('div.info > a').text().trim()!,
100
+ // image: $(el).find('img').attr('data-src') || $(el).find('img').attr('src'),
101
+ // releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate,
102
+ // seasons: releaseDate.includes('SS') ? parseInt(releaseDate.split('SS')[1]!) : undefined,
103
+ // type: $(el).find('div.metadata > span:nth-child(1)').text() === 'Movie' ? TvType.MOVIE : TvType.TVSERIES,
104
+ // });
105
+ // });
106
+
107
+ // const uid = $('#movie-rating').attr('data-id')!;
108
+ // movieInfo.cover = $('div.detail-bg').attr('style')?.slice(22).replace(')', '').replace(';', '');
109
+ // movieInfo.title = $('h1.title').text();
110
+ // movieInfo.image = $('.poster img').attr('src');
111
+ // movieInfo.description = $('.description').text().trim();
112
+ // // movieInfo.type = movieInfo.id.includes('tv/') ? TvType.TVSERIES : TvType.MOVIE;
113
+ // movieInfo.releaseDate = $('ul.mics > li:contains(Released:)').text().replace('Released:', '').trim();
114
+ // movieInfo.genres = $('ul.mics > li:contains(Genres:) a')
115
+ // .map((i, el) => $(el).text().split('&'))
116
+ // .get()
117
+ // .map((v) => v.trim());
118
+ // movieInfo.casts = $('ul.mics > li:contains(Casts:) a')
119
+ // .map((i, el) => $(el).text())
120
+ // .get();
121
+ // // movieInfo.production = $('ul.mics > li:contains(Production:) a').text().trim();
122
+ // movieInfo.country = $('ul.mics > li:contains(Country:) a').text().trim();
123
+ // // movieInfo.duration = $('.row-line:contains(Duration:)')
124
+ // // .text()
125
+ // // .replace('Duration:', '')
126
+ // // .replace(/\s+/g, ' ')
127
+ // // .trim();
128
+ // movieInfo.rating = parseFloat($('.metadata > span.IMDb').text().replace('IMDb', '').trim());
129
+ // movieInfo.recommendations = recommendationsArray as any;
130
+
131
+ // // if (movieInfo.type === TvType.TVSERIES) {
132
+ // // const { data } = await axios.get(ajaxReqUrl(uid, 'tv', true));
133
+ // // const $$ = load(data);
134
+ // // const seasonsIds = $$('.dropdown-menu > a')
135
+ // // .map((i, el) => $(el).attr('data-id'))
136
+ // // .get();
137
+
138
+ // // movieInfo.episodes = [];
139
+ // // let season = 1;
140
+ // // for (const id of seasonsIds) {
141
+ // // const { data } = await axios.get(ajaxReqUrl(id, 'season'));
142
+ // // const $$$ = load(data);
143
+
144
+ // // $$$('.nav > li')
145
+ // // .map((i, el) => {
146
+ // // const episode = {
147
+ // // id: $$$(el).find('a').attr('id')!.split('-')[1],
148
+ // // title: $$$(el).find('a').attr('title')!,
149
+ // // number: parseInt($$$(el).find('a').attr('title')!.split(':')[0].slice(3).trim()),
150
+ // // season: season,
151
+ // // url: `${this.baseUrl}/ajax/episode/servers/${$$$(el).find('a').attr('id')!.split('-')[1]}`,
152
+ // // };
153
+ // // movieInfo.episodes?.push(episode);
154
+ // // })
155
+ // // .get();
156
+ // // season++;
157
+ // // }
158
+ // // } else {
159
+ // // movieInfo.episodes = [
160
+ // // {
161
+ // // id: uid,
162
+ // // title: movieInfo.title,
163
+ // // url: `${this.baseUrl}/ajax/episode/list/${uid}`,
164
+ // // },
165
+ // // ];
166
+ // // }
167
+ // const episodesAjax = await axios.get(
168
+ // `${this.baseUrl}/ajax/episodes/list?id=${uid}&_=${await this.GenerateToken(uid!)}`,
169
+ // {
170
+ // headers: {
171
+ // 'X-Requested-With': 'XMLHttpRequest',
172
+ // 'Referer': `${this.baseUrl}/watch/${mediaId}`,
173
+ // },
174
+ // }
175
+ // );
176
+ // const $$ = load(episodesAjax.data.result);
177
+ // movieInfo.episodes = [];
178
+
179
+ // $$('.episodes').each((_, el) => {
180
+ // const season = parseInt($$(el).attr('data-season')!, 10);
181
+
182
+ // $$(el)
183
+ // .find('li a')
184
+ // .each((_, link) => {
185
+ // const $link = $(link);
186
+
187
+ // const id = $link.attr('eid')?.trim() || '';
188
+ // const url = this.baseUrl + $link.attr('href')?.trim() || '';
189
+ // const number = parseInt($link.attr('num') || '', 10);
190
+ // const releaseDate = $link.attr('title')?.trim() || '';
191
+ // const title = $link.find('span:last-child').text().trim();
192
+
193
+ // movieInfo.episodes?.push({
194
+ // id,
195
+ // title,
196
+ // url,
197
+ // number,
198
+ // season,
199
+ // releaseDate,
200
+ // });
201
+ // });
202
+ // });
203
+
204
+ // return movieInfo;
205
+ // } catch (err) {
206
+ // console.log(err);
207
+ // throw new Error((err as Error).message);
208
+ // }
209
+ // };
210
+
211
+ // /**
212
+ // *
213
+ // * @param episodeId episode id
214
+ // * @param mediaId media id
215
+ // * @param server server type (default `MegaUp`) (optional)
216
+ // */
217
+ // override fetchEpisodeSources = async (
218
+ // episodeId: string,
219
+ // mediaId: string,
220
+ // server: StreamingServers = StreamingServers.MegaUp
221
+ // ): Promise<ISource> => {
222
+ // if (episodeId.startsWith('http')) {
223
+ // const serverUrl = new PolyURL(episodeId);
224
+ // switch (server) {
225
+ // case StreamingServers.MegaUp:
226
+ // return {
227
+ // headers: { Referer: serverUrl.href },
228
+ // ...(await MegaUp().extract(serverUrl)),
229
+ // };
230
+ // default:
231
+ // return {
232
+ // headers: { Referer: serverUrl.href },
233
+ // ...(await MegaUp().extract(serverUrl)),
234
+ // };
235
+ // }
236
+ // }
237
+
238
+ // try {
239
+ // const servers = await this.fetchEpisodeServers(episodeId, mediaId);
240
+
241
+ // const i = servers.findIndex((s) => s.name.toLowerCase().includes(server)); //for now only megaup is available, hence directly using it
242
+
243
+ // if (i === -1) {
244
+ // throw new Error(`Server ${server} not found`);
245
+ // }
246
+
247
+ // const serverUrl: URL = new URL(servers[i]?.url!);
248
+ // const subsUrl = serverUrl.searchParams.get('sub.list');
249
+
250
+ // // Fetch subtitles and sources in parallel
251
+ // const [extraSubtitles, sources] = await Promise.all([
252
+ // subsUrl
253
+ // ? axios
254
+ // .get(subsUrl, {
255
+ // headers: { Referer: serverUrl.href },
256
+ // })
257
+ // .then(({ data }) =>
258
+ // Array.isArray(data)
259
+ // ? data.map((s: any) => ({
260
+ // url: s.file,
261
+ // lang: s.label,
262
+ // kind: s.kind,
263
+ // }))
264
+ // : []
265
+ // )
266
+ // .catch(() => [])
267
+ // : Promise.resolve([]),
268
+ // this.fetchEpisodeSources(serverUrl.href, mediaId, server),
269
+ // ]);
270
+
271
+ // const allSubtitles = [...(sources.subtitles || []), ...extraSubtitles];
272
+
273
+ // return {
274
+ // ...sources,
275
+ // subtitles: allSubtitles,
276
+ // };
277
+ // } catch (err) {
278
+ // console.log(err, 'err');
279
+ // throw new Error((err as Error).message);
280
+ // }
281
+ // };
282
+
283
+ // /**
284
+ // *
285
+ // * @param episodeId takes episode link or movie id
286
+ // * @param mediaId takes movie link or id (found on movie info object)
287
+ // */
288
+ // override fetchEpisodeServers = async (episodeId: string, mediaId: string): Promise<IEpisodeServer[]> => {
289
+ // try {
290
+ // const { data } = await axios.get(
291
+ // `${this.baseUrl}/ajax/links/list?eid=${episodeId}&_=${await this.GenerateToken(episodeId)}`
292
+ // );
293
+ // const $ = load(data.result);
294
+
295
+ // const servers: IEpisodeServer[] = [];
296
+ // const serverItems = $('ul > li.server');
297
+ // await Promise.all(
298
+ // serverItems.map(async (i, server) => {
299
+ // const id = $(server).attr('data-lid');
300
+ // const { data } = await axios.get(
301
+ // `${this.baseUrl}/ajax/links/view?id=${id}&_=${await this.GenerateToken(id!)}`
302
+ // );
303
+ // const decodedIframeData = await this.DecodeIframeData(data.result);
304
+ // servers.push({
305
+ // name: `MegaUp ${$(server).text().trim()}`.toLowerCase()!, //megaup is the only server for now
306
+ // url: decodedIframeData.url,
307
+ // });
308
+ // })
309
+ // );
310
+ // return servers;
311
+ // } catch (err) {
312
+ // throw new Error((err as Error).message);
313
+ // }
314
+ // };
315
+
316
+ // fetchRecentMovies = async (): Promise<IMovieResult[]> => {
317
+ // try {
318
+ // const { data } = await axios.get(`${this.baseUrl}/home`);
319
+ // const $ = load(data);
320
+
321
+ // const movies = $(
322
+ // 'section.block_area:contains("Latest Movies") > div:nth-child(2) > div:nth-child(1) > div.flw-item'
323
+ // )
324
+ // .map((i, el) => {
325
+ // const releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text();
326
+ // const movie: any = {
327
+ // id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!,
328
+ // title: $(el).find('div.film-detail > h3.film-name > a').attr('title')!,
329
+ // url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
330
+ // image: $(el).find('div.film-poster > img').attr('data-src'),
331
+ // releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate,
332
+ // duration: $(el).find('div.film-detail > div.fd-infor > span.fdi-duration').text() || null,
333
+ // type:
334
+ // $(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
335
+ // ? TvType.MOVIE
336
+ // : TvType.TVSERIES,
337
+ // };
338
+ // return movie;
339
+ // })
340
+ // .get();
341
+ // return movies;
342
+ // } catch (err) {
343
+ // throw new Error((err as Error).message);
344
+ // }
345
+ // };
346
+
347
+ // fetchRecentTvShows = async (): Promise<IMovieResult[]> => {
348
+ // try {
349
+ // const { data } = await axios.get(`${this.baseUrl}/home`);
350
+ // const $ = load(data);
351
+
352
+ // const tvshows = $(
353
+ // 'section.block_area:contains("Latest TV Shows") > div:nth-child(2) > div:nth-child(1) > div.flw-item'
354
+ // )
355
+ // .map((i, el) => {
356
+ // const tvshow = {
357
+ // id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!,
358
+ // title: $(el).find('div.film-detail > h3.film-name > a').attr('title')!,
359
+ // url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
360
+ // image: $(el).find('div.film-poster > img').attr('data-src'),
361
+ // season: $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text().replace('SS', '').trim(),
362
+ // latestEpisode:
363
+ // $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().replace('EPS', '').trim() || null,
364
+ // type:
365
+ // $(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
366
+ // ? TvType.MOVIE
367
+ // : TvType.TVSERIES,
368
+ // };
369
+ // return tvshow;
370
+ // })
371
+ // .get();
372
+ // return tvshows;
373
+ // } catch (err) {
374
+ // throw new Error((err as Error).message);
375
+ // }
376
+ // };
377
+
378
+ // fetchTrendingMovies = async (): Promise<IMovieResult[]> => {
379
+ // try {
380
+ // const { data } = await axios.get(`${this.baseUrl}/home`);
381
+ // const $ = load(data);
382
+
383
+ // const movies = $('div#trending-movies div.film_list-wrap div.flw-item')
384
+ // .map((i, el) => {
385
+ // const releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text();
386
+ // const movie: any = {
387
+ // id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!,
388
+ // title: $(el).find('div.film-detail > h3.film-name > a').attr('title')!,
389
+ // url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
390
+ // image: $(el).find('div.film-poster > img').attr('data-src'),
391
+ // releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate,
392
+ // duration: $(el).find('div.film-detail > div.fd-infor > span.fdi-duration').text() || null,
393
+ // type:
394
+ // $(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
395
+ // ? TvType.MOVIE
396
+ // : TvType.TVSERIES,
397
+ // };
398
+ // return movie;
399
+ // })
400
+ // .get();
401
+ // return movies;
402
+ // } catch (err) {
403
+ // throw new Error((err as Error).message);
404
+ // }
405
+ // };
406
+
407
+ // fetchTrendingTvShows = async (): Promise<IMovieResult[]> => {
408
+ // try {
409
+ // const { data } = await axios.get(`${this.baseUrl}/home`);
410
+ // const $ = load(data);
411
+
412
+ // const tvshows = $('div#trending-tv div.film_list-wrap div.flw-item')
413
+ // .map((i, el) => {
414
+ // const tvshow = {
415
+ // id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!,
416
+ // title: $(el).find('div.film-detail > h3.film-name > a').attr('title')!,
417
+ // url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
418
+ // image: $(el).find('div.film-poster > img').attr('data-src'),
419
+ // season: $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text().replace('SS', '').trim(),
420
+ // latestEpisode:
421
+ // $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().replace('EPS', '').trim() || null,
422
+ // type:
423
+ // $(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
424
+ // ? TvType.MOVIE
425
+ // : TvType.TVSERIES,
426
+ // };
427
+ // return tvshow;
428
+ // })
429
+ // .get();
430
+ // return tvshows;
431
+ // } catch (err) {
432
+ // throw new Error((err as Error).message);
433
+ // }
434
+ // };
435
+
436
+ // fetchByCountry = async (country: string, page: number = 1): Promise<ISearch<IMovieResult>> => {
437
+ // const result: ISearch<IMovieResult> = {
438
+ // currentPage: page,
439
+ // hasNextPage: false,
440
+ // results: [],
441
+ // };
442
+ // const navSelector = 'div.pre-pagination > nav:nth-child(1) > ul:nth-child(1)';
443
+
444
+ // try {
445
+ // const { data } = await axios.get(`${this.baseUrl}/country/${country}/?page=${page}`);
446
+ // const $ = load(data);
447
+
448
+ // result.hasNextPage = $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('active') : false;
449
+
450
+ // $('div.container > section.block_area > div.block_area-content > div.film_list-wrap > div.flw-item')
451
+ // .each((i, el) => {
452
+ // const resultItem: IMovieResult = {
453
+ // id: $(el).find('div.film-poster > a').attr('href')?.slice(1) ?? '',
454
+ // title: $(el).find('div.film-detail > h2.film-name > a').attr('title') ?? '',
455
+ // url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
456
+ // image: $(el).find('div.film-poster > img').attr('data-src'),
457
+ // type:
458
+ // $(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
459
+ // ? TvType.MOVIE
460
+ // : TvType.TVSERIES,
461
+ // };
462
+ // const season = $(el)
463
+ // .find('div.film-detail > div.fd-infor > span:nth-child(1)')
464
+ // .text()
465
+ // .replace('SS', '')
466
+ // .trim();
467
+ // const latestEpisode =
468
+ // $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().replace('EPS', '').trim() ?? null;
469
+ // if (resultItem.type === TvType.TVSERIES) {
470
+ // resultItem.season = season;
471
+ // resultItem.latestEpisode = latestEpisode;
472
+ // } else {
473
+ // resultItem.releaseDate = season;
474
+ // resultItem.duration = latestEpisode;
475
+ // }
476
+ // result.results.push(resultItem);
477
+ // })
478
+ // .get();
479
+ // return result;
480
+ // } catch (err) {
481
+ // throw new Error((err as Error).message);
482
+ // }
483
+ // };
484
+
485
+ // fetchByGenre = async (genre: string, page: number = 1): Promise<ISearch<IMovieResult>> => {
486
+ // const result: ISearch<IMovieResult> = {
487
+ // currentPage: page,
488
+ // hasNextPage: false,
489
+ // results: [],
490
+ // };
491
+ // try {
492
+ // const { data } = await axios.get(`${this.baseUrl}/genre/${genre}?page=${page}`);
493
+
494
+ // const $ = load(data);
495
+
496
+ // const navSelector = 'div.pre-pagination > nav:nth-child(1) > ul:nth-child(1)';
497
+
498
+ // result.hasNextPage = $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('active') : false;
499
+
500
+ // $('.film_list-wrap > div.flw-item')
501
+ // .each((i, el) => {
502
+ // const resultItem: IMovieResult = {
503
+ // id: $(el).find('div.film-poster > a').attr('href')?.slice(1) ?? '',
504
+ // title: $(el).find('div.film-detail > h2 > a').attr('title') ?? '',
505
+ // url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
506
+ // image: $(el).find('div.film-poster > img').attr('data-src'),
507
+ // type:
508
+ // $(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
509
+ // ? TvType.MOVIE
510
+ // : TvType.TVSERIES,
511
+ // };
512
+ // const season = $(el)
513
+ // .find('div.film-detail > div.fd-infor > span:nth-child(1)')
514
+ // .text()
515
+ // .replace('SS', '')
516
+ // .trim();
517
+ // const latestEpisode =
518
+ // $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().replace('EPS', '').trim() ?? null;
519
+ // if (resultItem.type === TvType.TVSERIES) {
520
+ // resultItem.season = season;
521
+ // resultItem.latestEpisode = latestEpisode;
522
+ // } else {
523
+ // resultItem.releaseDate = season;
524
+ // resultItem.duration = latestEpisode;
525
+ // }
526
+ // result.results.push(resultItem);
527
+ // })
528
+ // .get();
529
+
530
+ // return result;
531
+ // } catch (err) {
532
+ // throw new Error((err as Error).message);
533
+ // }
534
+ // };
535
+
536
+ // private GenerateToken = async (n: string): Promise<string> => {
537
+ // try {
538
+ // const res = await axios.get(`${this.apiBase}/enc-movies-flix?text=${encodeURIComponent(n)}`);
539
+ // return res.data.result;
540
+ // } catch (error) {
541
+ // throw new Error((error as Error).message);
542
+ // }
543
+ // };
544
+
545
+ // private DecodeIframeData = async (
546
+ // n: string
547
+ // ): Promise<{
548
+ // url: string;
549
+ // }> => {
550
+ // try {
551
+ // const res = await axios.post(`${this.apiBase}/dec-movies-flix`, { text: n });
552
+ // return res.data.result;
553
+ // } catch (error) {
554
+ // throw new Error((error as Error).message);
555
+ // }
556
+ // };
557
+ // }
558
+
559
+ // export default YFlix;
@@ -7,6 +7,8 @@ import {
7
7
  bypassDdosGuard,
8
8
  getDdosGuardCookiesWithWebView,
9
9
  makeGetRequestWithWebView,
10
+ makePostRequestWithWebView,
11
+ makePostRequest,
10
12
  multiply,
11
13
  deobfuscateScript,
12
14
  } from '../NativeConsumet';
@@ -26,6 +28,8 @@ export function createExtractorContext(config: ExtractorContextConfig = {}): Ext
26
28
  NativeConsumet: {
27
29
  getDdosGuardCookiesWithWebView,
28
30
  makeGetRequestWithWebView,
31
+ makePostRequestWithWebView,
32
+ makePostRequest,
29
33
  multiply,
30
34
  bypassDdosGuard,
31
35
  deobfuscateScript,
@@ -19,6 +19,8 @@ import { PolyURL, PolyURLSearchParams } from './url-polyfill';
19
19
  import {
20
20
  getDdosGuardCookiesWithWebView,
21
21
  makeGetRequestWithWebView,
22
+ makePostRequestWithWebView,
23
+ makePostRequest,
22
24
  multiply,
23
25
  bypassDdosGuard,
24
26
  deobfuscateScript,
@@ -108,6 +110,8 @@ export function createProviderContext(config: ProviderContextConfig = {}): Provi
108
110
  NativeConsumet: {
109
111
  getDdosGuardCookiesWithWebView,
110
112
  makeGetRequestWithWebView,
113
+ makePostRequestWithWebView,
114
+ makePostRequest,
111
115
  multiply,
112
116
  bypassDdosGuard,
113
117
  deobfuscateScript,
@@ -29,6 +29,8 @@ import { PolyURL, PolyURLSearchParams } from './url-polyfill';
29
29
  import {
30
30
  getDdosGuardCookiesWithWebView,
31
31
  makeGetRequestWithWebView,
32
+ makePostRequestWithWebView,
33
+ makePostRequest,
32
34
  multiply,
33
35
  bypassDdosGuard,
34
36
  deobfuscateScript,
@@ -56,6 +58,8 @@ export const defaultExtractorContext: ExtractorContext = {
56
58
  NativeConsumet: {
57
59
  getDdosGuardCookiesWithWebView,
58
60
  makeGetRequestWithWebView,
61
+ makePostRequestWithWebView,
62
+ makePostRequest,
59
63
  multiply,
60
64
  bypassDdosGuard,
61
65
  deobfuscateScript,
@@ -77,10 +81,10 @@ export const defaultExtractors = {
77
81
  StreamLare: StreamLare,
78
82
  StreamSB: StreamSB,
79
83
  StreamTape: StreamTape,
80
- StreamWish: StreamWish,
84
+ StreamWish: (ctx?: ExtractorContext) => StreamWish(ctx || defaultExtractorContext),
81
85
  VidMoly: VidMoly,
82
86
  VizCloud: VizCloud,
83
- VidHide: VidHide,
87
+ VidHide: (ctx?: ExtractorContext) => VidHide(ctx || defaultExtractorContext),
84
88
  Voe: Voe,
85
89
  MegaUp: (ctx?: ExtractorContext) => MegaUp(ctx || defaultExtractorContext),
86
90
  };
@@ -27,11 +27,14 @@ export const movieProviders = {
27
27
  return require('../providers/movies/himovies/himovies').default;
28
28
  },
29
29
  get MultiMovies() {
30
- return require('../providers/movies/multimovies').default;
30
+ return require('../providers/movies/multimovies/multimovies').default;
31
31
  },
32
32
  get MultiStream() {
33
33
  return require('../providers/movies/multistream').default;
34
34
  },
35
+ get YFlix() {
36
+ return require('../providers/movies/yflix/yflix').default;
37
+ },
35
38
  };
36
39
 
37
40
  const metaProviders = {