react-native-consumet 0.2.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/README.md +1 -1
  2. package/android/src/main/java/com/consumet/ConsumetModule.kt +67 -39
  3. package/lib/commonjs/extractors/asianload.js.map +1 -1
  4. package/lib/commonjs/extractors/filemoon.js.map +1 -1
  5. package/lib/commonjs/extractors/gogocdn.js.map +1 -1
  6. package/lib/commonjs/extractors/kisskh/kkey.js.map +1 -1
  7. package/lib/commonjs/extractors/kisskh/staticdata.js.map +1 -1
  8. package/lib/commonjs/extractors/kwik.js.map +1 -1
  9. package/lib/commonjs/extractors/megacloud/index.js.map +1 -1
  10. package/lib/commonjs/extractors/megaup.js +1 -1
  11. package/lib/commonjs/extractors/megaup.js.map +1 -1
  12. package/lib/commonjs/extractors/mixdrop.js.map +1 -1
  13. package/lib/commonjs/extractors/mp4player.js.map +1 -1
  14. package/lib/commonjs/extractors/mp4upload.js.map +1 -1
  15. package/lib/commonjs/extractors/rapidcloud.js.map +1 -1
  16. package/lib/commonjs/extractors/smashystream.js.map +1 -1
  17. package/lib/commonjs/extractors/streamhub.js.map +1 -1
  18. package/lib/commonjs/extractors/streamlare.js.map +1 -1
  19. package/lib/commonjs/extractors/streamsb.js.map +1 -1
  20. package/lib/commonjs/extractors/streamwish.js +12 -15
  21. package/lib/commonjs/extractors/streamwish.js.map +1 -1
  22. package/lib/commonjs/extractors/vidcloud.js.map +1 -1
  23. package/lib/commonjs/extractors/vidhide.js.map +1 -1
  24. package/lib/commonjs/extractors/vidmoly.js.map +1 -1
  25. package/lib/commonjs/extractors/vizcloud.js.map +1 -1
  26. package/lib/commonjs/extractors/voe.js.map +1 -1
  27. package/lib/commonjs/index.js.map +1 -1
  28. package/lib/commonjs/models/anime-parser.js.map +1 -1
  29. package/lib/commonjs/models/lightnovel-parser.js.map +1 -1
  30. package/lib/commonjs/models/manga-parser.js.map +1 -1
  31. package/lib/commonjs/models/movie-parser.js.map +1 -1
  32. package/lib/commonjs/models/proxy.js.map +1 -1
  33. package/lib/commonjs/models/video-extractor.js.map +1 -1
  34. package/lib/commonjs/providers/anime/anify.js.map +1 -1
  35. package/lib/commonjs/providers/anime/animedrive.js.map +1 -1
  36. package/lib/commonjs/providers/anime/animefox.js.map +1 -1
  37. package/lib/commonjs/providers/anime/animekai.js.map +1 -1
  38. package/lib/commonjs/providers/anime/animepahe.js.map +1 -1
  39. package/lib/commonjs/providers/anime/animesaturn.js.map +1 -1
  40. package/lib/commonjs/providers/anime/animeunity.js.map +1 -1
  41. package/lib/commonjs/providers/anime/anix.js.map +1 -1
  42. package/lib/commonjs/providers/anime/bilibili.js.map +1 -1
  43. package/lib/commonjs/providers/anime/gogoanime.js.map +1 -1
  44. package/lib/commonjs/providers/anime/index.js +0 -4
  45. package/lib/commonjs/providers/anime/index.js.map +1 -1
  46. package/lib/commonjs/providers/anime/kickassanime.js.map +1 -1
  47. package/lib/commonjs/providers/anime/marin.js.map +1 -1
  48. package/lib/commonjs/providers/anime/monoschinos.js.map +1 -1
  49. package/lib/commonjs/providers/anime/zoro.js +1 -1
  50. package/lib/commonjs/providers/anime/zoro.js.map +1 -1
  51. package/lib/commonjs/providers/comics/getComics.js.map +1 -1
  52. package/lib/commonjs/providers/light-novels/novelupdates.js.map +1 -1
  53. package/lib/commonjs/providers/light-novels/readlightnovels.js.map +1 -1
  54. package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
  55. package/lib/commonjs/providers/manga/brmangas.js.map +1 -1
  56. package/lib/commonjs/providers/manga/comick.js.map +1 -1
  57. package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
  58. package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
  59. package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
  60. package/lib/commonjs/providers/manga/mangahost.js.map +1 -1
  61. package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
  62. package/lib/commonjs/providers/manga/mangapark.js.map +1 -1
  63. package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
  64. package/lib/commonjs/providers/manga/mangareader.js.map +1 -1
  65. package/lib/commonjs/providers/manga/mangasee123.js.map +1 -1
  66. package/lib/commonjs/providers/manga/readmanga.js.map +1 -1
  67. package/lib/commonjs/providers/manga/vyvymanga.js.map +1 -1
  68. package/lib/commonjs/providers/meta/anilist.js +86 -106
  69. package/lib/commonjs/providers/meta/anilist.js.map +1 -1
  70. package/lib/commonjs/providers/meta/mal.js +2 -28
  71. package/lib/commonjs/providers/meta/mal.js.map +1 -1
  72. package/lib/commonjs/providers/meta/tmdb.js +22 -1
  73. package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
  74. package/lib/commonjs/providers/movies/dramacool.js.map +1 -1
  75. package/lib/commonjs/providers/movies/flixhq.js.map +1 -1
  76. package/lib/commonjs/providers/movies/fmovies.js.map +1 -1
  77. package/lib/commonjs/providers/movies/goku.js.map +1 -1
  78. package/lib/commonjs/providers/movies/kissasian.js.map +1 -1
  79. package/lib/commonjs/providers/movies/moviehdwatch.js.map +1 -1
  80. package/lib/commonjs/providers/movies/multimovies.js +2 -2
  81. package/lib/commonjs/providers/movies/multimovies.js.map +1 -1
  82. package/lib/commonjs/providers/movies/sflix.js.map +1 -1
  83. package/lib/commonjs/providers/movies/smashystream.js.map +1 -1
  84. package/lib/commonjs/providers/movies/turkish123.js.map +1 -1
  85. package/lib/commonjs/providers/movies/ummagurau.js.map +1 -1
  86. package/lib/commonjs/providers/movies/viewAsian.js.map +1 -1
  87. package/lib/commonjs/providers/news/animenewsnetwork.js.map +1 -1
  88. package/lib/commonjs/utils/providers-list.js +1 -1
  89. package/lib/commonjs/utils/providers-list.js.map +1 -1
  90. package/lib/commonjs/utils/queries.js.map +1 -1
  91. package/lib/commonjs/utils/utils.js.map +1 -1
  92. package/lib/module/extractors/asianload.js.map +1 -1
  93. package/lib/module/extractors/filemoon.js.map +1 -1
  94. package/lib/module/extractors/gogocdn.js.map +1 -1
  95. package/lib/module/extractors/kisskh/kkey.js.map +1 -1
  96. package/lib/module/extractors/kisskh/staticdata.js.map +1 -1
  97. package/lib/module/extractors/kwik.js.map +1 -1
  98. package/lib/module/extractors/megacloud/index.js.map +1 -1
  99. package/lib/module/extractors/megaup.js +1 -1
  100. package/lib/module/extractors/megaup.js.map +1 -1
  101. package/lib/module/extractors/mixdrop.js.map +1 -1
  102. package/lib/module/extractors/mp4player.js.map +1 -1
  103. package/lib/module/extractors/mp4upload.js.map +1 -1
  104. package/lib/module/extractors/rapidcloud.js.map +1 -1
  105. package/lib/module/extractors/smashystream.js.map +1 -1
  106. package/lib/module/extractors/streamhub.js.map +1 -1
  107. package/lib/module/extractors/streamlare.js.map +1 -1
  108. package/lib/module/extractors/streamsb.js.map +1 -1
  109. package/lib/module/extractors/streamwish.js +12 -15
  110. package/lib/module/extractors/streamwish.js.map +1 -1
  111. package/lib/module/extractors/vidcloud.js.map +1 -1
  112. package/lib/module/extractors/vidhide.js.map +1 -1
  113. package/lib/module/extractors/vidmoly.js.map +1 -1
  114. package/lib/module/extractors/vizcloud.js.map +1 -1
  115. package/lib/module/extractors/voe.js.map +1 -1
  116. package/lib/module/index.js.map +1 -1
  117. package/lib/module/models/anime-parser.js.map +1 -1
  118. package/lib/module/models/lightnovel-parser.js.map +1 -1
  119. package/lib/module/models/manga-parser.js.map +1 -1
  120. package/lib/module/models/movie-parser.js.map +1 -1
  121. package/lib/module/models/proxy.js.map +1 -1
  122. package/lib/module/models/video-extractor.js.map +1 -1
  123. package/lib/module/providers/anime/anify.js.map +1 -1
  124. package/lib/module/providers/anime/animedrive.js.map +1 -1
  125. package/lib/module/providers/anime/animefox.js.map +1 -1
  126. package/lib/module/providers/anime/animekai.js.map +1 -1
  127. package/lib/module/providers/anime/animepahe.js.map +1 -1
  128. package/lib/module/providers/anime/animesaturn.js.map +1 -1
  129. package/lib/module/providers/anime/animeunity.js.map +1 -1
  130. package/lib/module/providers/anime/anix.js.map +1 -1
  131. package/lib/module/providers/anime/bilibili.js.map +1 -1
  132. package/lib/module/providers/anime/gogoanime.js.map +1 -1
  133. package/lib/module/providers/anime/index.js +0 -4
  134. package/lib/module/providers/anime/index.js.map +1 -1
  135. package/lib/module/providers/anime/kickassanime.js.map +1 -1
  136. package/lib/module/providers/anime/marin.js.map +1 -1
  137. package/lib/module/providers/anime/monoschinos.js.map +1 -1
  138. package/lib/module/providers/anime/zoro.js +1 -1
  139. package/lib/module/providers/anime/zoro.js.map +1 -1
  140. package/lib/module/providers/comics/getComics.js.map +1 -1
  141. package/lib/module/providers/light-novels/novelupdates.js.map +1 -1
  142. package/lib/module/providers/light-novels/readlightnovels.js.map +1 -1
  143. package/lib/module/providers/manga/asurascans.js.map +1 -1
  144. package/lib/module/providers/manga/brmangas.js.map +1 -1
  145. package/lib/module/providers/manga/comick.js.map +1 -1
  146. package/lib/module/providers/manga/flamescans.js.map +1 -1
  147. package/lib/module/providers/manga/mangadex.js.map +1 -1
  148. package/lib/module/providers/manga/mangahere.js.map +1 -1
  149. package/lib/module/providers/manga/mangahost.js.map +1 -1
  150. package/lib/module/providers/manga/mangakakalot.js.map +1 -1
  151. package/lib/module/providers/manga/mangapark.js.map +1 -1
  152. package/lib/module/providers/manga/mangapill.js.map +1 -1
  153. package/lib/module/providers/manga/mangareader.js.map +1 -1
  154. package/lib/module/providers/manga/mangasee123.js.map +1 -1
  155. package/lib/module/providers/manga/readmanga.js.map +1 -1
  156. package/lib/module/providers/manga/vyvymanga.js.map +1 -1
  157. package/lib/module/providers/meta/anilist.js +88 -108
  158. package/lib/module/providers/meta/anilist.js.map +1 -1
  159. package/lib/module/providers/meta/mal.js +2 -28
  160. package/lib/module/providers/meta/mal.js.map +1 -1
  161. package/lib/module/providers/meta/tmdb.js +22 -1
  162. package/lib/module/providers/meta/tmdb.js.map +1 -1
  163. package/lib/module/providers/movies/dramacool.js.map +1 -1
  164. package/lib/module/providers/movies/flixhq.js.map +1 -1
  165. package/lib/module/providers/movies/fmovies.js.map +1 -1
  166. package/lib/module/providers/movies/goku.js.map +1 -1
  167. package/lib/module/providers/movies/kissasian.js.map +1 -1
  168. package/lib/module/providers/movies/moviehdwatch.js.map +1 -1
  169. package/lib/module/providers/movies/multimovies.js +2 -2
  170. package/lib/module/providers/movies/multimovies.js.map +1 -1
  171. package/lib/module/providers/movies/sflix.js.map +1 -1
  172. package/lib/module/providers/movies/smashystream.js.map +1 -1
  173. package/lib/module/providers/movies/turkish123.js.map +1 -1
  174. package/lib/module/providers/movies/ummagurau.js.map +1 -1
  175. package/lib/module/providers/movies/viewAsian.js.map +1 -1
  176. package/lib/module/providers/news/animenewsnetwork.js.map +1 -1
  177. package/lib/module/utils/providers-list.js +1 -1
  178. package/lib/module/utils/providers-list.js.map +1 -1
  179. package/lib/module/utils/queries.js.map +1 -1
  180. package/lib/module/utils/utils.js.map +1 -1
  181. package/lib/typescript/commonjs/src/extractors/asianload.d.ts.map +1 -1
  182. package/lib/typescript/commonjs/src/extractors/filemoon.d.ts.map +1 -1
  183. package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts.map +1 -1
  184. package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts.map +1 -1
  185. package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts.map +1 -1
  186. package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
  187. package/lib/typescript/commonjs/src/extractors/megacloud/index.d.ts.map +1 -1
  188. package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +1 -1
  189. package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts.map +1 -1
  190. package/lib/typescript/commonjs/src/extractors/mp4player.d.ts.map +1 -1
  191. package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts.map +1 -1
  192. package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts.map +1 -1
  193. package/lib/typescript/commonjs/src/extractors/smashystream.d.ts.map +1 -1
  194. package/lib/typescript/commonjs/src/extractors/streamhub.d.ts.map +1 -1
  195. package/lib/typescript/commonjs/src/extractors/streamlare.d.ts.map +1 -1
  196. package/lib/typescript/commonjs/src/extractors/streamsb.d.ts.map +1 -1
  197. package/lib/typescript/commonjs/src/extractors/streamwish.d.ts.map +1 -1
  198. package/lib/typescript/commonjs/src/extractors/vidcloud.d.ts.map +1 -1
  199. package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
  200. package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts.map +1 -1
  201. package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts.map +1 -1
  202. package/lib/typescript/commonjs/src/extractors/voe.d.ts.map +1 -1
  203. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  204. package/lib/typescript/commonjs/src/models/anime-parser.d.ts.map +1 -1
  205. package/lib/typescript/commonjs/src/models/lightnovel-parser.d.ts.map +1 -1
  206. package/lib/typescript/commonjs/src/models/manga-parser.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/src/models/movie-parser.d.ts.map +1 -1
  208. package/lib/typescript/commonjs/src/models/proxy.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/src/models/video-extractor.d.ts.map +1 -1
  210. package/lib/typescript/commonjs/src/providers/anime/anify.d.ts.map +1 -1
  211. package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts.map +1 -1
  212. package/lib/typescript/commonjs/src/providers/anime/animefox.d.ts.map +1 -1
  213. package/lib/typescript/commonjs/src/providers/anime/animekai.d.ts.map +1 -1
  214. package/lib/typescript/commonjs/src/providers/anime/animepahe.d.ts.map +1 -1
  215. package/lib/typescript/commonjs/src/providers/anime/animesaturn.d.ts.map +1 -1
  216. package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts.map +1 -1
  217. package/lib/typescript/commonjs/src/providers/anime/anix.d.ts.map +1 -1
  218. package/lib/typescript/commonjs/src/providers/anime/bilibili.d.ts.map +1 -1
  219. package/lib/typescript/commonjs/src/providers/anime/gogoanime.d.ts.map +1 -1
  220. package/lib/typescript/commonjs/src/providers/anime/index.d.ts +0 -4
  221. package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
  222. package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts.map +1 -1
  223. package/lib/typescript/commonjs/src/providers/anime/marin.d.ts.map +1 -1
  224. package/lib/typescript/commonjs/src/providers/anime/monoschinos.d.ts.map +1 -1
  225. package/lib/typescript/commonjs/src/providers/anime/zoro.d.ts.map +1 -1
  226. package/lib/typescript/commonjs/src/providers/comics/getComics.d.ts.map +1 -1
  227. package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts.map +1 -1
  228. package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
  230. package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/src/providers/manga/comick.d.ts.map +1 -1
  232. package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
  234. package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts.map +1 -1
  236. package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
  237. package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
  239. package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts.map +1 -1
  240. package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts.map +1 -1
  242. package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts +2 -3
  244. package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/src/providers/meta/mal.d.ts.map +1 -1
  246. package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
  247. package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts.map +1 -1
  248. package/lib/typescript/commonjs/src/providers/movies/flixhq.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/src/providers/movies/fmovies.d.ts.map +1 -1
  250. package/lib/typescript/commonjs/src/providers/movies/goku.d.ts.map +1 -1
  251. package/lib/typescript/commonjs/src/providers/movies/kissasian.d.ts.map +1 -1
  252. package/lib/typescript/commonjs/src/providers/movies/moviehdwatch.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/src/providers/movies/multimovies.d.ts.map +1 -1
  254. package/lib/typescript/commonjs/src/providers/movies/sflix.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/src/providers/movies/smashystream.d.ts.map +1 -1
  256. package/lib/typescript/commonjs/src/providers/movies/turkish123.d.ts.map +1 -1
  257. package/lib/typescript/commonjs/src/providers/movies/viewAsian.d.ts.map +1 -1
  258. package/lib/typescript/commonjs/src/providers/news/animenewsnetwork.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/src/utils/providers-list.d.ts +1 -1
  260. package/lib/typescript/commonjs/src/utils/providers-list.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/src/utils/queries.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/src/utils/utils.d.ts +1 -1
  263. package/lib/typescript/commonjs/src/utils/utils.d.ts.map +1 -1
  264. package/lib/typescript/module/src/extractors/asianload.d.ts.map +1 -1
  265. package/lib/typescript/module/src/extractors/filemoon.d.ts.map +1 -1
  266. package/lib/typescript/module/src/extractors/gogocdn.d.ts.map +1 -1
  267. package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts.map +1 -1
  268. package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts.map +1 -1
  269. package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
  270. package/lib/typescript/module/src/extractors/megacloud/index.d.ts.map +1 -1
  271. package/lib/typescript/module/src/extractors/megaup.d.ts.map +1 -1
  272. package/lib/typescript/module/src/extractors/mixdrop.d.ts.map +1 -1
  273. package/lib/typescript/module/src/extractors/mp4player.d.ts.map +1 -1
  274. package/lib/typescript/module/src/extractors/mp4upload.d.ts.map +1 -1
  275. package/lib/typescript/module/src/extractors/rapidcloud.d.ts.map +1 -1
  276. package/lib/typescript/module/src/extractors/smashystream.d.ts.map +1 -1
  277. package/lib/typescript/module/src/extractors/streamhub.d.ts.map +1 -1
  278. package/lib/typescript/module/src/extractors/streamlare.d.ts.map +1 -1
  279. package/lib/typescript/module/src/extractors/streamsb.d.ts.map +1 -1
  280. package/lib/typescript/module/src/extractors/streamwish.d.ts.map +1 -1
  281. package/lib/typescript/module/src/extractors/vidcloud.d.ts.map +1 -1
  282. package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
  283. package/lib/typescript/module/src/extractors/vidmoly.d.ts.map +1 -1
  284. package/lib/typescript/module/src/extractors/vizcloud.d.ts.map +1 -1
  285. package/lib/typescript/module/src/extractors/voe.d.ts.map +1 -1
  286. package/lib/typescript/module/src/index.d.ts.map +1 -1
  287. package/lib/typescript/module/src/models/anime-parser.d.ts.map +1 -1
  288. package/lib/typescript/module/src/models/lightnovel-parser.d.ts.map +1 -1
  289. package/lib/typescript/module/src/models/manga-parser.d.ts.map +1 -1
  290. package/lib/typescript/module/src/models/movie-parser.d.ts.map +1 -1
  291. package/lib/typescript/module/src/models/proxy.d.ts.map +1 -1
  292. package/lib/typescript/module/src/models/video-extractor.d.ts.map +1 -1
  293. package/lib/typescript/module/src/providers/anime/anify.d.ts.map +1 -1
  294. package/lib/typescript/module/src/providers/anime/animedrive.d.ts.map +1 -1
  295. package/lib/typescript/module/src/providers/anime/animefox.d.ts.map +1 -1
  296. package/lib/typescript/module/src/providers/anime/animekai.d.ts.map +1 -1
  297. package/lib/typescript/module/src/providers/anime/animepahe.d.ts.map +1 -1
  298. package/lib/typescript/module/src/providers/anime/animesaturn.d.ts.map +1 -1
  299. package/lib/typescript/module/src/providers/anime/animeunity.d.ts.map +1 -1
  300. package/lib/typescript/module/src/providers/anime/anix.d.ts.map +1 -1
  301. package/lib/typescript/module/src/providers/anime/bilibili.d.ts.map +1 -1
  302. package/lib/typescript/module/src/providers/anime/gogoanime.d.ts.map +1 -1
  303. package/lib/typescript/module/src/providers/anime/index.d.ts +0 -4
  304. package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
  305. package/lib/typescript/module/src/providers/anime/kickassanime.d.ts.map +1 -1
  306. package/lib/typescript/module/src/providers/anime/marin.d.ts.map +1 -1
  307. package/lib/typescript/module/src/providers/anime/monoschinos.d.ts.map +1 -1
  308. package/lib/typescript/module/src/providers/anime/zoro.d.ts.map +1 -1
  309. package/lib/typescript/module/src/providers/comics/getComics.d.ts.map +1 -1
  310. package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts.map +1 -1
  311. package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
  312. package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
  313. package/lib/typescript/module/src/providers/manga/brmangas.d.ts.map +1 -1
  314. package/lib/typescript/module/src/providers/manga/comick.d.ts.map +1 -1
  315. package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
  316. package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
  317. package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
  318. package/lib/typescript/module/src/providers/manga/mangahost.d.ts.map +1 -1
  319. package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
  320. package/lib/typescript/module/src/providers/manga/mangapark.d.ts.map +1 -1
  321. package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
  322. package/lib/typescript/module/src/providers/manga/mangareader.d.ts.map +1 -1
  323. package/lib/typescript/module/src/providers/manga/mangasee123.d.ts.map +1 -1
  324. package/lib/typescript/module/src/providers/manga/readmanga.d.ts.map +1 -1
  325. package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts.map +1 -1
  326. package/lib/typescript/module/src/providers/meta/anilist.d.ts +2 -3
  327. package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
  328. package/lib/typescript/module/src/providers/meta/mal.d.ts.map +1 -1
  329. package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
  330. package/lib/typescript/module/src/providers/movies/dramacool.d.ts.map +1 -1
  331. package/lib/typescript/module/src/providers/movies/flixhq.d.ts.map +1 -1
  332. package/lib/typescript/module/src/providers/movies/fmovies.d.ts.map +1 -1
  333. package/lib/typescript/module/src/providers/movies/goku.d.ts.map +1 -1
  334. package/lib/typescript/module/src/providers/movies/kissasian.d.ts.map +1 -1
  335. package/lib/typescript/module/src/providers/movies/moviehdwatch.d.ts.map +1 -1
  336. package/lib/typescript/module/src/providers/movies/multimovies.d.ts.map +1 -1
  337. package/lib/typescript/module/src/providers/movies/sflix.d.ts.map +1 -1
  338. package/lib/typescript/module/src/providers/movies/smashystream.d.ts.map +1 -1
  339. package/lib/typescript/module/src/providers/movies/turkish123.d.ts.map +1 -1
  340. package/lib/typescript/module/src/providers/movies/viewAsian.d.ts.map +1 -1
  341. package/lib/typescript/module/src/providers/news/animenewsnetwork.d.ts.map +1 -1
  342. package/lib/typescript/module/src/utils/providers-list.d.ts +1 -1
  343. package/lib/typescript/module/src/utils/providers-list.d.ts.map +1 -1
  344. package/lib/typescript/module/src/utils/queries.d.ts.map +1 -1
  345. package/lib/typescript/module/src/utils/utils.d.ts +1 -1
  346. package/lib/typescript/module/src/utils/utils.d.ts.map +1 -1
  347. package/package.json +5 -11
  348. package/react-native.config.js +12 -12
  349. package/src/extractors/asianload.ts +4 -13
  350. package/src/extractors/filemoon.ts +5 -13
  351. package/src/extractors/gogocdn.ts +12 -32
  352. package/src/extractors/kisskh/kkey.ts +6 -18
  353. package/src/extractors/kisskh/staticdata.ts +128 -196
  354. package/src/extractors/kwik.ts +1 -3
  355. package/src/extractors/megacloud/index.ts +9 -13
  356. package/src/extractors/megaup.ts +26 -42
  357. package/src/extractors/mixdrop.ts +1 -3
  358. package/src/extractors/mp4player.ts +3 -11
  359. package/src/extractors/mp4upload.ts +1 -3
  360. package/src/extractors/rapidcloud.ts +18 -56
  361. package/src/extractors/smashystream.ts +25 -65
  362. package/src/extractors/streamhub.ts +4 -12
  363. package/src/extractors/streamlare.ts +2 -7
  364. package/src/extractors/streamsb.ts +5 -12
  365. package/src/extractors/streamwish.ts +18 -35
  366. package/src/extractors/vidcloud.ts +8 -19
  367. package/src/extractors/vidhide.ts +3 -9
  368. package/src/extractors/vidmoly.ts +1 -4
  369. package/src/extractors/vizcloud.ts +1 -5
  370. package/src/extractors/voe.ts +3 -8
  371. package/src/index.ts +1 -9
  372. package/src/models/anime-parser.ts +3 -14
  373. package/src/models/lightnovel-parser.ts +2 -8
  374. package/src/models/manga-parser.ts +1 -4
  375. package/src/models/movie-parser.ts +4 -20
  376. package/src/models/proxy.ts +4 -9
  377. package/src/models/video-extractor.ts +1 -4
  378. package/src/providers/anime/anify.ts +20 -61
  379. package/src/providers/anime/animedrive.ts +24 -77
  380. package/src/providers/anime/animefox.ts +18 -64
  381. package/src/providers/anime/animekai.ts +51 -157
  382. package/src/providers/anime/animepahe.ts +24 -59
  383. package/src/providers/anime/animesaturn.ts +11 -37
  384. package/src/providers/anime/animeunity.ts +8 -26
  385. package/src/providers/anime/anix.ts +17 -57
  386. package/src/providers/anime/bilibili.ts +4 -15
  387. package/src/providers/anime/gogoanime.ts +61 -194
  388. package/src/providers/anime/index.ts +0 -4
  389. package/src/providers/anime/kickassanime.ts +2 -6
  390. package/src/providers/anime/marin.ts +6 -18
  391. package/src/providers/anime/monoschinos.ts +8 -25
  392. package/src/providers/anime/zoro.ts +77 -209
  393. package/src/providers/comics/getComics.ts +7 -27
  394. package/src/providers/light-novels/novelupdates.ts +17 -52
  395. package/src/providers/light-novels/readlightnovels.ts +17 -67
  396. package/src/providers/manga/asurascans.ts +17 -67
  397. package/src/providers/manga/brmangas.ts +6 -17
  398. package/src/providers/manga/comick.ts +19 -51
  399. package/src/providers/manga/flamescans.ts +12 -35
  400. package/src/providers/manga/mangadex.ts +25 -82
  401. package/src/providers/manga/mangahere.ts +17 -40
  402. package/src/providers/manga/mangahost.ts +8 -28
  403. package/src/providers/manga/mangakakalot.ts +19 -71
  404. package/src/providers/manga/mangapark.ts +8 -27
  405. package/src/providers/manga/mangapill.ts +10 -33
  406. package/src/providers/manga/mangareader.ts +8 -28
  407. package/src/providers/manga/mangasee123.ts +12 -40
  408. package/src/providers/manga/readmanga.ts +58 -134
  409. package/src/providers/manga/vyvymanga.ts +15 -33
  410. package/src/providers/meta/anilist.ts +568 -1062
  411. package/src/providers/meta/mal.ts +51 -250
  412. package/src/providers/meta/tmdb.ts +60 -94
  413. package/src/providers/movies/dramacool.ts +50 -146
  414. package/src/providers/movies/flixhq.ts +60 -207
  415. package/src/providers/movies/fmovies.ts +17 -62
  416. package/src/providers/movies/goku.ts +46 -178
  417. package/src/providers/movies/kissasian.ts +19 -64
  418. package/src/providers/movies/moviehdwatch.ts +61 -221
  419. package/src/providers/movies/multimovies.ts +47 -153
  420. package/src/providers/movies/sflix.ts +71 -234
  421. package/src/providers/movies/smashystream.ts +9 -30
  422. package/src/providers/movies/turkish123.ts +4 -20
  423. package/src/providers/movies/ummagurau.ts +8 -26
  424. package/src/providers/movies/viewAsian.ts +15 -45
  425. package/src/providers/news/animenewsnetwork.ts +11 -40
  426. package/src/utils/providers-list.ts +1 -11
  427. package/src/utils/queries.ts +5 -23
  428. package/src/utils/utils.ts +5 -21
  429. package/android/src/main/assets/crypto-js.js +0 -1
  430. package/android/src/main/assets/megacloud.decodedpng.js +0 -606
  431. package/android/src/main/assets/megacloud.getsrcs.js +0 -714
  432. package/lib/commonjs/extractors/megacloud/megacloud.decodedpng.js +0 -10
  433. package/lib/commonjs/extractors/megacloud/megacloud.decodedpng.js.map +0 -1
  434. package/lib/commonjs/extractors/megacloud/megacloud.getsrcs.js +0 -864
  435. package/lib/commonjs/extractors/megacloud/megacloud.getsrcs.js.map +0 -1
  436. package/lib/commonjs/providers/anime/9anime.js +0 -325
  437. package/lib/commonjs/providers/anime/9anime.js.map +0 -1
  438. package/lib/commonjs/providers/anime/crunchyroll.js +0 -92
  439. package/lib/commonjs/providers/anime/crunchyroll.js.map +0 -1
  440. package/lib/module/extractors/megacloud/megacloud.decodedpng.js +0 -6
  441. package/lib/module/extractors/megacloud/megacloud.decodedpng.js.map +0 -1
  442. package/lib/module/extractors/megacloud/megacloud.getsrcs.js +0 -864
  443. package/lib/module/extractors/megacloud/megacloud.getsrcs.js.map +0 -1
  444. package/lib/module/providers/anime/9anime.js +0 -323
  445. package/lib/module/providers/anime/9anime.js.map +0 -1
  446. package/lib/module/providers/anime/crunchyroll.js +0 -89
  447. package/lib/module/providers/anime/crunchyroll.js.map +0 -1
  448. package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.decodedpng.d.ts +0 -2
  449. package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.decodedpng.d.ts.map +0 -1
  450. package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.getsrcs.d.ts +0 -1
  451. package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.getsrcs.d.ts.map +0 -1
  452. package/lib/typescript/commonjs/src/providers/anime/9anime.d.ts +0 -26
  453. package/lib/typescript/commonjs/src/providers/anime/9anime.d.ts.map +0 -1
  454. package/lib/typescript/commonjs/src/providers/anime/crunchyroll.d.ts +0 -38
  455. package/lib/typescript/commonjs/src/providers/anime/crunchyroll.d.ts.map +0 -1
  456. package/lib/typescript/module/src/extractors/megacloud/megacloud.decodedpng.d.ts +0 -2
  457. package/lib/typescript/module/src/extractors/megacloud/megacloud.decodedpng.d.ts.map +0 -1
  458. package/lib/typescript/module/src/extractors/megacloud/megacloud.getsrcs.d.ts +0 -1
  459. package/lib/typescript/module/src/extractors/megacloud/megacloud.getsrcs.d.ts.map +0 -1
  460. package/lib/typescript/module/src/providers/anime/9anime.d.ts +0 -26
  461. package/lib/typescript/module/src/providers/anime/9anime.d.ts.map +0 -1
  462. package/lib/typescript/module/src/providers/anime/crunchyroll.d.ts +0 -38
  463. package/lib/typescript/module/src/providers/anime/crunchyroll.d.ts.map +0 -1
  464. package/src/extractors/megacloud/megacloud.decodedpng.ts +0 -846
  465. package/src/extractors/megacloud/megacloud.getsrcs.ts +0 -862
  466. package/src/providers/anime/9anime.ts +0 -465
  467. package/src/providers/anime/crunchyroll.ts +0 -151
@@ -1,12 +1,7 @@
1
1
  import { load } from 'cheerio';
2
2
  import CryptoJS from 'crypto-js';
3
3
  import { substringAfter, substringBefore } from '../utils';
4
- import {
5
- VideoExtractor,
6
- type IVideo,
7
- type ISubtitle,
8
- type Intro,
9
- } from '../models';
4
+ import { VideoExtractor, type IVideo, type ISubtitle, type Intro } from '../models';
10
5
 
11
6
  class RapidCloud extends VideoExtractor {
12
7
  protected override serverName = 'RapidCloud';
@@ -15,9 +10,7 @@ class RapidCloud extends VideoExtractor {
15
10
  private readonly fallbackKey = 'c1d17096f2ca11b7';
16
11
  private readonly host = 'https://rapid-cloud.co';
17
12
 
18
- override extract = async (
19
- videoUrl: URL
20
- ): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => {
13
+ override extract = async (videoUrl: URL): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => {
21
14
  const result: {
22
15
  sources: IVideo[];
23
16
  subtitles: ISubtitle[];
@@ -37,32 +30,18 @@ class RapidCloud extends VideoExtractor {
37
30
 
38
31
  let res = null;
39
32
 
40
- res = await this.client.get(
41
- `https://${videoUrl.hostname}/embed-2/ajax/e-1/getSources?id=${id}`,
42
- options
43
- );
33
+ res = await this.client.get(`https://${videoUrl.hostname}/embed-2/ajax/e-1/getSources?id=${id}`, options);
44
34
 
45
35
  let {
46
36
  data: { sources, tracks, intro, outro, encrypted },
47
37
  } = res;
48
38
 
49
- let decryptKey = await (
50
- await this.client.get(
51
- 'https://raw.githubusercontent.com/cinemaxhq/keys/e1/key'
52
- )
53
- ).data;
39
+ let decryptKey = await (await this.client.get('https://raw.githubusercontent.com/cinemaxhq/keys/e1/key')).data;
54
40
 
55
- decryptKey = substringBefore(
56
- substringAfter(decryptKey, '"blob-code blob-code-inner js-file-line">'),
57
- '</td>'
58
- );
41
+ decryptKey = substringBefore(substringAfter(decryptKey, '"blob-code blob-code-inner js-file-line">'), '</td>');
59
42
 
60
43
  if (!decryptKey) {
61
- decryptKey = await (
62
- await this.client.get(
63
- 'https://raw.githubusercontent.com/cinemaxhq/keys/e1/key'
64
- )
65
- ).data;
44
+ decryptKey = await (await this.client.get('https://raw.githubusercontent.com/cinemaxhq/keys/e1/key')).data;
66
45
  }
67
46
 
68
47
  if (!decryptKey) decryptKey = this.fallbackKey;
@@ -106,15 +85,10 @@ class RapidCloud extends VideoExtractor {
106
85
  const { data } = await this.client.get(source.file, options);
107
86
  const m3u8data = data
108
87
  .split('\n')
109
- .filter(
110
- (line: string) =>
111
- line.includes('.m3u8') && line.includes('RESOLUTION=')
112
- );
88
+ .filter((line: string) => line.includes('.m3u8') && line.includes('RESOLUTION='));
113
89
 
114
90
  const secondHalf = m3u8data.map((line: string) =>
115
- line
116
- .match(/RESOLUTION=.*,(C)|URI=.*/g)
117
- ?.map((s: string) => s.split('=')[1])
91
+ line.match(/RESOLUTION=.*,(C)|URI=.*/g)?.map((s: string) => s.split('=')[1])
118
92
  );
119
93
 
120
94
  const TdArray = secondHalf.map((s: string[]) => {
@@ -134,10 +108,8 @@ class RapidCloud extends VideoExtractor {
134
108
  }
135
109
  }
136
110
 
137
- result.intro =
138
- intro?.end > 1 ? { start: intro.start, end: intro.end } : undefined;
139
- result.outro =
140
- outro?.end > 1 ? { start: outro.start, end: outro.end } : undefined;
111
+ result.intro = intro?.end > 1 ? { start: intro.start, end: intro.end } : undefined;
112
+ result.outro = outro?.end > 1 ? { start: outro.start, end: outro.end } : undefined;
141
113
 
142
114
  result.sources.push({
143
115
  url: sources[0].file,
@@ -166,24 +138,17 @@ class RapidCloud extends VideoExtractor {
166
138
  const uri = new URL(url);
167
139
  const domain = uri.protocol + '//' + uri.host;
168
140
 
169
- const { data } = await this.client.get(
170
- `https://www.google.com/recaptcha/api.js?render=${key}`,
171
- {
172
- headers: {
173
- Referer: domain,
174
- },
175
- }
176
- );
141
+ const { data } = await this.client.get(`https://www.google.com/recaptcha/api.js?render=${key}`, {
142
+ headers: {
143
+ Referer: domain,
144
+ },
145
+ });
177
146
 
178
- const v = data
179
- ?.substring(data.indexOf('/releases/'), data.lastIndexOf('/recaptcha'))
180
- .split('/releases/')[1];
147
+ const v = data?.substring(data.indexOf('/releases/'), data.lastIndexOf('/recaptcha')).split('/releases/')[1];
181
148
 
182
149
  //TODO: NEED to fix the co (domain) parameter to work with every domain
183
150
  const anchor = `https://www.google.com/recaptcha/api2/anchor?ar=1&hl=en&size=invisible&cb=kr42069kr&k=${key}&co=aHR0cHM6Ly9yYXBpZC1jbG91ZC5ydTo0NDM.&v=${v}`;
184
- const c = load((await this.client.get(anchor)).data)(
185
- '#recaptcha-token'
186
- ).attr('value');
151
+ const c = load((await this.client.get(anchor)).data)('#recaptcha-token').attr('value');
187
152
 
188
153
  // currently its not returning proper response. not sure why
189
154
  const res = await this.client.post(
@@ -203,10 +168,7 @@ class RapidCloud extends VideoExtractor {
203
168
  }
204
169
  );
205
170
 
206
- return res.data.substring(
207
- res.data.indexOf('rresp","'),
208
- res.data.lastIndexOf('",null')
209
- );
171
+ return res.data.substring(res.data.indexOf('rresp","'), res.data.lastIndexOf('",null'));
210
172
  };
211
173
 
212
174
  // private wss = async (): Promise<string> => {
@@ -10,9 +10,7 @@ class SmashyStream extends VideoExtractor {
10
10
 
11
11
  private readonly host = 'https://embed.smashystream.com';
12
12
 
13
- override extract = async (
14
- videoUrl: URL
15
- ): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => {
13
+ override extract = async (videoUrl: URL): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => {
16
14
  try {
17
15
  const result: {
18
16
  source: string;
@@ -91,9 +89,7 @@ class SmashyStream extends VideoExtractor {
91
89
  }
92
90
  };
93
91
 
94
- async extractSmashyFfix(
95
- url: string
96
- ): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> {
92
+ async extractSmashyFfix(url: string): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> {
97
93
  try {
98
94
  const result: { sources: IVideo[]; subtitles: ISubtitle[] } = {
99
95
  sources: [],
@@ -105,25 +101,19 @@ class SmashyStream extends VideoExtractor {
105
101
  referer: url,
106
102
  },
107
103
  });
108
- const config = JSON.parse(
109
- res.data.match(/var\s+config\s*=\s*({.*?});/)[1]
110
- );
104
+ const config = JSON.parse(res.data.match(/var\s+config\s*=\s*({.*?});/)[1]);
111
105
 
112
106
  const files = config.file
113
107
  .match(/\[([^\]]+)\](https?:\/\/\S+?)(?=,\[|$)/g)
114
108
  .map((entry: { match: (arg0: RegExp) => [string, string, string] }) => {
115
- const [, quality, link] = entry.match(
116
- /\[([^\]]+)\](https?:\/\/\S+?)(?=,\[|$)/
117
- );
109
+ const [, quality, link] = entry.match(/\[([^\]]+)\](https?:\/\/\S+?)(?=,\[|$)/);
118
110
  return { quality, link: link.replace(',', '') };
119
111
  });
120
112
 
121
113
  const vttArray = config.subtitle
122
114
  .match(/\[([^\]]+)\](https?:\/\/\S+?)(?=,\[|$)/g)
123
115
  .map((entry: { match: (arg0: RegExp) => [string, string, string] }) => {
124
- const [, language, link] = entry.match(
125
- /\[([^\]]+)\](https?:\/\/\S+?)(?=,\[|$)/
126
- );
116
+ const [, language, link] = entry.match(/\[([^\]]+)\](https?:\/\/\S+?)(?=,\[|$)/);
127
117
  return { language, link: link.replace(',', '') };
128
118
  });
129
119
 
@@ -148,9 +138,7 @@ class SmashyStream extends VideoExtractor {
148
138
  }
149
139
  }
150
140
 
151
- async extractSmashyWatchX(
152
- url: string
153
- ): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> {
141
+ async extractSmashyWatchX(url: string): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> {
154
142
  try {
155
143
  const result: { sources: IVideo[]; subtitles: ISubtitle[] } = {
156
144
  sources: [],
@@ -173,37 +161,24 @@ class SmashyStream extends VideoExtractor {
173
161
  }
174
162
 
175
163
  const base64EncryptedData = regexMatch[1];
176
- const base64DecryptedData = JSON.parse(
177
- Buffer.from(base64EncryptedData, 'base64').toString('utf8')
178
- );
164
+ const base64DecryptedData = JSON.parse(Buffer.from(base64EncryptedData, 'base64').toString('utf8'));
179
165
 
180
- const derivedKey = CryptoJS.PBKDF2(
181
- key,
182
- CryptoJS.enc.Hex.parse(base64DecryptedData.salt),
183
- {
184
- keySize: 32 / 4,
185
- iterations: base64DecryptedData.iterations,
186
- hasher: CryptoJS.algo.SHA512,
187
- }
188
- );
189
- const decipher = CryptoJS.AES.decrypt(
190
- base64DecryptedData.ciphertext,
191
- derivedKey,
192
- {
193
- iv: CryptoJS.enc.Hex.parse(base64DecryptedData.iv),
194
- mode: CryptoJS.mode.CBC,
195
- padding: CryptoJS.pad.Pkcs7,
196
- }
197
- );
166
+ const derivedKey = CryptoJS.PBKDF2(key, CryptoJS.enc.Hex.parse(base64DecryptedData.salt), {
167
+ keySize: 32 / 4,
168
+ iterations: base64DecryptedData.iterations,
169
+ hasher: CryptoJS.algo.SHA512,
170
+ });
171
+ const decipher = CryptoJS.AES.decrypt(base64DecryptedData.ciphertext, derivedKey, {
172
+ iv: CryptoJS.enc.Hex.parse(base64DecryptedData.iv),
173
+ mode: CryptoJS.mode.CBC,
174
+ padding: CryptoJS.pad.Pkcs7,
175
+ });
198
176
  const decrypted = decipher.toString(CryptoJS.enc.Utf8);
199
177
 
200
178
  const sources = JSON.parse(decrypted.match(/sources: ([^\]]*\])/)![1]!);
201
179
  const tracks = JSON.parse(decrypted.match(/tracks: ([^]*?\}\])/)![1]!);
202
180
 
203
- const subtitles = tracks.filter(
204
- (it: { file: string; label: string; kind: string }) =>
205
- it.kind === 'captions'
206
- );
181
+ const subtitles = tracks.filter((it: { file: string; label: string; kind: string }) => it.kind === 'captions');
207
182
 
208
183
  sources.map((source: { file: string; label: string }) => {
209
184
  result.sources.push({
@@ -226,9 +201,7 @@ class SmashyStream extends VideoExtractor {
226
201
  }
227
202
  }
228
203
 
229
- async extractSmashyNFlim(
230
- url: string
231
- ): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> {
204
+ async extractSmashyNFlim(url: string): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> {
232
205
  try {
233
206
  const result: { sources: IVideo[]; subtitles: ISubtitle[] } = {
234
207
  sources: [],
@@ -247,18 +220,14 @@ class SmashyStream extends VideoExtractor {
247
220
  const files = config?.file
248
221
  .match(/\[([^\]]+)\](https?:\/\/\S+?)(?=,\[|$)/g)
249
222
  .map((entry: { match: (arg0: RegExp) => [string, string, string] }) => {
250
- const [, quality, link] = entry.match(
251
- /\[([^\]]+)\](https?:\/\/\S+?)(?=,\[|$)/
252
- );
223
+ const [, quality, link] = entry.match(/\[([^\]]+)\](https?:\/\/\S+?)(?=,\[|$)/);
253
224
  return { quality, link: link.replace(',', '') };
254
225
  });
255
226
 
256
227
  const vttArray = config?.subtitle
257
228
  .match(/\[([^\]]+)\](https?:\/\/\S+?)(?=,\[|$)/g)
258
229
  .map((entry: { match: (arg0: RegExp) => [string, string, string] }) => {
259
- const [, language, link] = entry.match(
260
- /\[([^\]]+)\](https?:\/\/\S+?)(?=,\[|$)/
261
- );
230
+ const [, language, link] = entry.match(/\[([^\]]+)\](https?:\/\/\S+?)(?=,\[|$)/);
262
231
  return { language, link: link.replace(',', '') };
263
232
  });
264
233
 
@@ -272,10 +241,7 @@ class SmashyStream extends VideoExtractor {
272
241
  .then((res) => console.log(res.status))
273
242
  .catch((err) => {
274
243
  if (err.response.status.status !== 200) {
275
- validFiles = validFiles.filter(
276
- (obj: { link: string; quality: string }) =>
277
- obj.link !== source.link
278
- );
244
+ validFiles = validFiles.filter((obj: { link: string; quality: string }) => obj.link !== source.link);
279
245
  }
280
246
  });
281
247
  })
@@ -307,9 +273,7 @@ class SmashyStream extends VideoExtractor {
307
273
  }
308
274
  }
309
275
 
310
- async extractSmashyFX(
311
- url: string
312
- ): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> {
276
+ async extractSmashyFX(url: string): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> {
313
277
  try {
314
278
  const result: { sources: IVideo[]; subtitles: ISubtitle[] } = {
315
279
  sources: [],
@@ -335,9 +299,7 @@ class SmashyStream extends VideoExtractor {
335
299
  }
336
300
  }
337
301
 
338
- async extractSmashyCF(
339
- url: string
340
- ): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> {
302
+ async extractSmashyCF(url: string): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> {
341
303
  try {
342
304
  const result: { sources: IVideo[]; subtitles: ISubtitle[] } = {
343
305
  sources: [],
@@ -367,9 +329,7 @@ class SmashyStream extends VideoExtractor {
367
329
  }
368
330
  }
369
331
 
370
- async extractSmashyEEMovie(
371
- url: string
372
- ): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> {
332
+ async extractSmashyEEMovie(url: string): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> {
373
333
  try {
374
334
  const result: { sources: IVideo[]; subtitles: ISubtitle[] } = {
375
335
  sources: [],
@@ -4,9 +4,7 @@ class StreamHub extends VideoExtractor {
4
4
  protected override serverName = 'StreamHub';
5
5
  protected override sources: IVideo[] = [];
6
6
 
7
- override extract = async (
8
- videoUrl: URL
9
- ): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => {
7
+ override extract = async (videoUrl: URL): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => {
10
8
  try {
11
9
  const result: { sources: IVideo[]; subtitles: ISubtitle[] } = {
12
10
  sources: [],
@@ -17,12 +15,9 @@ class StreamHub extends VideoExtractor {
17
15
  throw new Error('Video not found');
18
16
  });
19
17
 
20
- const unpackedData = eval(
21
- /(eval)(\(f.*?)(\n<\/script>)/s.exec(data)![2]!.replace('eval', '')
22
- );
18
+ const unpackedData = eval(/(eval)(\(f.*?)(\n<\/script>)/s.exec(data)![2]!.replace('eval', ''));
23
19
 
24
- const links =
25
- unpackedData.match(new RegExp('sources:\\[\\{src:"(.*?)"')) ?? [];
20
+ const links = unpackedData.match(new RegExp('sources:\\[\\{src:"(.*?)"')) ?? [];
26
21
  const m3u8Content = await this.client.get(links[1], {
27
22
  headers: {
28
23
  Referer: links[1],
@@ -41,10 +36,7 @@ class StreamHub extends VideoExtractor {
41
36
  if (!video.includes('m3u8')) continue;
42
37
 
43
38
  const url = video.split('\n')[1];
44
- const quality = video
45
- .split('RESOLUTION=')[1]
46
- .split(',')[0]
47
- .split('x')[1];
39
+ const quality = video.split('RESOLUTION=')[1].split(',')[0].split('x')[1];
48
40
 
49
41
  result.sources.push({
50
42
  url: url,
@@ -13,17 +13,12 @@ class StreamLare extends VideoExtractor {
13
13
  private readonly USER_AGENT =
14
14
  'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36';
15
15
 
16
- async extract(
17
- videoUrl: URL,
18
- userAgent: string = this.USER_AGENT.toString()
19
- ): Promise<IVideo[] | ISource> {
16
+ async extract(videoUrl: URL, userAgent: string = this.USER_AGENT.toString()): Promise<IVideo[] | ISource> {
20
17
  const res = await this.client.get(videoUrl.href);
21
18
 
22
19
  const $ = load(res.data);
23
20
 
24
- const CSRF_TOKEN = $('head > meta:nth-child(3)')
25
- .attr('content')
26
- ?.toString();
21
+ const CSRF_TOKEN = $('head > meta:nth-child(3)').attr('content')?.toString();
27
22
 
28
23
  const videoId = videoUrl.href.match(this.regex)![1];
29
24
 
@@ -12,10 +12,7 @@ class StreamSB extends VideoExtractor {
12
12
  private PAYLOAD = (hex: string) =>
13
13
  `566d337678566f743674494a7c7c${hex}7c7c346b6767586d6934774855537c7c73747265616d7362/6565417268755339773461447c7c346133383438333436313335376136323337373433383634376337633465366534393338373136643732373736343735373237613763376334363733353737303533366236333463353333363534366137633763373337343732363536313664373336327c7c6b586c3163614468645a47617c7c73747265616d7362`;
14
14
 
15
- override extract = async (
16
- videoUrl: URL,
17
- isAlt: boolean = false
18
- ): Promise<IVideo[]> => {
15
+ override extract = async (videoUrl: URL, isAlt: boolean = false): Promise<IVideo[]> => {
19
16
  let headers: any = {
20
17
  'watchsb': 'sbstream',
21
18
  'User-Agent': USER_AGENT,
@@ -26,16 +23,12 @@ class StreamSB extends VideoExtractor {
26
23
  const bytes = new TextEncoder().encode(id);
27
24
 
28
25
  const res = await this.client
29
- .get(
30
- `${isAlt ? this.host2 : this.host}/${this.PAYLOAD(Buffer.from(bytes).toString('hex'))}`,
31
- {
32
- headers,
33
- }
34
- )
26
+ .get(`${isAlt ? this.host2 : this.host}/${this.PAYLOAD(Buffer.from(bytes).toString('hex'))}`, {
27
+ headers,
28
+ })
35
29
  .catch(() => null);
36
30
 
37
- if (!res?.data.stream_data)
38
- throw new Error('No source found. Try a different server.');
31
+ if (!res?.data.stream_data) throw new Error('No source found. Try a different server.');
39
32
 
40
33
  headers = {
41
34
  'User-Agent': USER_AGENT,
@@ -5,9 +5,7 @@ class StreamWish extends VideoExtractor {
5
5
  protected override serverName = 'streamwish';
6
6
  protected override sources: IVideo[] = [];
7
7
 
8
- override extract = async (
9
- videoUrl: URL
10
- ): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => {
8
+ override extract = async (videoUrl: URL): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => {
11
9
  try {
12
10
  const options = {
13
11
  headers: {
@@ -19,8 +17,7 @@ class StreamWish extends VideoExtractor {
19
17
  'Priority': 'u=0, i',
20
18
  'Origin': videoUrl.origin,
21
19
  'Referer': videoUrl.origin,
22
- 'Sec-Ch-Ua':
23
- '"Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"',
20
+ 'Sec-Ch-Ua': '"Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"',
24
21
  'Sec-Ch-Ua-Mobile': '?0',
25
22
  'Sec-Ch-Ua-Platform': 'Windows',
26
23
  'Sec-Fetch-Dest': 'document',
@@ -36,8 +33,7 @@ class StreamWish extends VideoExtractor {
36
33
  // Code adapted from Zenda-Cross (https://github.com/Zenda-Cross/vega-app/blob/main/src/lib/providers/multi/multiGetStream.ts)
37
34
  // Thank you to Zenda-Cross for the original implementation.
38
35
 
39
- const functionRegex =
40
- /eval\(function\((.*?)\)\{.*?return p\}.*?\('(.*?)'\.split/;
36
+ const functionRegex = /eval\(function\((.*?)\)\{.*?return p\}.*?\('(.*?)'\.split/;
41
37
  const match = functionRegex.exec(data);
42
38
  let p = '';
43
39
  if (match) {
@@ -59,11 +55,9 @@ class StreamWish extends VideoExtractor {
59
55
  } else {
60
56
  console.log('No match found');
61
57
  }
62
- const links = p.match(/file:\s*"([^"]+\.m3u8[^"]*)"/) ?? [];
63
- const subtitleMatches =
64
- p?.match(
65
- /{file:"([^"]+)",(label:"([^"]+)",)?kind:"(thumbnails|captions)"/g
66
- ) ?? [];
58
+ let link = p.match(/https?:\/\/[^"]+?\.m3u8[^"]*/)![0];
59
+ // console.log('Decoded Links:', link);
60
+ const subtitleMatches = p?.match(/{file:"([^"]+)",(label:"([^"]+)",)?kind:"(thumbnails|captions)"/g) ?? [];
67
61
  // console.log(subtitleMatches, 'subtitleMatches');
68
62
  const subtitles: ISubtitle[] = subtitleMatches.map((sub) => {
69
63
  const lang = sub?.match(/label:"([^"]+)"/)?.[1] ?? '';
@@ -80,38 +74,27 @@ class StreamWish extends VideoExtractor {
80
74
  url: url,
81
75
  };
82
76
  });
83
- let lastLink: string | null = null;
84
- links.forEach((link: string) => {
85
- if (link.includes('file:"')) {
86
- link = link.replace('file:"', '').replace(new RegExp('"', 'g'), '');
87
- }
88
- const linkParser = new URL(link);
89
- linkParser.searchParams.set('i', '0.4');
90
- this.sources.push({
91
- quality: lastLink! ? 'backup' : 'default',
92
- url: linkParser.href,
93
- isM3U8: link.includes('.m3u8'),
94
- });
95
- lastLink = link;
77
+ if (link.includes('hls2"')) {
78
+ link = link.replace('hls2"', '').replace(new RegExp('"', 'g'), '');
79
+ }
80
+ const linkParser = new URL(link);
81
+ linkParser.searchParams.set('i', '0.4');
82
+ this.sources.push({
83
+ quality: 'default',
84
+ url: linkParser.href,
85
+ isM3U8: link.includes('.m3u8'),
96
86
  });
97
87
 
98
88
  try {
99
- const m3u8Content = await this.client.get(
100
- this.sources[0]!.url,
101
- options
102
- );
89
+ const m3u8Content = await this.client.get(this.sources[0]!.url, options);
103
90
 
104
91
  if (m3u8Content.data.includes('EXTM3U')) {
105
92
  const videoList = m3u8Content.data.split('#EXT-X-STREAM-INF:');
106
93
  for (const video of videoList ?? []) {
107
94
  if (!video.includes('m3u8')) continue;
108
95
 
109
- const url =
110
- links[1]?.split('master.m3u8')[0] + video.split('\n')[1];
111
- const quality = video
112
- .split('RESOLUTION=')[1]
113
- .split(',')[0]
114
- .split('x')[1];
96
+ const url = link.split('master.m3u8')[0] + video.split('\n')[1];
97
+ const quality = video.split('RESOLUTION=')[1].split(',')[0].split('x')[1];
115
98
 
116
99
  this.sources.push({
117
100
  url: url,
@@ -1,9 +1,4 @@
1
- import {
2
- VideoExtractor,
3
- type IVideo,
4
- type ISubtitle,
5
- type Intro,
6
- } from '../models';
1
+ import { VideoExtractor, type IVideo, type ISubtitle, type Intro } from '../models';
7
2
  import { USER_AGENT } from '../utils';
8
3
  import Consumet from '../NativeConsumet';
9
4
 
@@ -16,11 +11,10 @@ class VidCloud extends VideoExtractor {
16
11
  _?: boolean,
17
12
  referer: string = 'https://flixhq.to/'
18
13
  ): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => {
19
- const result: { sources: IVideo[]; subtitles: ISubtitle[]; intro?: Intro } =
20
- {
21
- sources: [],
22
- subtitles: [],
23
- };
14
+ const result: { sources: IVideo[]; subtitles: ISubtitle[]; intro?: Intro } = {
15
+ sources: [],
16
+ subtitles: [],
17
+ };
24
18
  try {
25
19
  const options = {
26
20
  headers: {
@@ -50,12 +44,8 @@ class VidCloud extends VideoExtractor {
50
44
  const { data } = await this.client.get(source.file, options);
51
45
  const urls = data
52
46
  .split('\n')
53
- .filter(
54
- (line: string) => line.includes('.m3u8') || line.endsWith('m3u8')
55
- ) as string[];
56
- const qualities = data
57
- .split('\n')
58
- .filter((line: string) => line.includes('RESOLUTION=')) as string[];
47
+ .filter((line: string) => line.includes('.m3u8') || line.endsWith('m3u8')) as string[];
48
+ const qualities = data.split('\n').filter((line: string) => line.includes('RESOLUTION=')) as string[];
59
49
 
60
50
  const TdArray = qualities.map((s, i) => {
61
51
  const f1 = s.split('x')[1];
@@ -76,8 +66,7 @@ class VidCloud extends VideoExtractor {
76
66
 
77
67
  result.sources.push({
78
68
  url: sources[0].file,
79
- isM3U8:
80
- sources[0].file.includes('.m3u8') || sources[0].file.endsWith('m3u8'),
69
+ isM3U8: sources[0].file.includes('.m3u8') || sources[0].file.endsWith('m3u8'),
81
70
  quality: 'auto',
82
71
  });
83
72
 
@@ -15,11 +15,8 @@ class VidHide extends VideoExtractor {
15
15
  throw new Error('Video not found');
16
16
  });
17
17
 
18
- const unpackedData = eval(
19
- /(eval)(\(f.*?)(\n<\/script>)/s.exec(data)![2]!.replace('eval', '')
20
- );
21
- const links =
22
- unpackedData.match(new RegExp('sources:\\[\\{file:"(.*?)"')) ?? [];
18
+ const unpackedData = eval(/(eval)(\(f.*?)(\n<\/script>)/s.exec(data)![2]!.replace('eval', ''));
19
+ const links = unpackedData.match(new RegExp('sources:\\[\\{file:"(.*?)"')) ?? [];
23
20
  const m3u8Link = links[1];
24
21
  const m3u8Content = await this.client.get(m3u8Link, {
25
22
  headers: {
@@ -40,10 +37,7 @@ class VidHide extends VideoExtractor {
40
37
  if (!video.includes('m3u8')) continue;
41
38
 
42
39
  const url = video.split('\n')[1];
43
- const quality = video
44
- .split('RESOLUTION=')[1]
45
- ?.split(',')[0]
46
- .split('x')[1];
40
+ const quality = video.split('RESOLUTION=')[1]?.split(',')[0].split('x')[1];
47
41
 
48
42
  result.sources.push({
49
43
  url: `${pathWithoutMaster}/${url}`,
@@ -28,10 +28,7 @@ class VidMoly extends VideoExtractor {
28
28
  if (!video.includes('m3u8')) continue;
29
29
 
30
30
  const url = video.split('\n')[1];
31
- const quality = video
32
- .split('RESOLUTION=')[1]
33
- .split(',')[0]
34
- .split('x')[1];
31
+ const quality = video.split('RESOLUTION=')[1].split(',')[0].split('x')[1];
35
32
 
36
33
  this.sources.push({
37
34
  url: url,
@@ -21,11 +21,7 @@ class VizCloud extends VideoExtractor {
21
21
  post: [],
22
22
  };
23
23
 
24
- override extract = async (
25
- videoUrl: URL,
26
- vizCloudHelper: string,
27
- apiKey: string
28
- ): Promise<IVideo[]> => {
24
+ override extract = async (videoUrl: URL, vizCloudHelper: string, apiKey: string): Promise<IVideo[]> => {
29
25
  const vizID: Array<string> = videoUrl.href.split('/');
30
26
  let url;
31
27
  if (!vizID.length) {
@@ -8,17 +8,13 @@ class Voe extends VideoExtractor {
8
8
 
9
9
  private readonly domains = ['voe.sx'];
10
10
 
11
- override extract = async (
12
- videoUrl: URL
13
- ): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => {
11
+ override extract = async (videoUrl: URL): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => {
14
12
  try {
15
13
  const res = await this.client.get(videoUrl.href);
16
14
  const $ = load(res.data);
17
15
  const scriptContent = $('script').html();
18
16
  const pageUrl = scriptContent
19
- ? (scriptContent.match(
20
- /window\.location\.href\s*=\s*'(https:\/\/[^']+)';/
21
- )?.[1] ?? '')
17
+ ? (scriptContent.match(/window\.location\.href\s*=\s*'(https:\/\/[^']+)';/)?.[1] ?? '')
22
18
  : '';
23
19
 
24
20
  const { data } = await this.client.get(pageUrl);
@@ -26,8 +22,7 @@ class Voe extends VideoExtractor {
26
22
  const bodyHtml = $$('body').html() || '';
27
23
  const url = bodyHtml.match(/'hls'\s*:\s*'([^']+)'/s)?.[1] || '';
28
24
 
29
- const subtitleRegex =
30
- /<track\s+kind="subtitles"\s+label="([^"]+)"\s+srclang="([^"]+)"\s+src="([^"]+)"/g;
25
+ const subtitleRegex = /<track\s+kind="subtitles"\s+label="([^"]+)"\s+srclang="([^"]+)"\s+src="([^"]+)"/g;
31
26
  let subtitles: ISubtitle[] = [];
32
27
  let match;
33
28
  while ((match = subtitleRegex.exec(bodyHtml)) !== null) {
package/src/index.ts CHANGED
@@ -3,15 +3,7 @@ import Consumet from './NativeConsumet';
3
3
  export function getSources(s: string): Promise<string> {
4
4
  return Consumet.getSources(s);
5
5
  }
6
- import {
7
- ANIME,
8
- COMICS,
9
- LIGHT_NOVELS,
10
- MANGA,
11
- MOVIES,
12
- META,
13
- NEWS,
14
- } from './providers';
6
+ import { ANIME, COMICS, LIGHT_NOVELS, MANGA, MOVIES, META, NEWS } from './providers';
15
7
  import { PROVIDERS_LIST } from './utils/providers-list';
16
8
  import {
17
9
  AsianLoad,