react-native-consumet 0.2.2 → 0.3.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 (452) hide show
  1. package/README.md +1 -1
  2. package/android/src/main/assets/megacloud.decodedpng.js +605 -605
  3. package/android/src/main/assets/megacloud.getsrcs.js +713 -713
  4. package/lib/commonjs/extractors/asianload.js.map +1 -1
  5. package/lib/commonjs/extractors/filemoon.js.map +1 -1
  6. package/lib/commonjs/extractors/gogocdn.js.map +1 -1
  7. package/lib/commonjs/extractors/kisskh/kkey.js.map +1 -1
  8. package/lib/commonjs/extractors/kisskh/staticdata.js.map +1 -1
  9. package/lib/commonjs/extractors/kwik.js.map +1 -1
  10. package/lib/commonjs/extractors/megacloud/index.js.map +1 -1
  11. package/lib/commonjs/extractors/megacloud/megacloud.decodedpng.js.map +1 -1
  12. package/lib/commonjs/extractors/megaup.js +1 -1
  13. package/lib/commonjs/extractors/megaup.js.map +1 -1
  14. package/lib/commonjs/extractors/mixdrop.js.map +1 -1
  15. package/lib/commonjs/extractors/mp4player.js.map +1 -1
  16. package/lib/commonjs/extractors/mp4upload.js.map +1 -1
  17. package/lib/commonjs/extractors/rapidcloud.js.map +1 -1
  18. package/lib/commonjs/extractors/smashystream.js.map +1 -1
  19. package/lib/commonjs/extractors/streamhub.js.map +1 -1
  20. package/lib/commonjs/extractors/streamlare.js.map +1 -1
  21. package/lib/commonjs/extractors/streamsb.js.map +1 -1
  22. package/lib/commonjs/extractors/streamwish.js +12 -15
  23. package/lib/commonjs/extractors/streamwish.js.map +1 -1
  24. package/lib/commonjs/extractors/vidcloud.js.map +1 -1
  25. package/lib/commonjs/extractors/vidhide.js.map +1 -1
  26. package/lib/commonjs/extractors/vidmoly.js.map +1 -1
  27. package/lib/commonjs/extractors/vizcloud.js.map +1 -1
  28. package/lib/commonjs/extractors/voe.js.map +1 -1
  29. package/lib/commonjs/index.js.map +1 -1
  30. package/lib/commonjs/models/anime-parser.js.map +1 -1
  31. package/lib/commonjs/models/lightnovel-parser.js.map +1 -1
  32. package/lib/commonjs/models/manga-parser.js.map +1 -1
  33. package/lib/commonjs/models/movie-parser.js.map +1 -1
  34. package/lib/commonjs/models/proxy.js.map +1 -1
  35. package/lib/commonjs/models/video-extractor.js.map +1 -1
  36. package/lib/commonjs/providers/anime/anify.js.map +1 -1
  37. package/lib/commonjs/providers/anime/animedrive.js.map +1 -1
  38. package/lib/commonjs/providers/anime/animefox.js.map +1 -1
  39. package/lib/commonjs/providers/anime/animekai.js.map +1 -1
  40. package/lib/commonjs/providers/anime/animepahe.js.map +1 -1
  41. package/lib/commonjs/providers/anime/animesaturn.js.map +1 -1
  42. package/lib/commonjs/providers/anime/animeunity.js.map +1 -1
  43. package/lib/commonjs/providers/anime/anix.js.map +1 -1
  44. package/lib/commonjs/providers/anime/bilibili.js.map +1 -1
  45. package/lib/commonjs/providers/anime/gogoanime.js.map +1 -1
  46. package/lib/commonjs/providers/anime/index.js +0 -4
  47. package/lib/commonjs/providers/anime/index.js.map +1 -1
  48. package/lib/commonjs/providers/anime/kickassanime.js.map +1 -1
  49. package/lib/commonjs/providers/anime/marin.js.map +1 -1
  50. package/lib/commonjs/providers/anime/monoschinos.js.map +1 -1
  51. package/lib/commonjs/providers/anime/zoro.js +1 -1
  52. package/lib/commonjs/providers/anime/zoro.js.map +1 -1
  53. package/lib/commonjs/providers/comics/getComics.js.map +1 -1
  54. package/lib/commonjs/providers/light-novels/novelupdates.js.map +1 -1
  55. package/lib/commonjs/providers/light-novels/readlightnovels.js.map +1 -1
  56. package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
  57. package/lib/commonjs/providers/manga/brmangas.js.map +1 -1
  58. package/lib/commonjs/providers/manga/comick.js.map +1 -1
  59. package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
  60. package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
  61. package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
  62. package/lib/commonjs/providers/manga/mangahost.js.map +1 -1
  63. package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
  64. package/lib/commonjs/providers/manga/mangapark.js.map +1 -1
  65. package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
  66. package/lib/commonjs/providers/manga/mangareader.js.map +1 -1
  67. package/lib/commonjs/providers/manga/mangasee123.js.map +1 -1
  68. package/lib/commonjs/providers/manga/readmanga.js.map +1 -1
  69. package/lib/commonjs/providers/manga/vyvymanga.js.map +1 -1
  70. package/lib/commonjs/providers/meta/anilist.js +86 -106
  71. package/lib/commonjs/providers/meta/anilist.js.map +1 -1
  72. package/lib/commonjs/providers/meta/mal.js +2 -28
  73. package/lib/commonjs/providers/meta/mal.js.map +1 -1
  74. package/lib/commonjs/providers/meta/tmdb.js +22 -1
  75. package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
  76. package/lib/commonjs/providers/movies/dramacool.js.map +1 -1
  77. package/lib/commonjs/providers/movies/flixhq.js.map +1 -1
  78. package/lib/commonjs/providers/movies/fmovies.js.map +1 -1
  79. package/lib/commonjs/providers/movies/goku.js.map +1 -1
  80. package/lib/commonjs/providers/movies/kissasian.js.map +1 -1
  81. package/lib/commonjs/providers/movies/moviehdwatch.js.map +1 -1
  82. package/lib/commonjs/providers/movies/multimovies.js +2 -2
  83. package/lib/commonjs/providers/movies/multimovies.js.map +1 -1
  84. package/lib/commonjs/providers/movies/sflix.js.map +1 -1
  85. package/lib/commonjs/providers/movies/smashystream.js.map +1 -1
  86. package/lib/commonjs/providers/movies/turkish123.js.map +1 -1
  87. package/lib/commonjs/providers/movies/ummagurau.js.map +1 -1
  88. package/lib/commonjs/providers/movies/viewAsian.js.map +1 -1
  89. package/lib/commonjs/providers/news/animenewsnetwork.js.map +1 -1
  90. package/lib/commonjs/utils/providers-list.js +1 -1
  91. package/lib/commonjs/utils/providers-list.js.map +1 -1
  92. package/lib/commonjs/utils/queries.js.map +1 -1
  93. package/lib/commonjs/utils/utils.js.map +1 -1
  94. package/lib/module/extractors/asianload.js.map +1 -1
  95. package/lib/module/extractors/filemoon.js.map +1 -1
  96. package/lib/module/extractors/gogocdn.js.map +1 -1
  97. package/lib/module/extractors/kisskh/kkey.js.map +1 -1
  98. package/lib/module/extractors/kisskh/staticdata.js.map +1 -1
  99. package/lib/module/extractors/kwik.js.map +1 -1
  100. package/lib/module/extractors/megacloud/index.js.map +1 -1
  101. package/lib/module/extractors/megacloud/megacloud.decodedpng.js.map +1 -1
  102. package/lib/module/extractors/megaup.js +1 -1
  103. package/lib/module/extractors/megaup.js.map +1 -1
  104. package/lib/module/extractors/mixdrop.js.map +1 -1
  105. package/lib/module/extractors/mp4player.js.map +1 -1
  106. package/lib/module/extractors/mp4upload.js.map +1 -1
  107. package/lib/module/extractors/rapidcloud.js.map +1 -1
  108. package/lib/module/extractors/smashystream.js.map +1 -1
  109. package/lib/module/extractors/streamhub.js.map +1 -1
  110. package/lib/module/extractors/streamlare.js.map +1 -1
  111. package/lib/module/extractors/streamsb.js.map +1 -1
  112. package/lib/module/extractors/streamwish.js +12 -15
  113. package/lib/module/extractors/streamwish.js.map +1 -1
  114. package/lib/module/extractors/vidcloud.js.map +1 -1
  115. package/lib/module/extractors/vidhide.js.map +1 -1
  116. package/lib/module/extractors/vidmoly.js.map +1 -1
  117. package/lib/module/extractors/vizcloud.js.map +1 -1
  118. package/lib/module/extractors/voe.js.map +1 -1
  119. package/lib/module/index.js.map +1 -1
  120. package/lib/module/models/anime-parser.js.map +1 -1
  121. package/lib/module/models/lightnovel-parser.js.map +1 -1
  122. package/lib/module/models/manga-parser.js.map +1 -1
  123. package/lib/module/models/movie-parser.js.map +1 -1
  124. package/lib/module/models/proxy.js.map +1 -1
  125. package/lib/module/models/video-extractor.js.map +1 -1
  126. package/lib/module/providers/anime/anify.js.map +1 -1
  127. package/lib/module/providers/anime/animedrive.js.map +1 -1
  128. package/lib/module/providers/anime/animefox.js.map +1 -1
  129. package/lib/module/providers/anime/animekai.js.map +1 -1
  130. package/lib/module/providers/anime/animepahe.js.map +1 -1
  131. package/lib/module/providers/anime/animesaturn.js.map +1 -1
  132. package/lib/module/providers/anime/animeunity.js.map +1 -1
  133. package/lib/module/providers/anime/anix.js.map +1 -1
  134. package/lib/module/providers/anime/bilibili.js.map +1 -1
  135. package/lib/module/providers/anime/gogoanime.js.map +1 -1
  136. package/lib/module/providers/anime/index.js +0 -4
  137. package/lib/module/providers/anime/index.js.map +1 -1
  138. package/lib/module/providers/anime/kickassanime.js.map +1 -1
  139. package/lib/module/providers/anime/marin.js.map +1 -1
  140. package/lib/module/providers/anime/monoschinos.js.map +1 -1
  141. package/lib/module/providers/anime/zoro.js +1 -1
  142. package/lib/module/providers/anime/zoro.js.map +1 -1
  143. package/lib/module/providers/comics/getComics.js.map +1 -1
  144. package/lib/module/providers/light-novels/novelupdates.js.map +1 -1
  145. package/lib/module/providers/light-novels/readlightnovels.js.map +1 -1
  146. package/lib/module/providers/manga/asurascans.js.map +1 -1
  147. package/lib/module/providers/manga/brmangas.js.map +1 -1
  148. package/lib/module/providers/manga/comick.js.map +1 -1
  149. package/lib/module/providers/manga/flamescans.js.map +1 -1
  150. package/lib/module/providers/manga/mangadex.js.map +1 -1
  151. package/lib/module/providers/manga/mangahere.js.map +1 -1
  152. package/lib/module/providers/manga/mangahost.js.map +1 -1
  153. package/lib/module/providers/manga/mangakakalot.js.map +1 -1
  154. package/lib/module/providers/manga/mangapark.js.map +1 -1
  155. package/lib/module/providers/manga/mangapill.js.map +1 -1
  156. package/lib/module/providers/manga/mangareader.js.map +1 -1
  157. package/lib/module/providers/manga/mangasee123.js.map +1 -1
  158. package/lib/module/providers/manga/readmanga.js.map +1 -1
  159. package/lib/module/providers/manga/vyvymanga.js.map +1 -1
  160. package/lib/module/providers/meta/anilist.js +88 -108
  161. package/lib/module/providers/meta/anilist.js.map +1 -1
  162. package/lib/module/providers/meta/mal.js +2 -28
  163. package/lib/module/providers/meta/mal.js.map +1 -1
  164. package/lib/module/providers/meta/tmdb.js +22 -1
  165. package/lib/module/providers/meta/tmdb.js.map +1 -1
  166. package/lib/module/providers/movies/dramacool.js.map +1 -1
  167. package/lib/module/providers/movies/flixhq.js.map +1 -1
  168. package/lib/module/providers/movies/fmovies.js.map +1 -1
  169. package/lib/module/providers/movies/goku.js.map +1 -1
  170. package/lib/module/providers/movies/kissasian.js.map +1 -1
  171. package/lib/module/providers/movies/moviehdwatch.js.map +1 -1
  172. package/lib/module/providers/movies/multimovies.js +2 -2
  173. package/lib/module/providers/movies/multimovies.js.map +1 -1
  174. package/lib/module/providers/movies/sflix.js.map +1 -1
  175. package/lib/module/providers/movies/smashystream.js.map +1 -1
  176. package/lib/module/providers/movies/turkish123.js.map +1 -1
  177. package/lib/module/providers/movies/ummagurau.js.map +1 -1
  178. package/lib/module/providers/movies/viewAsian.js.map +1 -1
  179. package/lib/module/providers/news/animenewsnetwork.js.map +1 -1
  180. package/lib/module/utils/providers-list.js +1 -1
  181. package/lib/module/utils/providers-list.js.map +1 -1
  182. package/lib/module/utils/queries.js.map +1 -1
  183. package/lib/module/utils/utils.js.map +1 -1
  184. package/lib/typescript/commonjs/src/extractors/asianload.d.ts.map +1 -1
  185. package/lib/typescript/commonjs/src/extractors/filemoon.d.ts.map +1 -1
  186. package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts.map +1 -1
  187. package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts.map +1 -1
  188. package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts.map +1 -1
  189. package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
  190. package/lib/typescript/commonjs/src/extractors/megacloud/index.d.ts.map +1 -1
  191. package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.decodedpng.d.ts.map +1 -1
  192. package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +1 -1
  193. package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts.map +1 -1
  194. package/lib/typescript/commonjs/src/extractors/mp4player.d.ts.map +1 -1
  195. package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts.map +1 -1
  196. package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts.map +1 -1
  197. package/lib/typescript/commonjs/src/extractors/smashystream.d.ts.map +1 -1
  198. package/lib/typescript/commonjs/src/extractors/streamhub.d.ts.map +1 -1
  199. package/lib/typescript/commonjs/src/extractors/streamlare.d.ts.map +1 -1
  200. package/lib/typescript/commonjs/src/extractors/streamsb.d.ts.map +1 -1
  201. package/lib/typescript/commonjs/src/extractors/streamwish.d.ts.map +1 -1
  202. package/lib/typescript/commonjs/src/extractors/vidcloud.d.ts.map +1 -1
  203. package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
  204. package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts.map +1 -1
  205. package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts.map +1 -1
  206. package/lib/typescript/commonjs/src/extractors/voe.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  208. package/lib/typescript/commonjs/src/models/anime-parser.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/src/models/lightnovel-parser.d.ts.map +1 -1
  210. package/lib/typescript/commonjs/src/models/manga-parser.d.ts.map +1 -1
  211. package/lib/typescript/commonjs/src/models/movie-parser.d.ts.map +1 -1
  212. package/lib/typescript/commonjs/src/models/proxy.d.ts.map +1 -1
  213. package/lib/typescript/commonjs/src/models/video-extractor.d.ts.map +1 -1
  214. package/lib/typescript/commonjs/src/providers/anime/anify.d.ts.map +1 -1
  215. package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts.map +1 -1
  216. package/lib/typescript/commonjs/src/providers/anime/animefox.d.ts.map +1 -1
  217. package/lib/typescript/commonjs/src/providers/anime/animekai.d.ts.map +1 -1
  218. package/lib/typescript/commonjs/src/providers/anime/animepahe.d.ts.map +1 -1
  219. package/lib/typescript/commonjs/src/providers/anime/animesaturn.d.ts.map +1 -1
  220. package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/src/providers/anime/anix.d.ts.map +1 -1
  222. package/lib/typescript/commonjs/src/providers/anime/bilibili.d.ts.map +1 -1
  223. package/lib/typescript/commonjs/src/providers/anime/gogoanime.d.ts.map +1 -1
  224. package/lib/typescript/commonjs/src/providers/anime/index.d.ts +0 -4
  225. package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
  226. package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts.map +1 -1
  227. package/lib/typescript/commonjs/src/providers/anime/marin.d.ts.map +1 -1
  228. package/lib/typescript/commonjs/src/providers/anime/monoschinos.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/src/providers/anime/zoro.d.ts.map +1 -1
  230. package/lib/typescript/commonjs/src/providers/comics/getComics.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts.map +1 -1
  232. package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
  234. package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/src/providers/manga/comick.d.ts.map +1 -1
  236. package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
  237. package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
  239. package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts.map +1 -1
  240. package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts.map +1 -1
  242. package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts.map +1 -1
  244. package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts.map +1 -1
  246. package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts.map +1 -1
  247. package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts +2 -3
  248. package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/src/providers/meta/mal.d.ts.map +1 -1
  250. package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
  251. package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts.map +1 -1
  252. package/lib/typescript/commonjs/src/providers/movies/flixhq.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/src/providers/movies/fmovies.d.ts.map +1 -1
  254. package/lib/typescript/commonjs/src/providers/movies/goku.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/src/providers/movies/kissasian.d.ts.map +1 -1
  256. package/lib/typescript/commonjs/src/providers/movies/moviehdwatch.d.ts.map +1 -1
  257. package/lib/typescript/commonjs/src/providers/movies/multimovies.d.ts.map +1 -1
  258. package/lib/typescript/commonjs/src/providers/movies/sflix.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/src/providers/movies/smashystream.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/src/providers/movies/turkish123.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/src/providers/movies/viewAsian.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/src/providers/news/animenewsnetwork.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/src/utils/providers-list.d.ts +1 -1
  264. package/lib/typescript/commonjs/src/utils/providers-list.d.ts.map +1 -1
  265. package/lib/typescript/commonjs/src/utils/queries.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/src/utils/utils.d.ts +1 -1
  267. package/lib/typescript/commonjs/src/utils/utils.d.ts.map +1 -1
  268. package/lib/typescript/module/src/extractors/asianload.d.ts.map +1 -1
  269. package/lib/typescript/module/src/extractors/filemoon.d.ts.map +1 -1
  270. package/lib/typescript/module/src/extractors/gogocdn.d.ts.map +1 -1
  271. package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts.map +1 -1
  272. package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts.map +1 -1
  273. package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
  274. package/lib/typescript/module/src/extractors/megacloud/index.d.ts.map +1 -1
  275. package/lib/typescript/module/src/extractors/megacloud/megacloud.decodedpng.d.ts.map +1 -1
  276. package/lib/typescript/module/src/extractors/megaup.d.ts.map +1 -1
  277. package/lib/typescript/module/src/extractors/mixdrop.d.ts.map +1 -1
  278. package/lib/typescript/module/src/extractors/mp4player.d.ts.map +1 -1
  279. package/lib/typescript/module/src/extractors/mp4upload.d.ts.map +1 -1
  280. package/lib/typescript/module/src/extractors/rapidcloud.d.ts.map +1 -1
  281. package/lib/typescript/module/src/extractors/smashystream.d.ts.map +1 -1
  282. package/lib/typescript/module/src/extractors/streamhub.d.ts.map +1 -1
  283. package/lib/typescript/module/src/extractors/streamlare.d.ts.map +1 -1
  284. package/lib/typescript/module/src/extractors/streamsb.d.ts.map +1 -1
  285. package/lib/typescript/module/src/extractors/streamwish.d.ts.map +1 -1
  286. package/lib/typescript/module/src/extractors/vidcloud.d.ts.map +1 -1
  287. package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
  288. package/lib/typescript/module/src/extractors/vidmoly.d.ts.map +1 -1
  289. package/lib/typescript/module/src/extractors/vizcloud.d.ts.map +1 -1
  290. package/lib/typescript/module/src/extractors/voe.d.ts.map +1 -1
  291. package/lib/typescript/module/src/index.d.ts.map +1 -1
  292. package/lib/typescript/module/src/models/anime-parser.d.ts.map +1 -1
  293. package/lib/typescript/module/src/models/lightnovel-parser.d.ts.map +1 -1
  294. package/lib/typescript/module/src/models/manga-parser.d.ts.map +1 -1
  295. package/lib/typescript/module/src/models/movie-parser.d.ts.map +1 -1
  296. package/lib/typescript/module/src/models/proxy.d.ts.map +1 -1
  297. package/lib/typescript/module/src/models/video-extractor.d.ts.map +1 -1
  298. package/lib/typescript/module/src/providers/anime/anify.d.ts.map +1 -1
  299. package/lib/typescript/module/src/providers/anime/animedrive.d.ts.map +1 -1
  300. package/lib/typescript/module/src/providers/anime/animefox.d.ts.map +1 -1
  301. package/lib/typescript/module/src/providers/anime/animekai.d.ts.map +1 -1
  302. package/lib/typescript/module/src/providers/anime/animepahe.d.ts.map +1 -1
  303. package/lib/typescript/module/src/providers/anime/animesaturn.d.ts.map +1 -1
  304. package/lib/typescript/module/src/providers/anime/animeunity.d.ts.map +1 -1
  305. package/lib/typescript/module/src/providers/anime/anix.d.ts.map +1 -1
  306. package/lib/typescript/module/src/providers/anime/bilibili.d.ts.map +1 -1
  307. package/lib/typescript/module/src/providers/anime/gogoanime.d.ts.map +1 -1
  308. package/lib/typescript/module/src/providers/anime/index.d.ts +0 -4
  309. package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
  310. package/lib/typescript/module/src/providers/anime/kickassanime.d.ts.map +1 -1
  311. package/lib/typescript/module/src/providers/anime/marin.d.ts.map +1 -1
  312. package/lib/typescript/module/src/providers/anime/monoschinos.d.ts.map +1 -1
  313. package/lib/typescript/module/src/providers/anime/zoro.d.ts.map +1 -1
  314. package/lib/typescript/module/src/providers/comics/getComics.d.ts.map +1 -1
  315. package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts.map +1 -1
  316. package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
  317. package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
  318. package/lib/typescript/module/src/providers/manga/brmangas.d.ts.map +1 -1
  319. package/lib/typescript/module/src/providers/manga/comick.d.ts.map +1 -1
  320. package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
  321. package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
  322. package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
  323. package/lib/typescript/module/src/providers/manga/mangahost.d.ts.map +1 -1
  324. package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
  325. package/lib/typescript/module/src/providers/manga/mangapark.d.ts.map +1 -1
  326. package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
  327. package/lib/typescript/module/src/providers/manga/mangareader.d.ts.map +1 -1
  328. package/lib/typescript/module/src/providers/manga/mangasee123.d.ts.map +1 -1
  329. package/lib/typescript/module/src/providers/manga/readmanga.d.ts.map +1 -1
  330. package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts.map +1 -1
  331. package/lib/typescript/module/src/providers/meta/anilist.d.ts +2 -3
  332. package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
  333. package/lib/typescript/module/src/providers/meta/mal.d.ts.map +1 -1
  334. package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
  335. package/lib/typescript/module/src/providers/movies/dramacool.d.ts.map +1 -1
  336. package/lib/typescript/module/src/providers/movies/flixhq.d.ts.map +1 -1
  337. package/lib/typescript/module/src/providers/movies/fmovies.d.ts.map +1 -1
  338. package/lib/typescript/module/src/providers/movies/goku.d.ts.map +1 -1
  339. package/lib/typescript/module/src/providers/movies/kissasian.d.ts.map +1 -1
  340. package/lib/typescript/module/src/providers/movies/moviehdwatch.d.ts.map +1 -1
  341. package/lib/typescript/module/src/providers/movies/multimovies.d.ts.map +1 -1
  342. package/lib/typescript/module/src/providers/movies/sflix.d.ts.map +1 -1
  343. package/lib/typescript/module/src/providers/movies/smashystream.d.ts.map +1 -1
  344. package/lib/typescript/module/src/providers/movies/turkish123.d.ts.map +1 -1
  345. package/lib/typescript/module/src/providers/movies/viewAsian.d.ts.map +1 -1
  346. package/lib/typescript/module/src/providers/news/animenewsnetwork.d.ts.map +1 -1
  347. package/lib/typescript/module/src/utils/providers-list.d.ts +1 -1
  348. package/lib/typescript/module/src/utils/providers-list.d.ts.map +1 -1
  349. package/lib/typescript/module/src/utils/queries.d.ts.map +1 -1
  350. package/lib/typescript/module/src/utils/utils.d.ts +1 -1
  351. package/lib/typescript/module/src/utils/utils.d.ts.map +1 -1
  352. package/package.json +192 -197
  353. package/react-native.config.js +12 -12
  354. package/src/extractors/asianload.ts +4 -13
  355. package/src/extractors/filemoon.ts +5 -13
  356. package/src/extractors/gogocdn.ts +12 -32
  357. package/src/extractors/kisskh/kkey.ts +6 -18
  358. package/src/extractors/kisskh/staticdata.ts +128 -196
  359. package/src/extractors/kwik.ts +1 -3
  360. package/src/extractors/megacloud/index.ts +9 -13
  361. package/src/extractors/megacloud/megacloud.decodedpng.ts +549 -842
  362. package/src/extractors/megaup.ts +26 -42
  363. package/src/extractors/mixdrop.ts +1 -3
  364. package/src/extractors/mp4player.ts +3 -11
  365. package/src/extractors/mp4upload.ts +1 -3
  366. package/src/extractors/rapidcloud.ts +18 -56
  367. package/src/extractors/smashystream.ts +25 -65
  368. package/src/extractors/streamhub.ts +4 -12
  369. package/src/extractors/streamlare.ts +2 -7
  370. package/src/extractors/streamsb.ts +5 -12
  371. package/src/extractors/streamwish.ts +18 -35
  372. package/src/extractors/vidcloud.ts +8 -19
  373. package/src/extractors/vidhide.ts +3 -9
  374. package/src/extractors/vidmoly.ts +1 -4
  375. package/src/extractors/vizcloud.ts +1 -5
  376. package/src/extractors/voe.ts +3 -8
  377. package/src/index.ts +1 -9
  378. package/src/models/anime-parser.ts +3 -14
  379. package/src/models/lightnovel-parser.ts +2 -8
  380. package/src/models/manga-parser.ts +1 -4
  381. package/src/models/movie-parser.ts +4 -20
  382. package/src/models/proxy.ts +4 -9
  383. package/src/models/video-extractor.ts +1 -4
  384. package/src/providers/anime/anify.ts +20 -61
  385. package/src/providers/anime/animedrive.ts +24 -77
  386. package/src/providers/anime/animefox.ts +18 -64
  387. package/src/providers/anime/animekai.ts +51 -157
  388. package/src/providers/anime/animepahe.ts +24 -59
  389. package/src/providers/anime/animesaturn.ts +11 -37
  390. package/src/providers/anime/animeunity.ts +8 -26
  391. package/src/providers/anime/anix.ts +17 -57
  392. package/src/providers/anime/bilibili.ts +4 -15
  393. package/src/providers/anime/gogoanime.ts +61 -194
  394. package/src/providers/anime/index.ts +0 -4
  395. package/src/providers/anime/kickassanime.ts +2 -6
  396. package/src/providers/anime/marin.ts +6 -18
  397. package/src/providers/anime/monoschinos.ts +8 -25
  398. package/src/providers/anime/zoro.ts +77 -209
  399. package/src/providers/comics/getComics.ts +7 -27
  400. package/src/providers/light-novels/novelupdates.ts +17 -52
  401. package/src/providers/light-novels/readlightnovels.ts +17 -67
  402. package/src/providers/manga/asurascans.ts +17 -67
  403. package/src/providers/manga/brmangas.ts +6 -17
  404. package/src/providers/manga/comick.ts +19 -51
  405. package/src/providers/manga/flamescans.ts +12 -35
  406. package/src/providers/manga/mangadex.ts +25 -82
  407. package/src/providers/manga/mangahere.ts +17 -40
  408. package/src/providers/manga/mangahost.ts +8 -28
  409. package/src/providers/manga/mangakakalot.ts +19 -71
  410. package/src/providers/manga/mangapark.ts +8 -27
  411. package/src/providers/manga/mangapill.ts +10 -33
  412. package/src/providers/manga/mangareader.ts +8 -28
  413. package/src/providers/manga/mangasee123.ts +12 -40
  414. package/src/providers/manga/readmanga.ts +58 -134
  415. package/src/providers/manga/vyvymanga.ts +15 -33
  416. package/src/providers/meta/anilist.ts +568 -1062
  417. package/src/providers/meta/mal.ts +51 -250
  418. package/src/providers/meta/tmdb.ts +60 -94
  419. package/src/providers/movies/dramacool.ts +50 -146
  420. package/src/providers/movies/flixhq.ts +60 -207
  421. package/src/providers/movies/fmovies.ts +17 -62
  422. package/src/providers/movies/goku.ts +46 -178
  423. package/src/providers/movies/kissasian.ts +19 -64
  424. package/src/providers/movies/moviehdwatch.ts +61 -221
  425. package/src/providers/movies/multimovies.ts +47 -153
  426. package/src/providers/movies/sflix.ts +71 -234
  427. package/src/providers/movies/smashystream.ts +9 -30
  428. package/src/providers/movies/turkish123.ts +4 -20
  429. package/src/providers/movies/ummagurau.ts +8 -26
  430. package/src/providers/movies/viewAsian.ts +15 -45
  431. package/src/providers/news/animenewsnetwork.ts +11 -40
  432. package/src/utils/providers-list.ts +1 -11
  433. package/src/utils/queries.ts +5 -23
  434. package/src/utils/utils.ts +5 -21
  435. package/lib/commonjs/providers/anime/9anime.js +0 -325
  436. package/lib/commonjs/providers/anime/9anime.js.map +0 -1
  437. package/lib/commonjs/providers/anime/crunchyroll.js +0 -92
  438. package/lib/commonjs/providers/anime/crunchyroll.js.map +0 -1
  439. package/lib/module/providers/anime/9anime.js +0 -323
  440. package/lib/module/providers/anime/9anime.js.map +0 -1
  441. package/lib/module/providers/anime/crunchyroll.js +0 -89
  442. package/lib/module/providers/anime/crunchyroll.js.map +0 -1
  443. package/lib/typescript/commonjs/src/providers/anime/9anime.d.ts +0 -26
  444. package/lib/typescript/commonjs/src/providers/anime/9anime.d.ts.map +0 -1
  445. package/lib/typescript/commonjs/src/providers/anime/crunchyroll.d.ts +0 -38
  446. package/lib/typescript/commonjs/src/providers/anime/crunchyroll.d.ts.map +0 -1
  447. package/lib/typescript/module/src/providers/anime/9anime.d.ts +0 -26
  448. package/lib/typescript/module/src/providers/anime/9anime.d.ts.map +0 -1
  449. package/lib/typescript/module/src/providers/anime/crunchyroll.d.ts +0 -38
  450. package/lib/typescript/module/src/providers/anime/crunchyroll.d.ts.map +0 -1
  451. package/src/providers/anime/9anime.ts +0 -465
  452. package/src/providers/anime/crunchyroll.ts +0 -151
@@ -20,14 +20,9 @@ class TMDB extends MovieParser {
20
20
  override readonly name = 'TMDB';
21
21
  protected override baseUrl = 'https://www.themoviedb.org';
22
22
  protected apiUrl = 'https://api.themoviedb.org/3';
23
- protected override logo =
24
- 'https://pbs.twimg.com/profile_images/1243623122089041920/gVZIvphd_400x400.jpg';
23
+ protected override logo = 'https://pbs.twimg.com/profile_images/1243623122089041920/gVZIvphd_400x400.jpg';
25
24
  protected override classPath = 'META.TMDB';
26
- override supportedTypes = new Set([
27
- TvType.MOVIE,
28
- TvType.TVSERIES,
29
- TvType.ANIME,
30
- ]);
25
+ override supportedTypes = new Set([TvType.MOVIE, TvType.TVSERIES, TvType.ANIME]);
31
26
 
32
27
  private provider: MovieParser;
33
28
 
@@ -85,8 +80,7 @@ class TMDB extends MovieParser {
85
80
  id: result.id,
86
81
  title: result?.title || result?.name,
87
82
  image: `https://image.tmdb.org/t/p/original${result?.poster_path}`,
88
- type:
89
- result.media_type === 'movie' ? TvType.MOVIE : TvType.TVSERIES,
83
+ type: result.media_type === 'movie' ? TvType.MOVIE : TvType.TVSERIES,
90
84
  rating: result?.vote_average || 0,
91
85
  releaseDate: `${date.getFullYear()}` || '0',
92
86
  };
@@ -108,8 +102,7 @@ class TMDB extends MovieParser {
108
102
  id: movie.id,
109
103
  title: movie?.title || movie?.name,
110
104
  image: `https://image.tmdb.org/t/p/original${movie?.poster_path}`,
111
- type:
112
- movie.media_type === 'movie' ? TvType.MOVIE : TvType.TVSERIES,
105
+ type: movie.media_type === 'movie' ? TvType.MOVIE : TvType.TVSERIES,
113
106
  rating: movie?.vote_average || 0,
114
107
  releaseDate: `${date.getFullYear()}` || '0',
115
108
  };
@@ -131,10 +124,7 @@ class TMDB extends MovieParser {
131
124
  * @param query search query
132
125
  * @param page page number
133
126
  */
134
- override search = async (
135
- query: string,
136
- page: number = 1
137
- ): Promise<ISearch<IMovieResult | IAnimeResult>> => {
127
+ override search = async (query: string, page: number = 1): Promise<ISearch<IMovieResult | IAnimeResult>> => {
138
128
  const searchUrl = `${this.apiUrl}/search/multi?api_key=${this.apiKey}&language=en-US&page=${page}&include_adult=false&query=${query}`;
139
129
 
140
130
  const search: ISearch<IMovieResult | IAnimeResult> = {
@@ -178,10 +168,7 @@ class TMDB extends MovieParser {
178
168
  * @param id media id (anime or movie/tv)
179
169
  * @param type movie or tv
180
170
  */
181
- override fetchMediaInfo = async (
182
- mediaId: string,
183
- type: string
184
- ): Promise<IMovieInfo | IAnimeInfo> => {
171
+ override fetchMediaInfo = async (mediaId: string, type: string): Promise<IMovieInfo | IAnimeInfo> => {
185
172
  type = type.toLowerCase() === 'movie' ? 'movie' : 'tv';
186
173
  const infoUrl = `${this.apiUrl}/${type}/${mediaId}?api_key=${this.apiKey}&language=en-US&append_to_response=release_dates,watch/providers,alternative_titles,credits,external_ids,images,keywords,recommendations,reviews,similar,translations,videos&include_image_language=en`;
187
174
 
@@ -199,15 +186,11 @@ class TMDB extends MovieParser {
199
186
  type: type === 'movie' ? TvType.MOVIE : TvType.TVSERIES,
200
187
  totalSeasons: data?.number_of_seasons,
201
188
  totalEpisodes: data?.number_of_episodes,
202
- year: new Date(
203
- data?.release_year || data?.first_air_date
204
- ).getFullYear(),
189
+ year: new Date(data?.release_year || data?.first_air_date).getFullYear(),
205
190
  });
206
191
 
207
192
  //fetch media info from provider
208
- const InfoFromProvider = await this.provider.fetchMediaInfo(
209
- providerId as string
210
- );
193
+ const InfoFromProvider = await this.provider.fetchMediaInfo(providerId as string);
211
194
 
212
195
  info.id = providerId as string;
213
196
 
@@ -215,24 +198,20 @@ class TMDB extends MovieParser {
215
198
  if (type === 'movie') info.episodeId = InfoFromProvider?.episodes![0]?.id;
216
199
 
217
200
  info.title = data?.title || data?.name;
218
- info.translations = data?.translations?.translations.map(
219
- (translation: any) => ({
220
- title: translation.data?.title || data?.name || undefined,
221
- description: translation.data?.overview || undefined,
222
- language: translation?.english_name || undefined,
223
- })
224
- );
201
+ info.translations = data?.translations?.translations.map((translation: any) => ({
202
+ title: translation.data?.title || data?.name || undefined,
203
+ description: translation.data?.overview || undefined,
204
+ language: translation?.english_name || undefined,
205
+ }));
225
206
 
226
207
  //images
227
208
  info.image = `https://image.tmdb.org/t/p/original${data?.poster_path}`;
228
209
  info.cover = `https://image.tmdb.org/t/p/original${data?.backdrop_path}`;
229
- info.logos = data?.images?.logos.map(
230
- (logo: { file_path: string; aspect_ratio: number; width: number }) => ({
231
- url: `https://image.tmdb.org/t/p/original${logo.file_path}`,
232
- aspectRatio: logo?.aspect_ratio,
233
- width: logo?.width,
234
- })
235
- );
210
+ info.logos = data?.images?.logos.map((logo: { file_path: string; aspect_ratio: number; width: number }) => ({
211
+ url: `https://image.tmdb.org/t/p/original${logo.file_path}`,
212
+ aspectRatio: logo?.aspect_ratio,
213
+ width: logo?.width,
214
+ }));
236
215
 
237
216
  info.type = type === 'movie' ? TvType.MOVIE : TvType.TVSERIES;
238
217
  info.rating = data?.vote_average || 0;
@@ -248,9 +227,7 @@ class TMDB extends MovieParser {
248
227
  info.writers = data?.credits?.crew
249
228
  .filter((crew: { job: string }) => crew.job === 'Screenplay')
250
229
  .map((crew: { name: string }) => crew.name);
251
- info.actors = data?.credits?.cast.map(
252
- (cast: { name: string }) => cast.name
253
- );
230
+ info.actors = data?.credits?.cast.map((cast: { name: string }) => cast.name);
254
231
  info.characters = data?.credits?.cast.map((cast: any) => ({
255
232
  id: cast.id,
256
233
  name: cast.name,
@@ -299,8 +276,7 @@ class TMDB extends MovieParser {
299
276
 
300
277
  const totalSeasons = (info?.totalSeasons as number) || 0;
301
278
  if (type === 'tv' && totalSeasons > 0) {
302
- const seasonUrl = (season: string) =>
303
- `${this.apiUrl}/tv/${mediaId}/season/${season}?api_key=${this.apiKey}`;
279
+ const seasonUrl = (season: string) => `${this.apiUrl}/tv/${mediaId}/season/${season}?api_key=${this.apiKey}`;
304
280
 
305
281
  info.seasons = [];
306
282
  const seasons = info.seasons as any[];
@@ -321,25 +297,20 @@ class TMDB extends MovieParser {
321
297
  : undefined;
322
298
 
323
299
  for (let i = 1; i <= totalSeasons; i++) {
324
- const { data: seasonData } = await this.client.get(
325
- seasonUrl(i.toString())
326
- );
300
+ const { data: seasonData } = await this.client.get(seasonUrl(i.toString()));
327
301
 
328
302
  //find season in each episode (providerEpisodes)
329
- const seasonEpisodes = providerEpisodes?.filter(
330
- (episode) => episode.season === i
331
- );
303
+ const seasonEpisodes = providerEpisodes?.filter((episode) => episode.season === i);
332
304
  const episodes =
333
305
  seasonData?.episodes?.length <= 0
334
306
  ? undefined
335
307
  : seasonData?.episodes.map((episode: any): IMovieEpisode => {
336
308
  //find episode in each season (seasonEpisodes)
337
- const episodeFromProvider = seasonEpisodes?.find(
338
- (ep) => ep.number === episode.episode_number
339
- );
309
+ const episodeFromProvider = seasonEpisodes?.find((ep) => ep.number === episode.episode_number);
340
310
 
341
311
  return {
342
312
  id: episodeFromProvider?.id,
313
+ uniqueId: `${mediaId}-${type}-s${episode.season_number}-e${episode.episode_number}`,
343
314
  title: episode.name,
344
315
  episode: episode.episode_number,
345
316
  season: episode.season_number,
@@ -364,14 +335,35 @@ class TMDB extends MovieParser {
364
335
  hd: `https://image.tmdb.org/t/p/w780${seasonData.poster_path}`,
365
336
  },
366
337
  episodes,
367
- isReleased:
368
- seasonData?.episodes[0]?.air_date > new Date().toISOString()
369
- ? false
370
- : true,
338
+ isReleased: seasonData?.episodes[0]?.air_date > new Date().toISOString() ? false : true,
371
339
  });
372
340
  }
341
+ } else {
342
+ info.seasons = [];
343
+ info.seasons.push({
344
+ season: 1,
345
+ image: !data?.poster_path ? undefined : `https://image.tmdb.org/t/p/w780${data.backdrop_path}`,
346
+ episodes: [
347
+ {
348
+ id: `${mediaId}-${type}-s1-e1`,
349
+ uniqueId: `${mediaId}-${type}-s1-e1`,
350
+ title: data.title || data.original_title,
351
+ episode: 1,
352
+ season: 1,
353
+ releaseDate: data.release_date,
354
+ description: data.overview,
355
+ img: !data?.backdrop_path
356
+ ? undefined
357
+ : {
358
+ mobile: `https://image.tmdb.org/t/p/w300${data.backdrop_path}`,
359
+ hd: `https://image.tmdb.org/t/p/w780${data.backdrop_path}`,
360
+ },
361
+ },
362
+ ],
363
+ });
373
364
  }
374
365
  } catch (err) {
366
+ console.log(err);
375
367
  throw new Error((err as Error).message);
376
368
  }
377
369
 
@@ -397,9 +389,7 @@ class TMDB extends MovieParser {
397
389
  //clean title
398
390
  title = title.replace(/[^a-zA-Z0-9 ]/g, '').toLowerCase();
399
391
 
400
- const findMedia = (await this.provider.search(
401
- title
402
- )) as ISearch<IAnimeResult>;
392
+ const findMedia = (await this.provider.search(title)) as ISearch<IAnimeResult>;
403
393
  if (findMedia.results.length === 0) return '';
404
394
 
405
395
  // console.log(findMedia.results);
@@ -418,14 +408,8 @@ class TMDB extends MovieParser {
418
408
  if (typeof b.title === 'string') secondTitle = b.title as string;
419
409
  else secondTitle = (b?.title as string) ?? '';
420
410
 
421
- const firstRating = compareTwoStrings(
422
- targetTitle,
423
- firstTitle.toLowerCase()
424
- );
425
- const secondRating = compareTwoStrings(
426
- targetTitle,
427
- secondTitle.toLowerCase()
428
- );
411
+ const firstRating = compareTwoStrings(targetTitle, firstTitle.toLowerCase());
412
+ const secondRating = compareTwoStrings(targetTitle, secondTitle.toLowerCase());
429
413
 
430
414
  // Sort in descending order
431
415
  return secondRating - firstRating;
@@ -433,20 +417,15 @@ class TMDB extends MovieParser {
433
417
 
434
418
  //remove results that dont match the type
435
419
  findMedia.results = findMedia.results.filter((result) => {
436
- if (extraData.type === TvType.MOVIE)
437
- return (result.type as string) === TvType.MOVIE;
438
- else if (extraData.type === TvType.TVSERIES)
439
- return (result.type as string) === TvType.TVSERIES;
420
+ if (extraData.type === TvType.MOVIE) return (result.type as string) === TvType.MOVIE;
421
+ else if (extraData.type === TvType.TVSERIES) return (result.type as string) === TvType.TVSERIES;
440
422
  else return result;
441
423
  });
442
424
 
443
425
  // if extraData contains a year, filter out the results that don't match the year
444
426
  if (extraData && extraData.year && extraData.type === TvType.MOVIE) {
445
427
  findMedia.results = findMedia.results.filter((result) => {
446
- return (
447
- String(result.releaseDate).split('-')[0]?.trim() ===
448
- String(extraData.year).trim()
449
- );
428
+ return String(result.releaseDate).split('-')[0]?.trim() === String(extraData.year).trim();
450
429
  });
451
430
  }
452
431
 
@@ -454,18 +433,11 @@ class TMDB extends MovieParser {
454
433
 
455
434
  // Check if the result contains the total number of seasons and compare it to the extraData.
456
435
  // Allow for a range of ±2 seasons and ensure that the seasons value is a number.
457
- if (
458
- extraData &&
459
- extraData.totalSeasons &&
460
- extraData.type === TvType.TVSERIES
461
- ) {
436
+ if (extraData && extraData.totalSeasons && extraData.type === TvType.TVSERIES) {
462
437
  findMedia.results = findMedia.results.filter((result) => {
463
- const totalSeasons = (result.seasons as number) || 0;
438
+ const totalSeasons = (result.season as number) || 0;
464
439
  const extraDataSeasons = (extraData.totalSeasons as number) || 0;
465
- return (
466
- totalSeasons >= extraDataSeasons - 2 &&
467
- totalSeasons <= extraDataSeasons + 2
468
- );
440
+ return totalSeasons >= extraDataSeasons - 2 && totalSeasons <= extraDataSeasons + 2;
469
441
  });
470
442
  }
471
443
 
@@ -478,10 +450,7 @@ class TMDB extends MovieParser {
478
450
  * @param id media id (anime or movie/tv)
479
451
  * @param args optional arguments
480
452
  */
481
- override fetchEpisodeSources = async (
482
- id: string,
483
- ...args: any
484
- ): Promise<ISource> => {
453
+ override fetchEpisodeSources = async (id: string, ...args: any): Promise<ISource> => {
485
454
  return this.provider.fetchEpisodeSources(id, ...args);
486
455
  };
487
456
 
@@ -489,10 +458,7 @@ class TMDB extends MovieParser {
489
458
  * @param episodeId episode id
490
459
  * @param args optional arguments
491
460
  **/
492
- override fetchEpisodeServers = async (
493
- episodeId: string,
494
- ...args: any
495
- ): Promise<IEpisodeServer[]> => {
461
+ override fetchEpisodeServers = async (episodeId: string, ...args: any): Promise<IEpisodeServer[]> => {
496
462
  return this.provider.fetchEpisodeServers(episodeId, ...args);
497
463
  };
498
464
  }
@@ -1,13 +1,6 @@
1
1
  import { load } from 'cheerio';
2
2
 
3
- import {
4
- AsianLoad,
5
- MixDrop,
6
- StreamSB,
7
- StreamTape,
8
- StreamWish,
9
- VidHide,
10
- } from '../../extractors';
3
+ import { AsianLoad, MixDrop, StreamSB, StreamTape, StreamWish, VidHide } from '../../extractors';
11
4
  import {
12
5
  type IEpisodeServer,
13
6
  type IMovieInfo,
@@ -28,10 +21,7 @@ class DramaCool extends MovieParser {
28
21
  protected override classPath = 'MOVIES.DramaCool';
29
22
  override supportedTypes = new Set([TvType.MOVIE, TvType.TVSERIES]);
30
23
 
31
- override search = async (
32
- query: string,
33
- page: number = 1
34
- ): Promise<ISearch<IMovieResult>> => {
24
+ override search = async (query: string, page: number = 1): Promise<ISearch<IMovieResult>> => {
35
25
  try {
36
26
  const searchResult: ISearch<IMovieResult> = {
37
27
  currentPage: page,
@@ -49,32 +39,23 @@ class DramaCool extends MovieParser {
49
39
  const navSelector = 'ul.pagination';
50
40
 
51
41
  searchResult.hasNextPage =
52
- $(navSelector).length > 0
53
- ? !$(navSelector).children().last().hasClass('selected')
54
- : false;
42
+ $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('selected') : false;
55
43
 
56
44
  const lastPage = $(navSelector).children().last().find('a').attr('href');
57
- if (
58
- lastPage !== undefined &&
59
- lastPage !== '' &&
60
- lastPage.includes('page=')
61
- ) {
45
+ if (lastPage !== undefined && lastPage !== '' && lastPage.includes('page=')) {
62
46
  const maxPage = new URLSearchParams(lastPage).get('page');
63
- if (maxPage !== null && !isNaN(parseInt(maxPage)))
64
- searchResult.totalPages = parseInt(maxPage);
47
+ if (maxPage !== null && !isNaN(parseInt(maxPage))) searchResult.totalPages = parseInt(maxPage);
65
48
  else if (searchResult.hasNextPage) searchResult.totalPages = page + 1;
66
49
  } else if (searchResult.hasNextPage) searchResult.totalPages = page + 1;
67
50
 
68
- $('div.block > div.tab-content > ul.list-episode-item > li').each(
69
- (i, el) => {
70
- searchResult.results.push({
71
- id: $(el).find('a').attr('href')?.split(`${this.baseUrl}/`)[1]!,
72
- title: $(el).find('a > h3').text(),
73
- url: `${$(el).find('a').attr('href')}`,
74
- image: $(el).find('a > img').attr('data-original'),
75
- });
76
- }
77
- );
51
+ $('div.block > div.tab-content > ul.list-episode-item > li').each((i, el) => {
52
+ searchResult.results.push({
53
+ id: $(el).find('a').attr('href')?.split(`${this.baseUrl}/`)[1]!,
54
+ title: $(el).find('a > h3').text(),
55
+ url: `${$(el).find('a').attr('href')}`,
56
+ image: $(el).find('a > img').attr('data-original'),
57
+ });
58
+ });
78
59
  return searchResult;
79
60
  } catch (err) {
80
61
  throw new Error((err as Error).message);
@@ -84,8 +65,7 @@ class DramaCool extends MovieParser {
84
65
  override fetchMediaInfo = async (mediaId: string): Promise<IMovieInfo> => {
85
66
  try {
86
67
  const realMediaId = mediaId;
87
- if (!mediaId.startsWith(this.baseUrl))
88
- mediaId = `${this.baseUrl}/${mediaId}`;
68
+ if (!mediaId.startsWith(this.baseUrl)) mediaId = `${this.baseUrl}/${mediaId}`;
89
69
 
90
70
  const mediaInfo: IMovieInfo = {
91
71
  id: '',
@@ -97,17 +77,9 @@ class DramaCool extends MovieParser {
97
77
 
98
78
  mediaInfo.id = realMediaId;
99
79
 
100
- const duration = $('div.details div.info p:contains("Duration:")')
101
- .first()
102
- .text()
103
- .trim();
104
- if (duration !== '')
105
- mediaInfo.duration = duration.replace('Duration:', '').trim();
106
- const status = $('div.details div.info p:contains("Status:")')
107
- .find('a')
108
- .first()
109
- .text()
110
- .trim();
80
+ const duration = $('div.details div.info p:contains("Duration:")').first().text().trim();
81
+ if (duration !== '') mediaInfo.duration = duration.replace('Duration:', '').trim();
82
+ const status = $('div.details div.info p:contains("Status:")').find('a').first().text().trim();
111
83
  switch (status) {
112
84
  case 'Ongoing':
113
85
  mediaInfo.status = MediaStatus.ONGOING;
@@ -157,9 +129,7 @@ class DramaCool extends MovieParser {
157
129
  );
158
130
  mediaInfo.originalNetwork = this.cleanUpText(
159
131
  this.removeContainsFromString(
160
- $('div.details div.info p:contains("Original Network:")')
161
- .text()
162
- .trim(),
132
+ $('div.details div.info p:contains("Original Network:")').text().trim(),
163
133
  'Original Network'
164
134
  )
165
135
  );
@@ -183,24 +153,16 @@ class DramaCool extends MovieParser {
183
153
  });
184
154
 
185
155
  mediaInfo.episodes = [];
186
- $('div.content-left > div.block-tab > div > div > ul > li').each(
187
- (i, el) => {
188
- mediaInfo.episodes?.push({
189
- id: $(el).find('a').attr('href')?.split(`${this.baseUrl}/`)[1]!,
190
- title: $(el)
191
- .find('h3')
192
- .text()
193
- .replace(mediaInfo.title.toString(), '')
194
- .trim(),
195
- episode: parseFloat(
196
- $(el).find('a').attr('href')?.split('-episode-')[1]!
197
- ),
198
- subType: $(el).find('span.type').text(),
199
- releaseDate: $(el).find('span.time').text(),
200
- url: `${$(el).find('a').attr('href')}`,
201
- });
202
- }
203
- );
156
+ $('div.content-left > div.block-tab > div > div > ul > li').each((i, el) => {
157
+ mediaInfo.episodes?.push({
158
+ id: $(el).find('a').attr('href')?.split(`${this.baseUrl}/`)[1]!,
159
+ title: $(el).find('h3').text().replace(mediaInfo.title.toString(), '').trim(),
160
+ episode: parseFloat($(el).find('a').attr('href')?.split('-episode-')[1]!),
161
+ subType: $(el).find('span.type').text(),
162
+ releaseDate: $(el).find('span.time').text(),
163
+ url: `${$(el).find('a').attr('href')}`,
164
+ });
165
+ });
204
166
  mediaInfo.episodes.reverse();
205
167
 
206
168
  return mediaInfo;
@@ -209,10 +171,7 @@ class DramaCool extends MovieParser {
209
171
  }
210
172
  };
211
173
 
212
- override async fetchEpisodeServers(
213
- episodeId: string,
214
- ...args: any
215
- ): Promise<IEpisodeServer[]> {
174
+ override async fetchEpisodeServers(episodeId: string, ...args: any): Promise<IEpisodeServer[]> {
216
175
  try {
217
176
  const episodeServers: IEpisodeServer[] = [];
218
177
 
@@ -234,12 +193,8 @@ class DramaCool extends MovieParser {
234
193
  // });
235
194
  // });
236
195
 
237
- const standardServer = $('div.anime_muti_link > ul > li.standard').attr(
238
- 'data-video'
239
- )!;
240
- const url = standardServer.startsWith('//')
241
- ? standardServer?.replace('//', 'https://')
242
- : standardServer;
196
+ const standardServer = $('div.anime_muti_link > ul > li.standard').attr('data-video')!;
197
+ const url = standardServer.startsWith('//') ? standardServer?.replace('//', 'https://') : standardServer;
243
198
  const { data: servers } = await this.client.get(url);
244
199
  const $$ = load(servers);
245
200
  $$('div#list-server-more > ul > li').each((i, el) => {
@@ -251,9 +206,7 @@ class DramaCool extends MovieParser {
251
206
  if (server) {
252
207
  episodeServers.push({
253
208
  name: name,
254
- url: server.startsWith('//')
255
- ? server?.replace('//', 'https://')
256
- : server,
209
+ url: server.startsWith('//') ? server?.replace('//', 'https://') : server,
257
210
  });
258
211
  }
259
212
  });
@@ -273,46 +226,33 @@ class DramaCool extends MovieParser {
273
226
  case StreamingServers.AsianLoad:
274
227
  return {
275
228
  headers: { Referer: serverUrl.origin },
276
- ...(await new AsianLoad(this.proxyConfig, this.adapter).extract(
277
- serverUrl
278
- )),
229
+ ...(await new AsianLoad(this.proxyConfig, this.adapter).extract(serverUrl)),
279
230
  download: this.downloadLink(episodeId),
280
231
  };
281
232
  case StreamingServers.MixDrop:
282
233
  return {
283
234
  headers: { Referer: serverUrl.origin },
284
- sources: await new MixDrop(this.proxyConfig, this.adapter).extract(
285
- serverUrl
286
- ),
235
+ sources: await new MixDrop(this.proxyConfig, this.adapter).extract(serverUrl),
287
236
  };
288
237
  case StreamingServers.StreamTape:
289
238
  return {
290
239
  headers: { Referer: serverUrl.origin },
291
- sources: await new StreamTape(
292
- this.proxyConfig,
293
- this.adapter
294
- ).extract(serverUrl),
240
+ sources: await new StreamTape(this.proxyConfig, this.adapter).extract(serverUrl),
295
241
  };
296
242
  case StreamingServers.StreamSB:
297
243
  return {
298
244
  headers: { Referer: serverUrl.origin },
299
- sources: await new StreamSB(this.proxyConfig, this.adapter).extract(
300
- serverUrl
301
- ),
245
+ sources: await new StreamSB(this.proxyConfig, this.adapter).extract(serverUrl),
302
246
  };
303
247
  case StreamingServers.StreamWish:
304
248
  return {
305
249
  headers: { Referer: serverUrl.origin },
306
- ...(await new StreamWish(this.proxyConfig, this.adapter).extract(
307
- serverUrl
308
- )),
250
+ ...(await new StreamWish(this.proxyConfig, this.adapter).extract(serverUrl)),
309
251
  };
310
252
  case StreamingServers.VidHide:
311
253
  return {
312
254
  headers: { Referer: serverUrl.href },
313
- sources: await new VidHide(this.proxyConfig, this.adapter).extract(
314
- serverUrl
315
- ),
255
+ sources: await new VidHide(this.proxyConfig, this.adapter).extract(serverUrl),
316
256
  };
317
257
  default:
318
258
  throw new Error('Server not supported');
@@ -322,17 +262,11 @@ class DramaCool extends MovieParser {
322
262
  // episodeId = `${this.baseUrl}/${episodeId}`;
323
263
 
324
264
  const servers = await this.fetchEpisodeServers(episodeId);
325
- const i = servers.findIndex(
326
- (s) => s.name.toLowerCase() === server.toLowerCase()
327
- );
265
+ const i = servers.findIndex((s) => s.name.toLowerCase() === server.toLowerCase());
328
266
  if (i === -1) {
329
267
  throw new Error(`Server ${server} not found`);
330
268
  }
331
- const serverUrl: URL = new URL(
332
- servers.filter(
333
- (s) => s.name.toLowerCase() === server.toLowerCase()
334
- )[0]!.url
335
- );
269
+ const serverUrl: URL = new URL(servers.filter((s) => s.name.toLowerCase() === server.toLowerCase())[0]!.url);
336
270
 
337
271
  return await this.fetchEpisodeSources(serverUrl.href, server);
338
272
  } catch (err) {
@@ -341,31 +275,15 @@ class DramaCool extends MovieParser {
341
275
  };
342
276
 
343
277
  fetchPopular = async (page: number = 1): Promise<ISearch<IMovieResult>> => {
344
- return this.fetchData(
345
- `${this.baseUrl}/all-most-popular-drama?page=${page}`,
346
- page
347
- );
278
+ return this.fetchData(`${this.baseUrl}/all-most-popular-drama?page=${page}`, page);
348
279
  };
349
280
 
350
- fetchRecentTvShows = async (
351
- page: number = 1
352
- ): Promise<ISearch<IMovieResult>> => {
353
- return this.fetchData(
354
- `${this.baseUrl}/all-recently-added/drama?page=${page}`,
355
- page,
356
- true
357
- );
281
+ fetchRecentTvShows = async (page: number = 1): Promise<ISearch<IMovieResult>> => {
282
+ return this.fetchData(`${this.baseUrl}/all-recently-added/drama?page=${page}`, page, true);
358
283
  };
359
284
 
360
- fetchRecentMovies = async (
361
- page: number = 1
362
- ): Promise<ISearch<IMovieResult>> => {
363
- return this.fetchData(
364
- `${this.baseUrl}/all-recently-added/movie?page=${page}`,
365
- page,
366
- false,
367
- true
368
- );
285
+ fetchRecentMovies = async (page: number = 1): Promise<ISearch<IMovieResult>> => {
286
+ return this.fetchData(`${this.baseUrl}/all-recently-added/movie?page=${page}`, page, false, true);
369
287
  };
370
288
 
371
289
  fetchSpotlight = async (): Promise<ISearch<IMovieResult>> => {
@@ -425,29 +343,19 @@ class DramaCool extends MovieParser {
425
343
  // }
426
344
 
427
345
  if (isTvShow) {
428
- result.episodeNumber = parseFloat(
429
- $(el).find('span.ep').text().trim().split(' ')[1]!
430
- );
346
+ result.episodeNumber = parseFloat($(el).find('span.ep').text().trim().split(' ')[1]!);
431
347
  }
432
348
 
433
349
  results.results.push(result);
434
350
  });
435
351
 
436
352
  const navSelector = 'ul.pagination';
437
- results.hasNextPage =
438
- $(navSelector).length > 0
439
- ? !$(navSelector).children().last().hasClass('selected')
440
- : false;
353
+ results.hasNextPage = $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('selected') : false;
441
354
 
442
355
  const lastPage = $(navSelector).children().last().find('a').attr('href');
443
- if (
444
- lastPage !== undefined &&
445
- lastPage !== '' &&
446
- lastPage.includes('page=')
447
- ) {
356
+ if (lastPage !== undefined && lastPage !== '' && lastPage.includes('page=')) {
448
357
  const maxPage = new URLSearchParams(lastPage).get('page');
449
- if (maxPage !== null && !isNaN(parseInt(maxPage)))
450
- results.totalPages = parseInt(maxPage);
358
+ if (maxPage !== null && !isNaN(parseInt(maxPage))) results.totalPages = parseInt(maxPage);
451
359
  else if (results.hasNextPage) results.totalPages = page + 1;
452
360
  } else if (results.hasNextPage) results.totalPages = page + 1;
453
361
 
@@ -463,11 +371,7 @@ class DramaCool extends MovieParser {
463
371
 
464
372
  private removeContainsFromString = (str: string, contains: string) => {
465
373
  contains = contains.toLowerCase();
466
- return str
467
- .toLowerCase()
468
- .replace(/\n/g, '')
469
- .replace(`${contains}:`, '')
470
- .trim();
374
+ return str.toLowerCase().replace(/\n/g, '').replace(`${contains}:`, '').trim();
471
375
  };
472
376
  private cleanUpText = (str: string) => {
473
377
  return str