react-native-consumet 1.6.0 → 3.0.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 (1046) hide show
  1. package/Consumet.podspec +2 -2
  2. package/README.md +24 -15
  3. package/android/build.gradle +9 -8
  4. package/android/generated/java/com/consumet/NativeConsumetSpec.java +0 -4
  5. package/android/generated/jni/RNConsumetSpec-generated.cpp +0 -6
  6. package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +0 -10
  7. package/android/src/androidTest/AndroidManifest.xml +4 -0
  8. package/android/src/androidTest/java/com/consumet/DeobfuscatorModuleTest.kt +88 -0
  9. package/android/src/androidTest/java/com/consumet/SynchronyEngineTest.kt +75 -0
  10. package/android/src/androidTest/java/com/consumet/TestSupport.kt +115 -0
  11. package/android/src/androidTest/java/com/consumet/WebViewContractTest.kt +125 -0
  12. package/android/src/main/java/com/consumet/ConsumetModule.kt +0 -13
  13. package/android/src/main/java/com/consumet/DdosGuardModule.kt +26 -60
  14. package/android/src/main/java/com/consumet/DeobfuscatorModule.kt +59 -68
  15. package/android/src/main/java/com/consumet/HttpRequestModule.kt +171 -285
  16. package/android/src/main/java/com/consumet/Synchrony.kt +65 -0
  17. package/android/src/main/java/com/consumet/SynchronyScriptCache.kt +121 -0
  18. package/android/src/main/java/com/consumet/WebViewDebugging.kt +36 -0
  19. package/android/src/main/java/com/consumet/WebViewTask.kt +101 -0
  20. package/ios/Consumet.mm +205 -184
  21. package/ios/RCConsumetSynchronyCache.h +51 -0
  22. package/ios/RCConsumetSynchronyCache.m +246 -0
  23. package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec-generated.mm +0 -7
  24. package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec.h +0 -2
  25. package/ios/generated/ReactCodegen/RNConsumetSpecJSI.h +0 -10
  26. package/lib/commonjs/NativeConsumet.ts +68 -2
  27. package/lib/commonjs/extension-registry.json +174 -54
  28. package/lib/commonjs/extension-registry.json.sig +1 -0
  29. package/lib/commonjs/extractors/asianload.js +11 -5
  30. package/lib/commonjs/extractors/asianload.js.map +1 -1
  31. package/lib/commonjs/extractors/filemoon.js +11 -6
  32. package/lib/commonjs/extractors/filemoon.js.map +1 -1
  33. package/lib/commonjs/extractors/flixcloud.js +0 -2
  34. package/lib/commonjs/extractors/flixcloud.js.map +1 -1
  35. package/lib/commonjs/extractors/gdflix.js +0 -2
  36. package/lib/commonjs/extractors/gdflix.js.map +1 -1
  37. package/lib/commonjs/extractors/gofile.js +0 -2
  38. package/lib/commonjs/extractors/gofile.js.map +1 -1
  39. package/lib/commonjs/extractors/gogocdn.js +13 -7
  40. package/lib/commonjs/extractors/gogocdn.js.map +1 -1
  41. package/lib/commonjs/extractors/hubcloud.js +0 -2
  42. package/lib/commonjs/extractors/hubcloud.js.map +1 -1
  43. package/lib/commonjs/extractors/index.js +28 -29
  44. package/lib/commonjs/extractors/index.js.map +1 -1
  45. package/lib/commonjs/extractors/kwik.js +0 -2
  46. package/lib/commonjs/extractors/kwik.js.map +1 -1
  47. package/lib/commonjs/extractors/megaplay.js +0 -2
  48. package/lib/commonjs/extractors/megaplay.js.map +1 -1
  49. package/lib/commonjs/extractors/megaup.js +2 -6
  50. package/lib/commonjs/extractors/megaup.js.map +1 -1
  51. package/lib/commonjs/extractors/mixdrop.js +10 -5
  52. package/lib/commonjs/extractors/mixdrop.js.map +1 -1
  53. package/lib/commonjs/extractors/mp4player.js +11 -6
  54. package/lib/commonjs/extractors/mp4player.js.map +1 -1
  55. package/lib/commonjs/extractors/mp4upload.js +10 -5
  56. package/lib/commonjs/extractors/mp4upload.js.map +1 -1
  57. package/lib/commonjs/extractors/rapidcloud.js +16 -10
  58. package/lib/commonjs/extractors/rapidcloud.js.map +1 -1
  59. package/lib/commonjs/extractors/streamhub.js +11 -6
  60. package/lib/commonjs/extractors/streamhub.js.map +1 -1
  61. package/lib/commonjs/extractors/streamlare.js +13 -8
  62. package/lib/commonjs/extractors/streamlare.js.map +1 -1
  63. package/lib/commonjs/extractors/streamsb.js +11 -6
  64. package/lib/commonjs/extractors/streamsb.js.map +1 -1
  65. package/lib/commonjs/extractors/streamtape.js +10 -5
  66. package/lib/commonjs/extractors/streamtape.js.map +1 -1
  67. package/lib/commonjs/extractors/vidhide.js +4 -4
  68. package/lib/commonjs/extractors/vidhide.js.map +1 -1
  69. package/lib/commonjs/extractors/vidmoly.js +11 -6
  70. package/lib/commonjs/extractors/vidmoly.js.map +1 -1
  71. package/lib/commonjs/extractors/vizcloud.js +11 -6
  72. package/lib/commonjs/extractors/vizcloud.js.map +1 -1
  73. package/lib/commonjs/extractors/voe.js +11 -6
  74. package/lib/commonjs/extractors/voe.js.map +1 -1
  75. package/lib/commonjs/index.js +130 -0
  76. package/lib/commonjs/index.js.map +1 -1
  77. package/lib/commonjs/models/base-provider.js +4 -0
  78. package/lib/commonjs/models/base-provider.js.map +1 -1
  79. package/lib/commonjs/models/extension-manifest.js +0 -4
  80. package/lib/commonjs/models/index.js +7 -0
  81. package/lib/commonjs/models/index.js.map +1 -1
  82. package/lib/commonjs/models/meta-error.js +36 -0
  83. package/lib/commonjs/models/meta-error.js.map +1 -0
  84. package/lib/commonjs/models/types.js +21 -0
  85. package/lib/commonjs/models/types.js.map +1 -1
  86. package/lib/commonjs/providers/anime/anikoto/anikoto.js +14 -10
  87. package/lib/commonjs/providers/anime/anikoto/anikoto.js.map +1 -1
  88. package/lib/commonjs/providers/anime/anikoto/create-anikoto.js +6 -4
  89. package/lib/commonjs/providers/anime/anikoto/create-anikoto.js.map +1 -1
  90. package/lib/commonjs/providers/anime/animekai/animekai.js +14 -8
  91. package/lib/commonjs/providers/anime/animekai/animekai.js.map +1 -1
  92. package/lib/commonjs/providers/anime/animekai/create-animekai.js +6 -4
  93. package/lib/commonjs/providers/anime/animekai/create-animekai.js.map +1 -1
  94. package/lib/commonjs/providers/anime/animepahe/animepahe.js +17 -11
  95. package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
  96. package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +6 -15
  97. package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
  98. package/lib/commonjs/providers/anime/animeunity.js +23 -10
  99. package/lib/commonjs/providers/anime/animeunity.js.map +1 -1
  100. package/lib/commonjs/providers/anime/anineko/anineko.js +18 -8
  101. package/lib/commonjs/providers/anime/anineko/anineko.js.map +1 -1
  102. package/lib/commonjs/providers/anime/anineko/create-anineko.js +4 -2
  103. package/lib/commonjs/providers/anime/anineko/create-anineko.js.map +1 -1
  104. package/lib/commonjs/providers/anime/index.js +26 -35
  105. package/lib/commonjs/providers/anime/index.js.map +1 -1
  106. package/lib/commonjs/providers/anime/reanime/create-reanime.js +4 -5
  107. package/lib/commonjs/providers/anime/reanime/create-reanime.js.map +1 -1
  108. package/lib/commonjs/providers/anime/reanime/reanime.js +13 -8
  109. package/lib/commonjs/providers/anime/reanime/reanime.js.map +1 -1
  110. package/lib/commonjs/providers/anime/zoro/create-zoro.js +8 -8
  111. package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
  112. package/lib/commonjs/providers/anime/zoro/zoro.js +17 -11
  113. package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
  114. package/lib/commonjs/providers/index.js +8 -8
  115. package/lib/commonjs/providers/index.js.map +1 -1
  116. package/lib/commonjs/providers/light-novels/index.js +6 -7
  117. package/lib/commonjs/providers/light-novels/index.js.map +1 -1
  118. package/lib/commonjs/providers/light-novels/novelupdates.js +32 -11
  119. package/lib/commonjs/providers/light-novels/novelupdates.js.map +1 -1
  120. package/lib/commonjs/providers/light-novels/readlightnovels.js +15 -7
  121. package/lib/commonjs/providers/light-novels/readlightnovels.js.map +1 -1
  122. package/lib/commonjs/providers/manga/asurascans.js +169 -100
  123. package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
  124. package/lib/commonjs/providers/manga/flamescans.js +181 -94
  125. package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
  126. package/lib/commonjs/providers/manga/index.js +14 -31
  127. package/lib/commonjs/providers/manga/index.js.map +1 -1
  128. package/lib/commonjs/providers/manga/mangadex.js +243 -231
  129. package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
  130. package/lib/commonjs/providers/manga/mangahere.js +287 -138
  131. package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
  132. package/lib/commonjs/providers/manga/mangakakalot.js +215 -111
  133. package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
  134. package/lib/commonjs/providers/manga/mangapill.js +137 -44
  135. package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
  136. package/lib/commonjs/providers/meta/anilist.js +595 -1030
  137. package/lib/commonjs/providers/meta/anilist.js.map +1 -1
  138. package/lib/commonjs/providers/meta/index.js +1 -0
  139. package/lib/commonjs/providers/meta/index.js.map +1 -1
  140. package/lib/commonjs/providers/meta/mal.js +86 -89
  141. package/lib/commonjs/providers/meta/mal.js.map +1 -1
  142. package/lib/commonjs/providers/meta/tmdb-api-key.js +29 -0
  143. package/lib/commonjs/providers/meta/tmdb-api-key.js.map +1 -0
  144. package/lib/commonjs/providers/meta/tmdb.js +122 -94
  145. package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
  146. package/lib/commonjs/providers/movies/himovies/create-himovies.js +3 -3
  147. package/lib/commonjs/providers/movies/himovies/create-himovies.js.map +1 -1
  148. package/lib/commonjs/providers/movies/himovies/himovies.js +13 -8
  149. package/lib/commonjs/providers/movies/himovies/himovies.js.map +1 -1
  150. package/lib/commonjs/providers/movies/index.js +20 -30
  151. package/lib/commonjs/providers/movies/index.js.map +1 -1
  152. package/lib/commonjs/providers/movies/multimovies/create-multimovies.js +3 -3
  153. package/lib/commonjs/providers/movies/multimovies/create-multimovies.js.map +1 -1
  154. package/lib/commonjs/providers/movies/multimovies/multimovies.js +13 -8
  155. package/lib/commonjs/providers/movies/multimovies/multimovies.js.map +1 -1
  156. package/lib/commonjs/providers/movies/multistream/index.js +28 -17
  157. package/lib/commonjs/providers/movies/multistream/index.js.map +1 -1
  158. package/lib/commonjs/providers/movies/multistream/utils.js +18 -19
  159. package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
  160. package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js +451 -185
  161. package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
  162. package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js +22 -0
  163. package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js.map +1 -0
  164. package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js +11 -24
  165. package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
  166. package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js +30 -0
  167. package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js.map +1 -0
  168. package/lib/commonjs/providers/movies/netflixmirror/primemirror.js +22 -0
  169. package/lib/commonjs/providers/movies/netflixmirror/primemirror.js.map +1 -0
  170. package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js +57 -40
  171. package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
  172. package/lib/commonjs/providers/movies/vegamovies/vegamovies.js +11 -14
  173. package/lib/commonjs/providers/movies/vegamovies/vegamovies.js.map +1 -1
  174. package/lib/commonjs/providers/movies/yflix/create-yflix.js +2 -2
  175. package/lib/commonjs/providers/movies/yflix/create-yflix.js.map +1 -1
  176. package/lib/commonjs/providers/movies/yflix/yflix.js +13 -6
  177. package/lib/commonjs/providers/movies/yflix/yflix.js.map +1 -1
  178. package/lib/commonjs/providers/provider-args.js +17 -0
  179. package/lib/commonjs/providers/provider-args.js.map +1 -0
  180. package/lib/commonjs/registry-signing-keys.js +26 -0
  181. package/lib/commonjs/registry-signing-keys.js.map +1 -0
  182. package/lib/commonjs/utils/ExtractorManager.js +136 -233
  183. package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
  184. package/lib/commonjs/utils/ProviderManager.js +181 -251
  185. package/lib/commonjs/utils/ProviderManager.js.map +1 -1
  186. package/lib/commonjs/utils/create-extractor-context.js +0 -1
  187. package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
  188. package/lib/commonjs/utils/create-provider-context.js +37 -29
  189. package/lib/commonjs/utils/create-provider-context.js.map +1 -1
  190. package/lib/commonjs/utils/extension-integrity.js +62 -0
  191. package/lib/commonjs/utils/extension-integrity.js.map +1 -0
  192. package/lib/commonjs/utils/extension-modules.js +109 -0
  193. package/lib/commonjs/utils/extension-modules.js.map +1 -0
  194. package/lib/commonjs/utils/extension-utils.js +46 -40
  195. package/lib/commonjs/utils/extension-utils.js.map +1 -1
  196. package/lib/commonjs/utils/fetch-with-timeout.js +76 -0
  197. package/lib/commonjs/utils/fetch-with-timeout.js.map +1 -0
  198. package/lib/commonjs/utils/index.js +96 -2
  199. package/lib/commonjs/utils/index.js.map +1 -1
  200. package/lib/commonjs/utils/manga.js +60 -0
  201. package/lib/commonjs/utils/manga.js.map +1 -0
  202. package/lib/commonjs/utils/meta-http.js +42 -0
  203. package/lib/commonjs/utils/meta-http.js.map +1 -0
  204. package/lib/commonjs/utils/provider-maps.js +26 -18
  205. package/lib/commonjs/utils/provider-maps.js.map +1 -1
  206. package/lib/commonjs/utils/queries.js +24 -11
  207. package/lib/commonjs/utils/queries.js.map +1 -1
  208. package/lib/commonjs/utils/registry-schema.js +263 -0
  209. package/lib/commonjs/utils/registry-schema.js.map +1 -0
  210. package/lib/commonjs/utils/registry-signature.js +180 -0
  211. package/lib/commonjs/utils/registry-signature.js.map +1 -0
  212. package/lib/commonjs/utils/url-polyfill.js +1075 -426
  213. package/lib/commonjs/utils/url-polyfill.js.map +1 -1
  214. package/lib/commonjs/utils/utils.js +2 -30
  215. package/lib/commonjs/utils/utils.js.map +1 -1
  216. package/lib/module/NativeConsumet.ts +68 -2
  217. package/lib/module/extension-registry.json +174 -54
  218. package/lib/module/extension-registry.json.sig +1 -0
  219. package/lib/module/extractors/asianload.js +10 -5
  220. package/lib/module/extractors/asianload.js.map +1 -1
  221. package/lib/module/extractors/filemoon.js +10 -5
  222. package/lib/module/extractors/filemoon.js.map +1 -1
  223. package/lib/module/extractors/flixcloud.js +0 -1
  224. package/lib/module/extractors/flixcloud.js.map +1 -1
  225. package/lib/module/extractors/gdflix.js +0 -1
  226. package/lib/module/extractors/gdflix.js.map +1 -1
  227. package/lib/module/extractors/gofile.js +0 -1
  228. package/lib/module/extractors/gofile.js.map +1 -1
  229. package/lib/module/extractors/gogocdn.js +12 -7
  230. package/lib/module/extractors/gogocdn.js.map +1 -1
  231. package/lib/module/extractors/hubcloud.js +0 -1
  232. package/lib/module/extractors/hubcloud.js.map +1 -1
  233. package/lib/module/extractors/index.js +24 -25
  234. package/lib/module/extractors/index.js.map +1 -1
  235. package/lib/module/extractors/kwik.js +0 -1
  236. package/lib/module/extractors/kwik.js.map +1 -1
  237. package/lib/module/extractors/megaplay.js +0 -1
  238. package/lib/module/extractors/megaplay.js.map +1 -1
  239. package/lib/module/extractors/megaup.js +2 -4
  240. package/lib/module/extractors/megaup.js.map +1 -1
  241. package/lib/module/extractors/mixdrop.js +9 -4
  242. package/lib/module/extractors/mixdrop.js.map +1 -1
  243. package/lib/module/extractors/mp4player.js +10 -5
  244. package/lib/module/extractors/mp4player.js.map +1 -1
  245. package/lib/module/extractors/mp4upload.js +9 -4
  246. package/lib/module/extractors/mp4upload.js.map +1 -1
  247. package/lib/module/extractors/rapidcloud.js +15 -10
  248. package/lib/module/extractors/rapidcloud.js.map +1 -1
  249. package/lib/module/extractors/streamhub.js +10 -5
  250. package/lib/module/extractors/streamhub.js.map +1 -1
  251. package/lib/module/extractors/streamlare.js +11 -6
  252. package/lib/module/extractors/streamlare.js.map +1 -1
  253. package/lib/module/extractors/streamsb.js +10 -5
  254. package/lib/module/extractors/streamsb.js.map +1 -1
  255. package/lib/module/extractors/streamtape.js +9 -4
  256. package/lib/module/extractors/streamtape.js.map +1 -1
  257. package/lib/module/extractors/vidhide.js +4 -3
  258. package/lib/module/extractors/vidhide.js.map +1 -1
  259. package/lib/module/extractors/vidmoly.js +10 -5
  260. package/lib/module/extractors/vidmoly.js.map +1 -1
  261. package/lib/module/extractors/vizcloud.js +10 -5
  262. package/lib/module/extractors/vizcloud.js.map +1 -1
  263. package/lib/module/extractors/voe.js +10 -5
  264. package/lib/module/extractors/voe.js.map +1 -1
  265. package/lib/module/index.js +11 -7
  266. package/lib/module/index.js.map +1 -1
  267. package/lib/module/models/base-provider.js +4 -0
  268. package/lib/module/models/base-provider.js.map +1 -1
  269. package/lib/module/models/extension-manifest.js +0 -2
  270. package/lib/module/models/index.js +2 -1
  271. package/lib/module/models/index.js.map +1 -1
  272. package/lib/module/models/meta-error.js +31 -0
  273. package/lib/module/models/meta-error.js.map +1 -0
  274. package/lib/module/models/types.js +30 -0
  275. package/lib/module/models/types.js.map +1 -1
  276. package/lib/module/providers/anime/anikoto/anikoto.js +13 -8
  277. package/lib/module/providers/anime/anikoto/anikoto.js.map +1 -1
  278. package/lib/module/providers/anime/anikoto/create-anikoto.js +6 -4
  279. package/lib/module/providers/anime/anikoto/create-anikoto.js.map +1 -1
  280. package/lib/module/providers/anime/animekai/animekai.js +13 -6
  281. package/lib/module/providers/anime/animekai/animekai.js.map +1 -1
  282. package/lib/module/providers/anime/animekai/create-animekai.js +6 -4
  283. package/lib/module/providers/anime/animekai/create-animekai.js.map +1 -1
  284. package/lib/module/providers/anime/animepahe/animepahe.js +13 -8
  285. package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
  286. package/lib/module/providers/anime/animepahe/create-animepahe.js +6 -15
  287. package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
  288. package/lib/module/providers/anime/animeunity.js +21 -9
  289. package/lib/module/providers/anime/animeunity.js.map +1 -1
  290. package/lib/module/providers/anime/anineko/anineko.js +17 -6
  291. package/lib/module/providers/anime/anineko/anineko.js.map +1 -1
  292. package/lib/module/providers/anime/anineko/create-anineko.js +4 -2
  293. package/lib/module/providers/anime/anineko/create-anineko.js.map +1 -1
  294. package/lib/module/providers/anime/index.js +13 -21
  295. package/lib/module/providers/anime/index.js.map +1 -1
  296. package/lib/module/providers/anime/reanime/create-reanime.js +3 -4
  297. package/lib/module/providers/anime/reanime/create-reanime.js.map +1 -1
  298. package/lib/module/providers/anime/reanime/reanime.js +12 -6
  299. package/lib/module/providers/anime/reanime/reanime.js.map +1 -1
  300. package/lib/module/providers/anime/zoro/create-zoro.js +8 -9
  301. package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
  302. package/lib/module/providers/anime/zoro/zoro.js +13 -8
  303. package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
  304. package/lib/module/providers/index.js +4 -4
  305. package/lib/module/providers/index.js.map +1 -1
  306. package/lib/module/providers/light-novels/index.js +3 -3
  307. package/lib/module/providers/light-novels/index.js.map +1 -1
  308. package/lib/module/providers/light-novels/novelupdates.js +29 -11
  309. package/lib/module/providers/light-novels/novelupdates.js.map +1 -1
  310. package/lib/module/providers/light-novels/readlightnovels.js +12 -7
  311. package/lib/module/providers/light-novels/readlightnovels.js.map +1 -1
  312. package/lib/module/providers/manga/asurascans.js +169 -99
  313. package/lib/module/providers/manga/asurascans.js.map +1 -1
  314. package/lib/module/providers/manga/flamescans.js +181 -93
  315. package/lib/module/providers/manga/flamescans.js.map +1 -1
  316. package/lib/module/providers/manga/index.js +8 -24
  317. package/lib/module/providers/manga/index.js.map +1 -1
  318. package/lib/module/providers/manga/mangadex.js +244 -232
  319. package/lib/module/providers/manga/mangadex.js.map +1 -1
  320. package/lib/module/providers/manga/mangahere.js +284 -135
  321. package/lib/module/providers/manga/mangahere.js.map +1 -1
  322. package/lib/module/providers/manga/mangakakalot.js +215 -110
  323. package/lib/module/providers/manga/mangakakalot.js.map +1 -1
  324. package/lib/module/providers/manga/mangapill.js +137 -44
  325. package/lib/module/providers/manga/mangapill.js.map +1 -1
  326. package/lib/module/providers/meta/anilist.js +598 -1031
  327. package/lib/module/providers/meta/anilist.js.map +1 -1
  328. package/lib/module/providers/meta/index.js +1 -0
  329. package/lib/module/providers/meta/index.js.map +1 -1
  330. package/lib/module/providers/meta/mal.js +87 -89
  331. package/lib/module/providers/meta/mal.js.map +1 -1
  332. package/lib/module/providers/meta/tmdb-api-key.js +24 -0
  333. package/lib/module/providers/meta/tmdb-api-key.js.map +1 -0
  334. package/lib/module/providers/meta/tmdb.js +123 -93
  335. package/lib/module/providers/meta/tmdb.js.map +1 -1
  336. package/lib/module/providers/movies/himovies/create-himovies.js +3 -3
  337. package/lib/module/providers/movies/himovies/create-himovies.js.map +1 -1
  338. package/lib/module/providers/movies/himovies/himovies.js +12 -9
  339. package/lib/module/providers/movies/himovies/himovies.js.map +1 -1
  340. package/lib/module/providers/movies/index.js +14 -11
  341. package/lib/module/providers/movies/index.js.map +1 -1
  342. package/lib/module/providers/movies/multimovies/create-multimovies.js +3 -3
  343. package/lib/module/providers/movies/multimovies/create-multimovies.js.map +1 -1
  344. package/lib/module/providers/movies/multimovies/multimovies.js +12 -8
  345. package/lib/module/providers/movies/multimovies/multimovies.js.map +1 -1
  346. package/lib/module/providers/movies/multistream/index.js +27 -17
  347. package/lib/module/providers/movies/multistream/index.js.map +1 -1
  348. package/lib/module/providers/movies/multistream/utils.js +8 -9
  349. package/lib/module/providers/movies/multistream/utils.js.map +1 -1
  350. package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js +449 -185
  351. package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
  352. package/lib/module/providers/movies/netflixmirror/disneymirror.js +17 -0
  353. package/lib/module/providers/movies/netflixmirror/disneymirror.js.map +1 -0
  354. package/lib/module/providers/movies/netflixmirror/netflixmirror.js +9 -24
  355. package/lib/module/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
  356. package/lib/module/providers/movies/netflixmirror/netmirror-parser.js +25 -0
  357. package/lib/module/providers/movies/netflixmirror/netmirror-parser.js.map +1 -0
  358. package/lib/module/providers/movies/netflixmirror/primemirror.js +17 -0
  359. package/lib/module/providers/movies/netflixmirror/primemirror.js.map +1 -0
  360. package/lib/module/providers/movies/vegamovies/create-vegamovies.js +57 -40
  361. package/lib/module/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
  362. package/lib/module/providers/movies/vegamovies/vegamovies.js +12 -10
  363. package/lib/module/providers/movies/vegamovies/vegamovies.js.map +1 -1
  364. package/lib/module/providers/movies/yflix/create-yflix.js +2 -2
  365. package/lib/module/providers/movies/yflix/create-yflix.js.map +1 -1
  366. package/lib/module/providers/movies/yflix/yflix.js +12 -6
  367. package/lib/module/providers/movies/yflix/yflix.js.map +1 -1
  368. package/lib/module/providers/provider-args.js +14 -0
  369. package/lib/module/providers/provider-args.js.map +1 -0
  370. package/lib/module/registry-signing-keys.js +22 -0
  371. package/lib/module/registry-signing-keys.js.map +1 -0
  372. package/lib/module/utils/ExtractorManager.js +138 -234
  373. package/lib/module/utils/ExtractorManager.js.map +1 -1
  374. package/lib/module/utils/ProviderManager.js +180 -250
  375. package/lib/module/utils/ProviderManager.js.map +1 -1
  376. package/lib/module/utils/create-extractor-context.js +1 -2
  377. package/lib/module/utils/create-extractor-context.js.map +1 -1
  378. package/lib/module/utils/create-provider-context.js +39 -30
  379. package/lib/module/utils/create-provider-context.js.map +1 -1
  380. package/lib/module/utils/extension-integrity.js +52 -0
  381. package/lib/module/utils/extension-integrity.js.map +1 -0
  382. package/lib/module/utils/extension-modules.js +101 -0
  383. package/lib/module/utils/extension-modules.js.map +1 -0
  384. package/lib/module/utils/extension-utils.js +46 -40
  385. package/lib/module/utils/extension-utils.js.map +1 -1
  386. package/lib/module/utils/fetch-with-timeout.js +71 -0
  387. package/lib/module/utils/fetch-with-timeout.js.map +1 -0
  388. package/lib/module/utils/index.js +7 -3
  389. package/lib/module/utils/index.js.map +1 -1
  390. package/lib/module/utils/manga.js +54 -0
  391. package/lib/module/utils/manga.js.map +1 -0
  392. package/lib/module/utils/meta-http.js +37 -0
  393. package/lib/module/utils/meta-http.js.map +1 -0
  394. package/lib/module/utils/provider-maps.js +26 -18
  395. package/lib/module/utils/provider-maps.js.map +1 -1
  396. package/lib/module/utils/queries.js +22 -9
  397. package/lib/module/utils/queries.js.map +1 -1
  398. package/lib/module/utils/registry-schema.js +255 -0
  399. package/lib/module/utils/registry-schema.js.map +1 -0
  400. package/lib/module/utils/registry-signature.js +168 -0
  401. package/lib/module/utils/registry-signature.js.map +1 -0
  402. package/lib/module/utils/url-polyfill.js +1073 -425
  403. package/lib/module/utils/url-polyfill.js.map +1 -1
  404. package/lib/module/utils/utils.js +0 -26
  405. package/lib/module/utils/utils.js.map +1 -1
  406. package/lib/typescript/commonjs/src/NativeConsumet.d.ts +68 -2
  407. package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
  408. package/lib/typescript/commonjs/src/extractors/asianload.d.ts +5 -3
  409. package/lib/typescript/commonjs/src/extractors/asianload.d.ts.map +1 -1
  410. package/lib/typescript/commonjs/src/extractors/filemoon.d.ts +5 -3
  411. package/lib/typescript/commonjs/src/extractors/filemoon.d.ts.map +1 -1
  412. package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts +0 -1
  413. package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts.map +1 -1
  414. package/lib/typescript/commonjs/src/extractors/gdflix.d.ts +0 -1
  415. package/lib/typescript/commonjs/src/extractors/gdflix.d.ts.map +1 -1
  416. package/lib/typescript/commonjs/src/extractors/gofile.d.ts +0 -1
  417. package/lib/typescript/commonjs/src/extractors/gofile.d.ts.map +1 -1
  418. package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts +5 -3
  419. package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts.map +1 -1
  420. package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts +0 -1
  421. package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts.map +1 -1
  422. package/lib/typescript/commonjs/src/extractors/index.d.ts +24 -25
  423. package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
  424. package/lib/typescript/commonjs/src/extractors/kwik.d.ts +0 -1
  425. package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
  426. package/lib/typescript/commonjs/src/extractors/megaplay.d.ts +0 -1
  427. package/lib/typescript/commonjs/src/extractors/megaplay.d.ts.map +1 -1
  428. package/lib/typescript/commonjs/src/extractors/megaup.d.ts +0 -1
  429. package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +1 -1
  430. package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts +5 -3
  431. package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts.map +1 -1
  432. package/lib/typescript/commonjs/src/extractors/mp4player.d.ts +5 -3
  433. package/lib/typescript/commonjs/src/extractors/mp4player.d.ts.map +1 -1
  434. package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts +5 -3
  435. package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts.map +1 -1
  436. package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts +5 -3
  437. package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts.map +1 -1
  438. package/lib/typescript/commonjs/src/extractors/streamhub.d.ts +5 -3
  439. package/lib/typescript/commonjs/src/extractors/streamhub.d.ts.map +1 -1
  440. package/lib/typescript/commonjs/src/extractors/streamlare.d.ts +5 -4
  441. package/lib/typescript/commonjs/src/extractors/streamlare.d.ts.map +1 -1
  442. package/lib/typescript/commonjs/src/extractors/streamsb.d.ts +5 -3
  443. package/lib/typescript/commonjs/src/extractors/streamsb.d.ts.map +1 -1
  444. package/lib/typescript/commonjs/src/extractors/streamtape.d.ts +5 -3
  445. package/lib/typescript/commonjs/src/extractors/streamtape.d.ts.map +1 -1
  446. package/lib/typescript/commonjs/src/extractors/vidhide.d.ts +0 -1
  447. package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
  448. package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts +5 -3
  449. package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts.map +1 -1
  450. package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts +5 -3
  451. package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts.map +1 -1
  452. package/lib/typescript/commonjs/src/extractors/voe.d.ts +5 -3
  453. package/lib/typescript/commonjs/src/extractors/voe.d.ts.map +1 -1
  454. package/lib/typescript/commonjs/src/index.d.ts +15 -9
  455. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  456. package/lib/typescript/commonjs/src/models/base-provider.d.ts +5 -1
  457. package/lib/typescript/commonjs/src/models/base-provider.d.ts.map +1 -1
  458. package/lib/typescript/commonjs/src/models/extension-manifest.d.ts +27 -5
  459. package/lib/typescript/commonjs/src/models/extension-manifest.d.ts.map +1 -1
  460. package/lib/typescript/commonjs/src/models/extractor-context.d.ts +1 -2
  461. package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
  462. package/lib/typescript/commonjs/src/models/index.d.ts +6 -4
  463. package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
  464. package/lib/typescript/commonjs/src/models/meta-error.d.ts +20 -0
  465. package/lib/typescript/commonjs/src/models/meta-error.d.ts.map +1 -0
  466. package/lib/typescript/commonjs/src/models/provider-context.d.ts +21 -16
  467. package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
  468. package/lib/typescript/commonjs/src/models/types.d.ts +144 -8
  469. package/lib/typescript/commonjs/src/models/types.d.ts.map +1 -1
  470. package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts +7 -2
  471. package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts.map +1 -1
  472. package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts +3 -3
  473. package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
  474. package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts +7 -2
  475. package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts.map +1 -1
  476. package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts +3 -3
  477. package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts.map +1 -1
  478. package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts +7 -2
  479. package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
  480. package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts +3 -3
  481. package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
  482. package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts +11 -3
  483. package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts.map +1 -1
  484. package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts +7 -2
  485. package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts.map +1 -1
  486. package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts +3 -3
  487. package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
  488. package/lib/typescript/commonjs/src/providers/anime/index.d.ts +13 -22
  489. package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
  490. package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts +1 -2
  491. package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts.map +1 -1
  492. package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts +7 -2
  493. package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts.map +1 -1
  494. package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +3 -3
  495. package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
  496. package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts +7 -2
  497. package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
  498. package/lib/typescript/commonjs/src/providers/index.d.ts +4 -4
  499. package/lib/typescript/commonjs/src/providers/index.d.ts.map +1 -1
  500. package/lib/typescript/commonjs/src/providers/light-novels/index.d.ts +3 -4
  501. package/lib/typescript/commonjs/src/providers/light-novels/index.d.ts.map +1 -1
  502. package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts +7 -3
  503. package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts.map +1 -1
  504. package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts +5 -3
  505. package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
  506. package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts +19 -7
  507. package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
  508. package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts +23 -6
  509. package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
  510. package/lib/typescript/commonjs/src/providers/manga/index.d.ts +7 -24
  511. package/lib/typescript/commonjs/src/providers/manga/index.d.ts.map +1 -1
  512. package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts +27 -8
  513. package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
  514. package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts +20 -6
  515. package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
  516. package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts +31 -7
  517. package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
  518. package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts +21 -5
  519. package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
  520. package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts +26 -9
  521. package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
  522. package/lib/typescript/commonjs/src/providers/meta/index.d.ts +1 -0
  523. package/lib/typescript/commonjs/src/providers/meta/index.d.ts.map +1 -1
  524. package/lib/typescript/commonjs/src/providers/meta/mal.d.ts +9 -4
  525. package/lib/typescript/commonjs/src/providers/meta/mal.d.ts.map +1 -1
  526. package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts +7 -0
  527. package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts.map +1 -0
  528. package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts +18 -5
  529. package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
  530. package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts +8 -3
  531. package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts.map +1 -1
  532. package/lib/typescript/commonjs/src/providers/movies/index.d.ts +14 -10
  533. package/lib/typescript/commonjs/src/providers/movies/index.d.ts.map +1 -1
  534. package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts +8 -3
  535. package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
  536. package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts +10 -3
  537. package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +1 -1
  538. package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +7 -6
  539. package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts.map +1 -1
  540. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts +2 -6
  541. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
  542. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts +12 -0
  543. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts.map +1 -0
  544. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts +9 -17
  545. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
  546. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts +21 -0
  547. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +1 -0
  548. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts +12 -0
  549. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts.map +1 -0
  550. package/lib/typescript/commonjs/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -1
  551. package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts +8 -5
  552. package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
  553. package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts +8 -3
  554. package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts.map +1 -1
  555. package/lib/typescript/commonjs/src/providers/provider-args.d.ts +8 -0
  556. package/lib/typescript/commonjs/src/providers/provider-args.d.ts.map +1 -0
  557. package/lib/typescript/commonjs/src/registry-signing-keys.d.ts +18 -0
  558. package/lib/typescript/commonjs/src/registry-signing-keys.d.ts.map +1 -0
  559. package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts +33 -15
  560. package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -1
  561. package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +73 -21
  562. package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -1
  563. package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts.map +1 -1
  564. package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -1
  565. package/lib/typescript/commonjs/src/utils/extension-integrity.d.ts +40 -0
  566. package/lib/typescript/commonjs/src/utils/extension-integrity.d.ts.map +1 -0
  567. package/lib/typescript/commonjs/src/utils/extension-modules.d.ts +49 -0
  568. package/lib/typescript/commonjs/src/utils/extension-modules.d.ts.map +1 -0
  569. package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +24 -46
  570. package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
  571. package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts +29 -0
  572. package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts.map +1 -0
  573. package/lib/typescript/commonjs/src/utils/index.d.ts +12 -4
  574. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
  575. package/lib/typescript/commonjs/src/utils/manga.d.ts +19 -0
  576. package/lib/typescript/commonjs/src/utils/manga.d.ts.map +1 -0
  577. package/lib/typescript/commonjs/src/utils/meta-http.d.ts +16 -0
  578. package/lib/typescript/commonjs/src/utils/meta-http.d.ts.map +1 -0
  579. package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +14 -7
  580. package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -1
  581. package/lib/typescript/commonjs/src/utils/queries.d.ts +17 -8
  582. package/lib/typescript/commonjs/src/utils/queries.d.ts.map +1 -1
  583. package/lib/typescript/commonjs/src/utils/registry-schema.d.ts +66 -0
  584. package/lib/typescript/commonjs/src/utils/registry-schema.d.ts.map +1 -0
  585. package/lib/typescript/commonjs/src/utils/registry-signature.d.ts +66 -0
  586. package/lib/typescript/commonjs/src/utils/registry-signature.d.ts.map +1 -0
  587. package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts +20 -8
  588. package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts.map +1 -1
  589. package/lib/typescript/commonjs/src/utils/utils.d.ts +0 -1
  590. package/lib/typescript/commonjs/src/utils/utils.d.ts.map +1 -1
  591. package/lib/typescript/module/src/NativeConsumet.d.ts +68 -2
  592. package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
  593. package/lib/typescript/module/src/extractors/asianload.d.ts +5 -3
  594. package/lib/typescript/module/src/extractors/asianload.d.ts.map +1 -1
  595. package/lib/typescript/module/src/extractors/filemoon.d.ts +5 -3
  596. package/lib/typescript/module/src/extractors/filemoon.d.ts.map +1 -1
  597. package/lib/typescript/module/src/extractors/flixcloud.d.ts +0 -1
  598. package/lib/typescript/module/src/extractors/flixcloud.d.ts.map +1 -1
  599. package/lib/typescript/module/src/extractors/gdflix.d.ts +0 -1
  600. package/lib/typescript/module/src/extractors/gdflix.d.ts.map +1 -1
  601. package/lib/typescript/module/src/extractors/gofile.d.ts +0 -1
  602. package/lib/typescript/module/src/extractors/gofile.d.ts.map +1 -1
  603. package/lib/typescript/module/src/extractors/gogocdn.d.ts +5 -3
  604. package/lib/typescript/module/src/extractors/gogocdn.d.ts.map +1 -1
  605. package/lib/typescript/module/src/extractors/hubcloud.d.ts +0 -1
  606. package/lib/typescript/module/src/extractors/hubcloud.d.ts.map +1 -1
  607. package/lib/typescript/module/src/extractors/index.d.ts +24 -25
  608. package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
  609. package/lib/typescript/module/src/extractors/kwik.d.ts +0 -1
  610. package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
  611. package/lib/typescript/module/src/extractors/megaplay.d.ts +0 -1
  612. package/lib/typescript/module/src/extractors/megaplay.d.ts.map +1 -1
  613. package/lib/typescript/module/src/extractors/megaup.d.ts +0 -1
  614. package/lib/typescript/module/src/extractors/megaup.d.ts.map +1 -1
  615. package/lib/typescript/module/src/extractors/mixdrop.d.ts +5 -3
  616. package/lib/typescript/module/src/extractors/mixdrop.d.ts.map +1 -1
  617. package/lib/typescript/module/src/extractors/mp4player.d.ts +5 -3
  618. package/lib/typescript/module/src/extractors/mp4player.d.ts.map +1 -1
  619. package/lib/typescript/module/src/extractors/mp4upload.d.ts +5 -3
  620. package/lib/typescript/module/src/extractors/mp4upload.d.ts.map +1 -1
  621. package/lib/typescript/module/src/extractors/rapidcloud.d.ts +5 -3
  622. package/lib/typescript/module/src/extractors/rapidcloud.d.ts.map +1 -1
  623. package/lib/typescript/module/src/extractors/streamhub.d.ts +5 -3
  624. package/lib/typescript/module/src/extractors/streamhub.d.ts.map +1 -1
  625. package/lib/typescript/module/src/extractors/streamlare.d.ts +5 -4
  626. package/lib/typescript/module/src/extractors/streamlare.d.ts.map +1 -1
  627. package/lib/typescript/module/src/extractors/streamsb.d.ts +5 -3
  628. package/lib/typescript/module/src/extractors/streamsb.d.ts.map +1 -1
  629. package/lib/typescript/module/src/extractors/streamtape.d.ts +5 -3
  630. package/lib/typescript/module/src/extractors/streamtape.d.ts.map +1 -1
  631. package/lib/typescript/module/src/extractors/vidhide.d.ts +0 -1
  632. package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
  633. package/lib/typescript/module/src/extractors/vidmoly.d.ts +5 -3
  634. package/lib/typescript/module/src/extractors/vidmoly.d.ts.map +1 -1
  635. package/lib/typescript/module/src/extractors/vizcloud.d.ts +5 -3
  636. package/lib/typescript/module/src/extractors/vizcloud.d.ts.map +1 -1
  637. package/lib/typescript/module/src/extractors/voe.d.ts +5 -3
  638. package/lib/typescript/module/src/extractors/voe.d.ts.map +1 -1
  639. package/lib/typescript/module/src/index.d.ts +15 -9
  640. package/lib/typescript/module/src/index.d.ts.map +1 -1
  641. package/lib/typescript/module/src/models/base-provider.d.ts +5 -1
  642. package/lib/typescript/module/src/models/base-provider.d.ts.map +1 -1
  643. package/lib/typescript/module/src/models/extension-manifest.d.ts +27 -5
  644. package/lib/typescript/module/src/models/extension-manifest.d.ts.map +1 -1
  645. package/lib/typescript/module/src/models/extractor-context.d.ts +1 -2
  646. package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
  647. package/lib/typescript/module/src/models/index.d.ts +6 -4
  648. package/lib/typescript/module/src/models/index.d.ts.map +1 -1
  649. package/lib/typescript/module/src/models/meta-error.d.ts +20 -0
  650. package/lib/typescript/module/src/models/meta-error.d.ts.map +1 -0
  651. package/lib/typescript/module/src/models/provider-context.d.ts +21 -16
  652. package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
  653. package/lib/typescript/module/src/models/types.d.ts +144 -8
  654. package/lib/typescript/module/src/models/types.d.ts.map +1 -1
  655. package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts +7 -2
  656. package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts.map +1 -1
  657. package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts +3 -3
  658. package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
  659. package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts +7 -2
  660. package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts.map +1 -1
  661. package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts +3 -3
  662. package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts.map +1 -1
  663. package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts +7 -2
  664. package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
  665. package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts +3 -3
  666. package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
  667. package/lib/typescript/module/src/providers/anime/animeunity.d.ts +11 -3
  668. package/lib/typescript/module/src/providers/anime/animeunity.d.ts.map +1 -1
  669. package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts +7 -2
  670. package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts.map +1 -1
  671. package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts +3 -3
  672. package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
  673. package/lib/typescript/module/src/providers/anime/index.d.ts +13 -22
  674. package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
  675. package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts +1 -2
  676. package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts.map +1 -1
  677. package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts +7 -2
  678. package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts.map +1 -1
  679. package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +3 -3
  680. package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
  681. package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts +7 -2
  682. package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
  683. package/lib/typescript/module/src/providers/index.d.ts +4 -4
  684. package/lib/typescript/module/src/providers/index.d.ts.map +1 -1
  685. package/lib/typescript/module/src/providers/light-novels/index.d.ts +3 -4
  686. package/lib/typescript/module/src/providers/light-novels/index.d.ts.map +1 -1
  687. package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts +7 -3
  688. package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts.map +1 -1
  689. package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts +5 -3
  690. package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
  691. package/lib/typescript/module/src/providers/manga/asurascans.d.ts +19 -7
  692. package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
  693. package/lib/typescript/module/src/providers/manga/flamescans.d.ts +23 -6
  694. package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
  695. package/lib/typescript/module/src/providers/manga/index.d.ts +7 -24
  696. package/lib/typescript/module/src/providers/manga/index.d.ts.map +1 -1
  697. package/lib/typescript/module/src/providers/manga/mangadex.d.ts +27 -8
  698. package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
  699. package/lib/typescript/module/src/providers/manga/mangahere.d.ts +20 -6
  700. package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
  701. package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts +31 -7
  702. package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
  703. package/lib/typescript/module/src/providers/manga/mangapill.d.ts +21 -5
  704. package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
  705. package/lib/typescript/module/src/providers/meta/anilist.d.ts +26 -9
  706. package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
  707. package/lib/typescript/module/src/providers/meta/index.d.ts +1 -0
  708. package/lib/typescript/module/src/providers/meta/index.d.ts.map +1 -1
  709. package/lib/typescript/module/src/providers/meta/mal.d.ts +9 -4
  710. package/lib/typescript/module/src/providers/meta/mal.d.ts.map +1 -1
  711. package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts +7 -0
  712. package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts.map +1 -0
  713. package/lib/typescript/module/src/providers/meta/tmdb.d.ts +18 -5
  714. package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
  715. package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts +8 -3
  716. package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts.map +1 -1
  717. package/lib/typescript/module/src/providers/movies/index.d.ts +14 -10
  718. package/lib/typescript/module/src/providers/movies/index.d.ts.map +1 -1
  719. package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts +8 -3
  720. package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
  721. package/lib/typescript/module/src/providers/movies/multistream/index.d.ts +10 -3
  722. package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +1 -1
  723. package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +7 -6
  724. package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts.map +1 -1
  725. package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts +2 -6
  726. package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
  727. package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts +12 -0
  728. package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts.map +1 -0
  729. package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts +9 -17
  730. package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
  731. package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts +21 -0
  732. package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +1 -0
  733. package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts +12 -0
  734. package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts.map +1 -0
  735. package/lib/typescript/module/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -1
  736. package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts +8 -5
  737. package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
  738. package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts +8 -3
  739. package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts.map +1 -1
  740. package/lib/typescript/module/src/providers/provider-args.d.ts +8 -0
  741. package/lib/typescript/module/src/providers/provider-args.d.ts.map +1 -0
  742. package/lib/typescript/module/src/registry-signing-keys.d.ts +18 -0
  743. package/lib/typescript/module/src/registry-signing-keys.d.ts.map +1 -0
  744. package/lib/typescript/module/src/utils/ExtractorManager.d.ts +33 -15
  745. package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -1
  746. package/lib/typescript/module/src/utils/ProviderManager.d.ts +73 -21
  747. package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -1
  748. package/lib/typescript/module/src/utils/create-extractor-context.d.ts.map +1 -1
  749. package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -1
  750. package/lib/typescript/module/src/utils/extension-integrity.d.ts +40 -0
  751. package/lib/typescript/module/src/utils/extension-integrity.d.ts.map +1 -0
  752. package/lib/typescript/module/src/utils/extension-modules.d.ts +49 -0
  753. package/lib/typescript/module/src/utils/extension-modules.d.ts.map +1 -0
  754. package/lib/typescript/module/src/utils/extension-utils.d.ts +24 -46
  755. package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
  756. package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts +29 -0
  757. package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts.map +1 -0
  758. package/lib/typescript/module/src/utils/index.d.ts +12 -4
  759. package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
  760. package/lib/typescript/module/src/utils/manga.d.ts +19 -0
  761. package/lib/typescript/module/src/utils/manga.d.ts.map +1 -0
  762. package/lib/typescript/module/src/utils/meta-http.d.ts +16 -0
  763. package/lib/typescript/module/src/utils/meta-http.d.ts.map +1 -0
  764. package/lib/typescript/module/src/utils/provider-maps.d.ts +14 -7
  765. package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -1
  766. package/lib/typescript/module/src/utils/queries.d.ts +17 -8
  767. package/lib/typescript/module/src/utils/queries.d.ts.map +1 -1
  768. package/lib/typescript/module/src/utils/registry-schema.d.ts +66 -0
  769. package/lib/typescript/module/src/utils/registry-schema.d.ts.map +1 -0
  770. package/lib/typescript/module/src/utils/registry-signature.d.ts +66 -0
  771. package/lib/typescript/module/src/utils/registry-signature.d.ts.map +1 -0
  772. package/lib/typescript/module/src/utils/url-polyfill.d.ts +20 -8
  773. package/lib/typescript/module/src/utils/url-polyfill.d.ts.map +1 -1
  774. package/lib/typescript/module/src/utils/utils.d.ts +0 -1
  775. package/lib/typescript/module/src/utils/utils.d.ts.map +1 -1
  776. package/package.json +30 -19
  777. package/src/NativeConsumet.ts +68 -2
  778. package/src/extension-registry.json +174 -54
  779. package/src/extension-registry.json.sig +1 -0
  780. package/src/extractors/asianload.ts +10 -7
  781. package/src/extractors/filemoon.ts +10 -7
  782. package/src/extractors/flixcloud.ts +0 -2
  783. package/src/extractors/gdflix.ts +0 -2
  784. package/src/extractors/gofile.ts +0 -2
  785. package/src/extractors/gogocdn.ts +12 -9
  786. package/src/extractors/hubcloud.ts +0 -2
  787. package/src/extractors/index.ts +24 -51
  788. package/src/extractors/kwik.ts +0 -2
  789. package/src/extractors/megaplay.ts +0 -2
  790. package/src/extractors/megaup.ts +2 -6
  791. package/src/extractors/mixdrop.ts +9 -5
  792. package/src/extractors/mp4player.ts +10 -6
  793. package/src/extractors/mp4upload.ts +9 -5
  794. package/src/extractors/rapidcloud.ts +15 -12
  795. package/src/extractors/streamhub.ts +10 -6
  796. package/src/extractors/streamlare.ts +10 -8
  797. package/src/extractors/streamsb.ts +10 -7
  798. package/src/extractors/streamtape.ts +9 -5
  799. package/src/extractors/vidhide.ts +3 -4
  800. package/src/extractors/vidmoly.ts +10 -6
  801. package/src/extractors/vizcloud.ts +10 -7
  802. package/src/extractors/voe.ts +10 -7
  803. package/src/index.tsx +115 -3
  804. package/src/models/base-provider.ts +6 -1
  805. package/src/models/extension-manifest.ts +30 -6
  806. package/src/models/extractor-context.ts +0 -2
  807. package/src/models/index.ts +13 -1
  808. package/src/models/meta-error.ts +33 -0
  809. package/src/models/provider-context.ts +21 -58
  810. package/src/models/types.ts +148 -6
  811. package/src/providers/anime/anikoto/anikoto.ts +14 -10
  812. package/src/providers/anime/anikoto/create-anikoto.ts +5 -4
  813. package/src/providers/anime/animekai/animekai.ts +14 -9
  814. package/src/providers/anime/animekai/create-animekai.ts +5 -5
  815. package/src/providers/anime/animepahe/animepahe.ts +14 -11
  816. package/src/providers/anime/animepahe/create-animepahe.ts +5 -14
  817. package/src/providers/anime/animeunity.ts +20 -10
  818. package/src/providers/anime/anineko/anineko.ts +18 -8
  819. package/src/providers/anime/anineko/create-anineko.ts +3 -2
  820. package/src/providers/anime/index.ts +13 -21
  821. package/src/providers/anime/reanime/create-reanime.ts +2 -4
  822. package/src/providers/anime/reanime/reanime.ts +13 -9
  823. package/src/providers/anime/zoro/create-zoro.ts +6 -7
  824. package/src/providers/anime/zoro/zoro.ts +14 -11
  825. package/src/providers/index.ts +4 -4
  826. package/src/providers/light-novels/index.ts +3 -3
  827. package/src/providers/light-novels/novelupdates.ts +33 -19
  828. package/src/providers/light-novels/readlightnovels.ts +12 -8
  829. package/src/providers/manga/asurascans.ts +207 -136
  830. package/src/providers/manga/flamescans.ts +229 -122
  831. package/src/providers/manga/index.ts +7 -23
  832. package/src/providers/manga/mangadex.ts +343 -286
  833. package/src/providers/manga/mangahere.ts +317 -160
  834. package/src/providers/manga/mangakakalot.ts +257 -156
  835. package/src/providers/manga/mangapill.ts +172 -69
  836. package/src/providers/meta/anilist.ts +613 -1450
  837. package/src/providers/meta/index.ts +6 -1
  838. package/src/providers/meta/mal.ts +102 -139
  839. package/src/providers/meta/tmdb-api-key.ts +27 -0
  840. package/src/providers/meta/tmdb.ts +150 -141
  841. package/src/providers/movies/himovies/create-himovies.ts +3 -3
  842. package/src/providers/movies/himovies/himovies.ts +13 -11
  843. package/src/providers/movies/index.ts +14 -12
  844. package/src/providers/movies/multimovies/create-multimovies.ts +3 -3
  845. package/src/providers/movies/multimovies/multimovies.ts +13 -11
  846. package/src/providers/movies/multistream/index.ts +30 -18
  847. package/src/providers/movies/multistream/utils.ts +27 -15
  848. package/src/providers/movies/netflixmirror/create-netflixmirror.ts +567 -232
  849. package/src/providers/movies/netflixmirror/disneymirror.ts +16 -0
  850. package/src/providers/movies/netflixmirror/netflixmirror.ts +13 -43
  851. package/src/providers/movies/netflixmirror/netmirror-parser.ts +43 -0
  852. package/src/providers/movies/netflixmirror/primemirror.ts +16 -0
  853. package/src/providers/movies/vegamovies/create-vegamovies.ts +75 -50
  854. package/src/providers/movies/vegamovies/vegamovies.ts +13 -13
  855. package/src/providers/movies/yflix/create-yflix.ts +2 -2
  856. package/src/providers/movies/yflix/yflix.ts +13 -10
  857. package/src/providers/provider-args.ts +15 -0
  858. package/src/registry-signing-keys.ts +20 -0
  859. package/src/utils/ExtractorManager.ts +165 -247
  860. package/src/utils/ProviderManager.ts +235 -285
  861. package/src/utils/create-extractor-context.ts +0 -2
  862. package/src/utils/create-provider-context.ts +45 -29
  863. package/src/utils/extension-integrity.ts +82 -0
  864. package/src/utils/extension-modules.ts +123 -0
  865. package/src/utils/extension-utils.ts +45 -42
  866. package/src/utils/fetch-with-timeout.ts +76 -0
  867. package/src/utils/index.ts +32 -4
  868. package/src/utils/manga.ts +58 -0
  869. package/src/utils/meta-http.ts +35 -0
  870. package/src/utils/provider-maps.ts +39 -19
  871. package/src/utils/queries.ts +30 -26
  872. package/src/utils/registry-schema.ts +273 -0
  873. package/src/utils/registry-signature.ts +215 -0
  874. package/src/utils/url-polyfill.ts +1146 -460
  875. package/src/utils/utils.ts +0 -26
  876. package/lib/commonjs/extractors/StreamP2P.js +0 -69
  877. package/lib/commonjs/extractors/StreamP2P.js.map +0 -1
  878. package/lib/commonjs/extractors/kisskh/kkey.js +0 -98
  879. package/lib/commonjs/extractors/kisskh/kkey.js.map +0 -1
  880. package/lib/commonjs/extractors/kisskh/staticdata.js +0 -9
  881. package/lib/commonjs/extractors/kisskh/staticdata.js.map +0 -1
  882. package/lib/commonjs/providers/anime/anify.js +0 -195
  883. package/lib/commonjs/providers/anime/anify.js.map +0 -1
  884. package/lib/commonjs/providers/anime/animedrive.js +0 -228
  885. package/lib/commonjs/providers/anime/animedrive.js.map +0 -1
  886. package/lib/commonjs/providers/anime/animesuge/animesuge.js +0 -78
  887. package/lib/commonjs/providers/anime/animesuge/animesuge.js.map +0 -1
  888. package/lib/commonjs/providers/anime/animesuge/create-animesuge.js +0 -312
  889. package/lib/commonjs/providers/anime/animesuge/create-animesuge.js.map +0 -1
  890. package/lib/commonjs/providers/anime/kickassanime.js +0 -48
  891. package/lib/commonjs/providers/anime/kickassanime.js.map +0 -1
  892. package/lib/commonjs/providers/anime/marin.js +0 -282
  893. package/lib/commonjs/providers/anime/marin.js.map +0 -1
  894. package/lib/commonjs/providers/manga/brmangas.js +0 -105
  895. package/lib/commonjs/providers/manga/brmangas.js.map +0 -1
  896. package/lib/commonjs/providers/manga/comick.js +0 -149
  897. package/lib/commonjs/providers/manga/comick.js.map +0 -1
  898. package/lib/commonjs/providers/manga/mangahost.js +0 -108
  899. package/lib/commonjs/providers/manga/mangahost.js.map +0 -1
  900. package/lib/commonjs/providers/manga/mangapark.js +0 -92
  901. package/lib/commonjs/providers/manga/mangapark.js.map +0 -1
  902. package/lib/commonjs/providers/manga/mangareader.js +0 -101
  903. package/lib/commonjs/providers/manga/mangareader.js.map +0 -1
  904. package/lib/commonjs/providers/manga/mangasee123.js +0 -156
  905. package/lib/commonjs/providers/manga/mangasee123.js.map +0 -1
  906. package/lib/commonjs/providers/manga/readmanga.js +0 -258
  907. package/lib/commonjs/providers/manga/readmanga.js.map +0 -1
  908. package/lib/commonjs/providers/manga/vyvymanga.js +0 -161
  909. package/lib/commonjs/providers/manga/vyvymanga.js.map +0 -1
  910. package/lib/commonjs/providers/movies/dramacool.js +0 -397
  911. package/lib/commonjs/providers/movies/dramacool.js.map +0 -1
  912. package/lib/commonjs/providers/movies/yflix.js +0 -561
  913. package/lib/commonjs/providers/movies/yflix.js.map +0 -1
  914. package/lib/module/extractors/StreamP2P.js +0 -63
  915. package/lib/module/extractors/StreamP2P.js.map +0 -1
  916. package/lib/module/extractors/kisskh/kkey.js +0 -92
  917. package/lib/module/extractors/kisskh/kkey.js.map +0 -1
  918. package/lib/module/extractors/kisskh/staticdata.js +0 -5
  919. package/lib/module/extractors/kisskh/staticdata.js.map +0 -1
  920. package/lib/module/providers/anime/anify.js +0 -192
  921. package/lib/module/providers/anime/anify.js.map +0 -1
  922. package/lib/module/providers/anime/animedrive.js +0 -223
  923. package/lib/module/providers/anime/animedrive.js.map +0 -1
  924. package/lib/module/providers/anime/animesuge/animesuge.js +0 -73
  925. package/lib/module/providers/anime/animesuge/animesuge.js.map +0 -1
  926. package/lib/module/providers/anime/animesuge/create-animesuge.js +0 -309
  927. package/lib/module/providers/anime/animesuge/create-animesuge.js.map +0 -1
  928. package/lib/module/providers/anime/kickassanime.js +0 -45
  929. package/lib/module/providers/anime/kickassanime.js.map +0 -1
  930. package/lib/module/providers/anime/marin.js +0 -281
  931. package/lib/module/providers/anime/marin.js.map +0 -1
  932. package/lib/module/providers/manga/brmangas.js +0 -100
  933. package/lib/module/providers/manga/brmangas.js.map +0 -1
  934. package/lib/module/providers/manga/comick.js +0 -145
  935. package/lib/module/providers/manga/comick.js.map +0 -1
  936. package/lib/module/providers/manga/mangahost.js +0 -103
  937. package/lib/module/providers/manga/mangahost.js.map +0 -1
  938. package/lib/module/providers/manga/mangapark.js +0 -87
  939. package/lib/module/providers/manga/mangapark.js.map +0 -1
  940. package/lib/module/providers/manga/mangareader.js +0 -97
  941. package/lib/module/providers/manga/mangareader.js.map +0 -1
  942. package/lib/module/providers/manga/mangasee123.js +0 -152
  943. package/lib/module/providers/manga/mangasee123.js.map +0 -1
  944. package/lib/module/providers/manga/readmanga.js +0 -253
  945. package/lib/module/providers/manga/readmanga.js.map +0 -1
  946. package/lib/module/providers/manga/vyvymanga.js +0 -156
  947. package/lib/module/providers/manga/vyvymanga.js.map +0 -1
  948. package/lib/module/providers/movies/dramacool.js +0 -397
  949. package/lib/module/providers/movies/dramacool.js.map +0 -1
  950. package/lib/module/providers/movies/yflix.js +0 -561
  951. package/lib/module/providers/movies/yflix.js.map +0 -1
  952. package/lib/typescript/commonjs/src/extractors/StreamP2P.d.ts +0 -10
  953. package/lib/typescript/commonjs/src/extractors/StreamP2P.d.ts.map +0 -1
  954. package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts +0 -25
  955. package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts.map +0 -1
  956. package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts +0 -3
  957. package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts.map +0 -1
  958. package/lib/typescript/commonjs/src/providers/anime/anify.d.ts +0 -40
  959. package/lib/typescript/commonjs/src/providers/anime/anify.d.ts.map +0 -1
  960. package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts +0 -33
  961. package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts.map +0 -1
  962. package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts +0 -34
  963. package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts.map +0 -1
  964. package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts +0 -14
  965. package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts.map +0 -1
  966. package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts +0 -30
  967. package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts.map +0 -1
  968. package/lib/typescript/commonjs/src/providers/anime/marin.d.ts +0 -32
  969. package/lib/typescript/commonjs/src/providers/anime/marin.d.ts.map +0 -1
  970. package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts +0 -16
  971. package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts.map +0 -1
  972. package/lib/typescript/commonjs/src/providers/manga/comick.d.ts +0 -36
  973. package/lib/typescript/commonjs/src/providers/manga/comick.d.ts.map +0 -1
  974. package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts +0 -16
  975. package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts.map +0 -1
  976. package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts +0 -12
  977. package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts.map +0 -1
  978. package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts +0 -16
  979. package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts.map +0 -1
  980. package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts +0 -15
  981. package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts.map +0 -1
  982. package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts +0 -23
  983. package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts.map +0 -1
  984. package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts +0 -15
  985. package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts.map +0 -1
  986. package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts +0 -1
  987. package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts.map +0 -1
  988. package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts +0 -1
  989. package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts.map +0 -1
  990. package/lib/typescript/module/src/extractors/StreamP2P.d.ts +0 -10
  991. package/lib/typescript/module/src/extractors/StreamP2P.d.ts.map +0 -1
  992. package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts +0 -25
  993. package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts.map +0 -1
  994. package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts +0 -3
  995. package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts.map +0 -1
  996. package/lib/typescript/module/src/providers/anime/anify.d.ts +0 -40
  997. package/lib/typescript/module/src/providers/anime/anify.d.ts.map +0 -1
  998. package/lib/typescript/module/src/providers/anime/animedrive.d.ts +0 -33
  999. package/lib/typescript/module/src/providers/anime/animedrive.d.ts.map +0 -1
  1000. package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts +0 -34
  1001. package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts.map +0 -1
  1002. package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts +0 -14
  1003. package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts.map +0 -1
  1004. package/lib/typescript/module/src/providers/anime/kickassanime.d.ts +0 -30
  1005. package/lib/typescript/module/src/providers/anime/kickassanime.d.ts.map +0 -1
  1006. package/lib/typescript/module/src/providers/anime/marin.d.ts +0 -32
  1007. package/lib/typescript/module/src/providers/anime/marin.d.ts.map +0 -1
  1008. package/lib/typescript/module/src/providers/manga/brmangas.d.ts +0 -16
  1009. package/lib/typescript/module/src/providers/manga/brmangas.d.ts.map +0 -1
  1010. package/lib/typescript/module/src/providers/manga/comick.d.ts +0 -36
  1011. package/lib/typescript/module/src/providers/manga/comick.d.ts.map +0 -1
  1012. package/lib/typescript/module/src/providers/manga/mangahost.d.ts +0 -16
  1013. package/lib/typescript/module/src/providers/manga/mangahost.d.ts.map +0 -1
  1014. package/lib/typescript/module/src/providers/manga/mangapark.d.ts +0 -12
  1015. package/lib/typescript/module/src/providers/manga/mangapark.d.ts.map +0 -1
  1016. package/lib/typescript/module/src/providers/manga/mangareader.d.ts +0 -16
  1017. package/lib/typescript/module/src/providers/manga/mangareader.d.ts.map +0 -1
  1018. package/lib/typescript/module/src/providers/manga/mangasee123.d.ts +0 -15
  1019. package/lib/typescript/module/src/providers/manga/mangasee123.d.ts.map +0 -1
  1020. package/lib/typescript/module/src/providers/manga/readmanga.d.ts +0 -23
  1021. package/lib/typescript/module/src/providers/manga/readmanga.d.ts.map +0 -1
  1022. package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts +0 -15
  1023. package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts.map +0 -1
  1024. package/lib/typescript/module/src/providers/movies/dramacool.d.ts +0 -1
  1025. package/lib/typescript/module/src/providers/movies/dramacool.d.ts.map +0 -1
  1026. package/lib/typescript/module/src/providers/movies/yflix.d.ts +0 -1
  1027. package/lib/typescript/module/src/providers/movies/yflix.d.ts.map +0 -1
  1028. package/src/extractors/StreamP2P.ts +0 -60
  1029. package/src/extractors/kisskh/kkey.ts +0 -161
  1030. package/src/extractors/kisskh/staticdata.ts +0 -144
  1031. package/src/providers/anime/anify.ts +0 -276
  1032. package/src/providers/anime/animedrive.ts +0 -245
  1033. package/src/providers/anime/animesuge/animesuge.ts +0 -77
  1034. package/src/providers/anime/animesuge/create-animesuge.ts +0 -327
  1035. package/src/providers/anime/kickassanime.ts +0 -51
  1036. package/src/providers/anime/marin.ts +0 -319
  1037. package/src/providers/manga/brmangas.ts +0 -144
  1038. package/src/providers/manga/comick.ts +0 -280
  1039. package/src/providers/manga/mangahost.ts +0 -130
  1040. package/src/providers/manga/mangapark.ts +0 -111
  1041. package/src/providers/manga/mangareader.ts +0 -128
  1042. package/src/providers/manga/mangasee123.ts +0 -183
  1043. package/src/providers/manga/readmanga.ts +0 -367
  1044. package/src/providers/manga/vyvymanga.ts +0 -233
  1045. package/src/providers/movies/dramacool.ts +0 -395
  1046. package/src/providers/movies/yflix.ts +0 -559
@@ -3,71 +3,145 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
7
- var _axios = _interopRequireDefault(require("axios"));
8
- var _asciiUrlEncoder = require("ascii-url-encoder");
6
+ exports.MangaDex = void 0;
9
7
  var _index = require("../../models/index.js");
10
- var _index2 = require("../../utils/index.js");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8
+ var _createProviderContext = require("../../utils/create-provider-context.js");
9
+ var _manga = require("../../utils/manga.js");
10
+ /** Text in several languages, keyed by language code (`en`, `ja-ro`, `pt-br`, ...). */
11
+
12
+ const STATUSES = {
13
+ ongoing: _index.MediaStatus.ONGOING,
14
+ completed: _index.MediaStatus.COMPLETED,
15
+ hiatus: _index.MediaStatus.HIATUS,
16
+ cancelled: _index.MediaStatus.CANCELLED
17
+ };
18
+
19
+ /** Chapters per feed request (the API's maximum). */
20
+ const FEED_PAGE_SIZE = 500;
21
+ /** MangaDex refuses list requests whose offset + limit is past this. */
22
+ const MAX_RESULT_WINDOW = 10000;
23
+ /** The feed only lists chapters of titles with these ratings; an id the caller already has is any of them. */
24
+ const ALL_CONTENT_RATINGS = ['safe', 'suggestive', 'erotica', 'pornographic'];
25
+
26
+ /** A query string from `[key, value]` pairs; keys such as `includes[]` are sent as they are. */
27
+ const queryString = params => params.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`).join('&');
28
+
29
+ /** A number from MangaDex's numeric strings (`"12"`, `"10.5"`); undefined for empty or other text. */
30
+ const toNumber = text => {
31
+ if (typeof text !== 'string' || text.trim() === '') return undefined;
32
+ const value = Number(text.trim());
33
+ return Number.isFinite(value) ? value : undefined;
34
+ };
35
+
36
+ /** The non-empty texts of a localized map, as `[language, text]` pairs. */
37
+ const entries = map => Object.entries(map ?? {}).flatMap(([lang, text]) => typeof text === 'string' && text.trim() ? [[lang, text.trim()]] : []);
38
+
39
+ /**
40
+ * The display title (English: the main title when it is English, else the first English alt title;
41
+ * otherwise the main title) and every other title, without repeats.
42
+ */
43
+ const pickTitles = (main, alts) => {
44
+ const mainTitles = entries(main);
45
+ const altTitleList = (alts ?? []).flatMap(alt => entries(alt));
46
+ const chosen = mainTitles.find(([lang]) => lang === 'en') ?? altTitleList.find(([lang]) => lang === 'en') ?? mainTitles[0] ?? altTitleList[0];
47
+ const title = chosen ? chosen[1] : '';
48
+ const altTitles = [];
49
+ for (const [, text] of [...mainTitles, ...altTitleList]) {
50
+ if (text !== title && !altTitles.includes(text)) altTitles.push(text);
51
+ }
52
+ return {
53
+ title,
54
+ altTitles
55
+ };
56
+ };
57
+
58
+ /** MangaDex descriptions are Markdown; this keeps the text and drops the markup. */
59
+ const markdownToText = markdown => markdown.replace(/\r\n?/g, '\n').replace(/\u00a0/g, ' ').replace(/!\[([^\]]*)\]\([^)]*\)/g, '$1') // images
60
+ .replace(/\[([^\]]+)\]\(([^()]|\([^)]*\))*\)/g, '$1') // links: keep the text
61
+ .replace(/\[\/?(?:b|i|u|s|spoiler|url)(?:=[^\]]*)?\]/gi, '') // BBCode tags
62
+ .replace(/<\/?[a-z][^>]*>/gi, '') // HTML tags
63
+ .replace(/^ {0,3}([-*_])(?: *\1){2,} *$/gm, '') // horizontal rules
64
+ .replace(/^ {0,3}#{1,6} +/gm, '') // headings
65
+ .replace(/^ {0,3}> ?/gm, '') // block quotes
66
+ .replace(/^( *)[*+] +/gm, '$1- ') // list bullets
67
+ .replace(/(\*\*|__)(?=\S)([^\n]*?\S)\1/g, '$2') // bold
68
+ .replace(/(^|[^\w*])\*(?=\S)([^*\n]*?\S)\*(?!\w)/g, '$1$2') // *italic*
69
+ .replace(/(^|[^\w])_(?=\S)([^_\n]*?\S)_(?!\w)/g, '$1$2') // _italic_
70
+ .replace(/~~([^\n]+?)~~/g, '$1') // strikethrough
71
+ .replace(/\\([\\`*_{}[\]()#+\-.!>~|])/g, '$1') // escaped characters
72
+ .replace(/[ \t]+$/gm, '') // trailing spaces (Markdown line breaks)
73
+ .replace(/\n{3,}/g, '\n\n').trim();
12
74
  class MangaDex extends _index.MangaParser {
13
75
  name = 'MangaDex';
14
76
  baseUrl = 'https://mangadex.org';
15
77
  logo = 'https://pbs.twimg.com/profile_images/1391016345714757632/xbt_jW78_400x400.jpg';
16
78
  classPath = 'MANGA.MangaDex';
17
79
  apiUrl = 'https://api.mangadex.org';
18
- fetchMangaInfo = async mangaId => {
80
+ uploadsUrl = 'https://uploads.mangadex.org';
81
+
82
+ /** @param ctx provider context; requests go through its axios (default: `createProviderContext()`) */
83
+ constructor(ctx = (0, _createProviderContext.createProviderContext)()) {
84
+ super();
85
+ this.ctx = ctx;
86
+ }
87
+
88
+ /**
89
+ * @param mangaId manga id (a UUID, from a search result)
90
+ * @param lang language of the chapters to list, as MangaDex codes it (default: `en`; e.g. `pt-br`, `es-la`)
91
+ */
92
+ fetchMangaInfo = async (mangaId, lang = 'en') => {
19
93
  try {
20
- const {
94
+ const [{
21
95
  data
22
- } = await _axios.default.get(`${this.apiUrl}/manga/${mangaId}`);
23
- const mangaInfo = {
24
- id: data.data.id,
25
- title: data.data.attributes.title.en,
26
- altTitles: data.data.attributes.altTitles,
27
- description: data.data.attributes.description,
28
- genres: data.data.attributes.tags.filter(tag => tag.attributes.group === 'genre').map(tag => tag.attributes.name.en),
29
- themes: data.data.attributes.tags.filter(tag => tag.attributes.group === 'theme').map(tag => tag.attributes.name.en),
30
- status: (0, _index2.capitalizeFirstLetter)(data.data.attributes.status),
31
- releaseDate: data.data.attributes.year,
32
- chapters: []
33
- };
34
- const allChapters = await this.fetchAllChapters(mangaId, 0);
35
- for (const chapter of allChapters) {
36
- mangaInfo.chapters?.push({
37
- id: chapter.id,
38
- title: chapter.attributes.title ? chapter.attributes.title : chapter.attributes.chapter,
39
- chapterNumber: chapter.attributes.chapter,
40
- volumeNumber: chapter.attributes.volume,
41
- pages: chapter.attributes.pages
42
- });
43
- }
44
- const findCoverArt = data.data.relationships.find(rel => rel.type === 'cover_art');
45
- const coverArt = await this.fetchCoverImage(findCoverArt?.id);
46
- mangaInfo.image = `${this.baseUrl}/covers/${mangaInfo.id}/${coverArt}`;
47
- return mangaInfo;
96
+ }, chapters] = await Promise.all([this.ctx.axios.get(`${this.apiUrl}/manga/${encodeURIComponent(mangaId)}?${queryString([['includes[]', 'cover_art'], ['includes[]', 'author'], ['includes[]', 'artist']])}`), this.fetchChapters(mangaId, lang)]);
97
+ const manga = data.data;
98
+ const {
99
+ attributes
100
+ } = manga;
101
+ const info = this.toResult(manga, false);
102
+ const authors = this.relatedNames(manga, 'author');
103
+ if (authors.length > 0) info.authors = authors;
104
+ const artists = this.relatedNames(manga, 'artist');
105
+ if (artists.length > 0) info.artists = artists;
106
+ const genres = this.tagNames(manga, 'genre');
107
+ if (genres.length > 0) info.genres = genres;
108
+ const themes = this.tagNames(manga, 'theme');
109
+ if (themes.length > 0) info.themes = themes;
110
+ const malId = attributes.links?.mal;
111
+ if (malId) info.malId = toNumber(malId) ?? malId;
112
+ // Titles whose chapter numbers restart each volume can't be sorted by chapter number alone;
113
+ // the feed's own order (volume, then chapter) is the reading order then.
114
+ info.chapters = attributes.chapterNumbersResetOnNewVolume ? chapters : (0, _manga.sortChaptersForReading)(chapters);
115
+ return info;
48
116
  } catch (err) {
49
- if (err.code === 'ERR_BAD_REQUEST') throw new Error(`[${this.name}] Bad request. Make sure you have entered a valid query.`);
50
- throw new Error(err.message);
117
+ throw this.error(err);
51
118
  }
52
119
  };
53
120
 
54
121
  /**
55
- * @currently only supports english
122
+ * The chapter's pages, from the MangaDex@Home server MangaDex assigns to it.
123
+ * @param chapterId chapter id (from `fetchMangaInfo`)
124
+ * @param dataSaver smaller, compressed images (default: `false`)
56
125
  */
57
- fetchChapterPages = async chapterId => {
126
+ fetchChapterPages = async (chapterId, dataSaver = false) => {
127
+ let server;
58
128
  try {
59
- const res = await _axios.default.get(`${this.apiUrl}/at-home/server/${chapterId}`);
60
- const pages = [];
61
- for (const id of res.data.chapter.data) {
62
- pages.push({
63
- img: `${res.data.baseUrl}/data/${res.data.chapter.hash}/${id}`,
64
- page: parseInt((0, _index2.substringBefore)(id, '-').replace(/[^0-9.]/g, ''))
65
- });
66
- }
67
- return pages;
129
+ ({
130
+ data: server
131
+ } = await this.ctx.axios.get(`${this.apiUrl}/at-home/server/${encodeURIComponent(chapterId)}`));
68
132
  } catch (err) {
69
- throw new Error(err.message);
133
+ throw this.error(err);
134
+ }
135
+ const files = (dataSaver ? server.chapter.dataSaver : server.chapter.data) ?? [];
136
+ if (files.length === 0) {
137
+ // Chapters of official publishers link to their site and have no pages on MangaDex.
138
+ throw new Error(`[${this.name}] Chapter ${chapterId} has no pages on MangaDex (it may be hosted on another site)`);
70
139
  }
140
+ const folder = dataSaver ? 'data-saver' : 'data';
141
+ return files.map((file, index) => ({
142
+ img: `${server.baseUrl}/${folder}/${server.chapter.hash}/${file}`,
143
+ page: index + 1
144
+ }));
71
145
  };
72
146
 
73
147
  /**
@@ -75,206 +149,144 @@ class MangaDex extends _index.MangaParser {
75
149
  * @param page page number (default: 1)
76
150
  * @param limit limit of results to return (default: 20) (max: 100) (min: 1)
77
151
  */
78
- search = async (query, page = 1, limit = 20) => {
79
- if (page <= 0) throw new Error('Page number must be greater than 0');
80
- if (limit > 100) throw new Error('Limit must be less than or equal to 100');
81
- if (limit * (page - 1) >= 10000) throw new Error('not enough results');
82
- try {
83
- const res = await _axios.default.get(`${this.apiUrl}/manga?limit=${limit}&title=${(0, _asciiUrlEncoder.encode)(query)}&limit=${limit}&offset=${limit * (page - 1)}&order[relevance]=desc`);
84
- if (res.data.result === 'ok') {
85
- const results = {
86
- currentPage: page,
87
- results: []
88
- };
89
- for (const manga of res.data.data) {
90
- const findCoverArt = manga.relationships.find(item => item.type === 'cover_art');
91
- const coverArtId = findCoverArt ? findCoverArt.id : null;
92
- const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
93
- results.results.push({
94
- id: manga.id,
95
- title: Object.values(manga.attributes.title)[0],
96
- altTitles: manga.attributes.altTitles,
97
- description: Object.values(manga.attributes.description)[0],
98
- status: manga.attributes.status,
99
- releaseDate: manga.attributes.year,
100
- contentRating: manga.attributes.contentRating,
101
- lastVolume: manga.attributes.lastVolume,
102
- lastChapter: manga.attributes.lastChapter,
103
- image: `${this.baseUrl}/covers/${manga.id}/${coverArt}`
104
- });
105
- }
106
- return results;
107
- } else {
108
- throw new Error(res.data.message);
109
- }
110
- } catch (err) {
111
- if (err.code === 'ERR_BAD_REQUEST') {
112
- throw new Error('Bad request. Make sure you have entered a valid query.');
113
- }
114
- throw new Error(err.message);
115
- }
116
- };
152
+ search = async (query, page = 1, limit = 20) => this.fetchList([['title', query], ['order[relevance]', 'desc']], page, limit);
117
153
  fetchRandom = async () => {
118
154
  try {
119
- const res = await _axios.default.get(`${this.apiUrl}/manga/random`);
120
- if (res.data.result === 'ok') {
121
- const results = {
122
- currentPage: 1,
123
- results: []
124
- };
125
- const findCoverArt = res.data.data.relationships.find(item => item.type === 'cover_art');
126
- const coverArtId = findCoverArt ? findCoverArt.id : null;
127
- const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
128
- results.results.push({
129
- id: res.data.data.id,
130
- title: Object.values(res.data.data.attributes.title)[0],
131
- altTitles: res.data.data.attributes.altTitles,
132
- description: Object.values(res.data.data.attributes.description)[0],
133
- status: res.data.data.attributes.status,
134
- releaseDate: res.data.data.attributes.year,
135
- contentRating: res.data.data.attributes.contentRating,
136
- lastVolume: res.data.data.attributes.lastVolume,
137
- lastChapter: res.data.data.attributes.lastChapter,
138
- image: `${this.baseUrl}/covers/${res.data.data.id}/${coverArt}`
139
- });
140
- return results;
141
- } else {
142
- throw new Error(res.data.message);
143
- }
155
+ const {
156
+ data
157
+ } = await this.ctx.axios.get(`${this.apiUrl}/manga/random?${queryString([['includes[]', 'cover_art']])}`);
158
+ return {
159
+ currentPage: 1,
160
+ hasNextPage: false,
161
+ results: [this.toResult(data.data)]
162
+ };
144
163
  } catch (err) {
145
- throw new Error(err.message);
164
+ throw this.error(err);
146
165
  }
147
166
  };
148
- fetchRecentlyAdded = async (page = 1, limit = 20) => {
167
+ fetchRecentlyAdded = async (page = 1, limit = 20) => this.fetchList([['contentRating[]', 'safe'], ['contentRating[]', 'suggestive'], ['contentRating[]', 'erotica'], ['order[createdAt]', 'desc'], ['hasAvailableChapters', 'true']], page, limit);
168
+ fetchLatestUpdates = async (page = 1, limit = 20) => this.fetchList([['order[latestUploadedChapter]', 'desc']], page, limit);
169
+ fetchPopular = async (page = 1, limit = 20) => this.fetchList([['order[followedCount]', 'desc'], ['contentRating[]', 'safe'], ['contentRating[]', 'suggestive'], ['hasAvailableChapters', 'true']], page, limit);
170
+
171
+ /** One page of `/manga` with the given filters, covers included. */
172
+ fetchList = async (params, page, limit) => {
149
173
  if (page <= 0) throw new Error('Page number must be greater than 0');
150
174
  if (limit > 100) throw new Error('Limit must be less than or equal to 100');
151
- if (limit * (page - 1) >= 10000) throw new Error('not enough results');
175
+ if (limit * (page - 1) >= MAX_RESULT_WINDOW) throw new Error('not enough results');
176
+ const offset = limit * (page - 1);
152
177
  try {
153
- const res = await _axios.default.get(`${this.apiUrl}/manga?includes[]=cover_art&contentRating[]=safe&contentRating[]=suggestive&contentRating[]=erotica&order[createdAt]=desc&hasAvailableChapters=true&limit=${limit}&offset=${limit * (page - 1)}`);
154
- if (res.data.result === 'ok') {
155
- const results = {
156
- currentPage: page,
157
- results: []
158
- };
159
- for (const manga of res.data.data) {
160
- const findCoverArt = manga.relationships.find(item => item.type === 'cover_art');
161
- const coverArtId = findCoverArt ? findCoverArt.id : null;
162
- const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
163
- results.results.push({
164
- id: manga.id,
165
- title: Object.values(manga.attributes.title)[0],
166
- altTitles: manga.attributes.altTitles,
167
- description: Object.values(manga.attributes.description)[0],
168
- status: manga.attributes.status,
169
- releaseDate: manga.attributes.year,
170
- contentRating: manga.attributes.contentRating,
171
- lastVolume: manga.attributes.lastVolume,
172
- lastChapter: manga.attributes.lastChapter,
173
- image: `${this.baseUrl}/covers/${manga.id}/${coverArt}`
174
- });
175
- }
176
- return results;
177
- } else {
178
- throw new Error(res.data.message);
179
- }
178
+ const {
179
+ data
180
+ } = await this.ctx.axios.get(`${this.apiUrl}/manga?${queryString([...params, ['includes[]', 'cover_art'], ['limit', limit], ['offset', offset]])}`);
181
+ if (data.result !== 'ok') throw new Error(data.errors?.[0]?.detail ?? data.message);
182
+ const total = data.total ?? 0;
183
+ return {
184
+ currentPage: page,
185
+ hasNextPage: offset + limit < Math.min(total, MAX_RESULT_WINDOW),
186
+ totalResults: total,
187
+ results: data.data.map(manga => this.toResult(manga))
188
+ };
180
189
  } catch (err) {
181
- throw new Error(err.message);
190
+ throw this.error(err);
182
191
  }
183
192
  };
184
- fetchLatestUpdates = async (page = 1, limit = 20) => {
185
- if (page <= 0) throw new Error('Page number must be greater than 0');
186
- if (limit > 100) throw new Error('Limit must be less than or equal to 100');
187
- if (limit * (page - 1) >= 10000) throw new Error('not enough results');
188
- try {
189
- const res = await _axios.default.get(`${this.apiUrl}/manga?order[latestUploadedChapter]=desc&limit=${limit}&offset=${limit * (page - 1)}`);
190
- if (res.data.result === 'ok') {
191
- const results = {
192
- currentPage: page,
193
- results: []
194
- };
195
- for (const manga of res.data.data) {
196
- const findCoverArt = manga.relationships.find(item => item.type === 'cover_art');
197
- const coverArtId = findCoverArt ? findCoverArt.id : null;
198
- const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
199
- results.results.push({
200
- id: manga.id,
201
- title: Object.values(manga.attributes.title)[0],
202
- altTitles: manga.attributes.altTitles,
203
- description: Object.values(manga.attributes.description)[0],
204
- status: manga.attributes.status,
205
- releaseDate: manga.attributes.year,
206
- contentRating: manga.attributes.contentRating,
207
- lastVolume: manga.attributes.lastVolume,
208
- lastChapter: manga.attributes.lastChapter,
209
- image: `${this.baseUrl}/covers/${manga.id}/${coverArt}`
210
- });
211
- }
212
- return results;
213
- } else {
214
- throw new Error(res.data.message);
215
- }
216
- } catch (err) {
217
- throw new Error(err.message);
193
+
194
+ /** Every readable chapter in `lang`, in the feed's order (volume, then chapter). */
195
+ fetchChapters = async (mangaId, lang) => {
196
+ const chapters = [];
197
+ let offset = 0;
198
+ let total = Infinity;
199
+ while (offset < total && offset < MAX_RESULT_WINDOW) {
200
+ const {
201
+ data
202
+ } = await this.ctx.axios.get(`${this.apiUrl}/manga/${encodeURIComponent(mangaId)}/feed?${queryString([['translatedLanguage[]', lang],
203
+ // Chapters that only link to a publisher's site, or aren't readable yet, have no pages here.
204
+ ['includeExternalUrl', 0], ['includeEmptyPages', 0], ['includeFuturePublishAt', 0], ['includeUnavailable', 0], ...ALL_CONTENT_RATINGS.map(rating => ['contentRating[]', rating]), ['includes[]', 'scanlation_group'], ['order[volume]', 'asc'], ['order[chapter]', 'asc'], ['limit', Math.min(FEED_PAGE_SIZE, MAX_RESULT_WINDOW - offset)], ['offset', offset]])}`);
205
+ const page = data.data ?? [];
206
+ for (const chapter of page) chapters.push(this.toChapter(chapter));
207
+ total = data.total ?? 0;
208
+ if (page.length === 0) break;
209
+ offset += page.length;
218
210
  }
211
+ return chapters;
219
212
  };
220
- fetchPopular = async (page = 1, limit = 20) => {
221
- if (page <= 0) throw new Error('Page number must be greater than 0');
222
- if (limit > 100) throw new Error('Limit must be less than or equal to 100');
223
- if (limit * (page - 1) >= 10000) throw new Error('not enough results');
224
- try {
225
- const res = await _axios.default.get(`${this.apiUrl}/manga?includes[]=cover_art&includes[]=artist&includes[]=author&order[followedCount]=desc&contentRating[]=safe&contentRating[]=suggestive&hasAvailableChapters=true&limit=${limit}&offset=${limit * (page - 1)}`);
226
- if (res.data.result === 'ok') {
227
- const results = {
228
- currentPage: page,
229
- results: []
230
- };
231
- for (const manga of res.data.data) {
232
- const findCoverArt = manga.relationships.find(item => item.type === 'cover_art');
233
- const coverArtId = findCoverArt ? findCoverArt.id : null;
234
- const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
235
- results.results.push({
236
- id: manga.id,
237
- title: Object.values(manga.attributes.title)[0],
238
- altTitles: manga.attributes.altTitles,
239
- description: Object.values(manga.attributes.description)[0],
240
- status: manga.attributes.status,
241
- releaseDate: manga.attributes.year,
242
- contentRating: manga.attributes.contentRating,
243
- lastVolume: manga.attributes.lastVolume,
244
- lastChapter: manga.attributes.lastChapter,
245
- image: `${this.baseUrl}/covers/${manga.id}/${coverArt}`
246
- });
247
- }
248
- return results;
249
- } else {
250
- throw new Error(res.data.message);
251
- }
252
- } catch (err) {
253
- throw new Error(err.message);
254
- }
213
+
214
+ /** A title from `/manga`; `thumbnail` picks the 512 px cover instead of the full-size one. */
215
+ toResult = (manga, thumbnail = true) => {
216
+ const {
217
+ attributes
218
+ } = manga;
219
+ const {
220
+ title,
221
+ altTitles
222
+ } = pickTitles(attributes.title, attributes.altTitles);
223
+ const result = {
224
+ id: manga.id,
225
+ title
226
+ };
227
+ if (altTitles.length > 0) result.altTitles = altTitles;
228
+ const cover = manga.relationships?.find(rel => rel.type === 'cover_art')?.attributes?.fileName;
229
+ if (cover) result.image = `${this.uploadsUrl}/covers/${manga.id}/${cover}${thumbnail ? '.512.jpg' : ''}`;
230
+ const descriptions = entries(attributes.description);
231
+ const description = (descriptions.find(([lang]) => lang === 'en') ?? descriptions[0])?.[1];
232
+ const text = description ? markdownToText(description) : '';
233
+ if (text) result.description = text;
234
+ if (attributes.status) result.status = STATUSES[attributes.status] ?? _index.MediaStatus.UNKNOWN;
235
+ if (typeof attributes.year === 'number') result.releaseDate = attributes.year;
236
+ result.url = `${this.baseUrl}/title/${manga.id}`;
237
+ if (attributes.contentRating) result.contentRating = attributes.contentRating;
238
+ const lastVolume = toNumber(attributes.lastVolume);
239
+ if (lastVolume !== undefined) result.lastVolume = lastVolume;
240
+ const lastChapter = toNumber(attributes.lastChapter);
241
+ if (lastChapter !== undefined) result.lastChapter = lastChapter;
242
+ return result;
255
243
  };
256
- fetchAllChapters = async (mangaId, offset, res) => {
257
- if (res?.data?.offset + 96 >= res?.data?.total) {
258
- return [];
244
+ toChapter = chapter => {
245
+ const {
246
+ attributes
247
+ } = chapter;
248
+ const chapterNumber = (0, _manga.parseChapterNumber)(attributes.chapter);
249
+ const volumeNumber = toNumber(attributes.volume);
250
+ const label = attributes.chapter?.trim();
251
+ const result = {
252
+ id: chapter.id,
253
+ title: attributes.title?.trim() || (chapterNumber !== undefined ? `Chapter ${chapterNumber}` : label || 'Oneshot')
254
+ };
255
+ if (chapterNumber !== undefined) result.chapterNumber = chapterNumber;
256
+ if (volumeNumber !== undefined) result.volumeNumber = volumeNumber;
257
+ if (typeof attributes.pages === 'number' && attributes.pages > 0) result.pages = attributes.pages;
258
+ const releaseDate = attributes.publishAt ?? attributes.readableAt;
259
+ if (releaseDate) result.releaseDate = releaseDate;
260
+ const groups = (chapter.relationships ?? []).filter(rel => rel.type === 'scanlation_group').map(rel => rel.attributes?.name?.trim()).filter(name => Boolean(name));
261
+ if (groups.length > 0) result.scanlator = groups.join(' & ');
262
+ if (attributes.translatedLanguage) result.language = attributes.translatedLanguage;
263
+ result.url = `${this.baseUrl}/chapter/${chapter.id}`;
264
+ return result;
265
+ };
266
+
267
+ /** Names of the title's authors or artists (included with the request), without repeats. */
268
+ relatedNames = (manga, type) => {
269
+ const names = [];
270
+ for (const rel of manga.relationships ?? []) {
271
+ const name = rel.type === type ? rel.attributes?.name?.trim() : undefined;
272
+ if (name && !names.includes(name)) names.push(name);
259
273
  }
260
- const response = await _axios.default.get(`${this.apiUrl}/manga/${mangaId}/feed?offset=${offset}&limit=96&order[volume]=desc&order[chapter]=desc&translatedLanguage[]=en`);
261
- return [...response.data.data, ...(await this.fetchAllChapters(mangaId, offset + 96, response))];
274
+ return names;
262
275
  };
263
- fetchCoverImage = async coverId => {
264
- const {
265
- data
266
- } = await _axios.default.get(`${this.apiUrl}/cover/${coverId}`);
267
- const fileName = data.data.attributes.fileName;
268
- return fileName;
276
+ tagNames = (manga, group) => (manga.attributes.tags ?? []).filter(tag => tag.attributes.group === group).flatMap(tag => {
277
+ const names = entries(tag.attributes.name);
278
+ const name = (names.find(([lang]) => lang === 'en') ?? names[0])?.[1];
279
+ return name ? [name] : [];
280
+ });
281
+
282
+ /** The API's own error message when it sent one (e.g. `Manga ... not found.`). */
283
+ error = err => {
284
+ const response = err?.response;
285
+ const detail = response?.data?.errors?.[0]?.detail;
286
+ if (detail) return new Error(`[${this.name}] ${detail}`);
287
+ if (err?.code === 'ERR_BAD_REQUEST') return new Error(`[${this.name}] Bad request. Make sure you have entered a valid query.`);
288
+ return new Error(`[${this.name}] ${err?.message ?? String(err)}`);
269
289
  };
270
290
  }
271
-
272
- // (async () => {
273
- // const md = new MangaDex();
274
- // const search = await md.search('solo leveling');
275
- // const manga = await md.fetchMangaInfo(search.results[0].id);
276
- // const chapterPages = await md.fetchChapterPages(manga.chapters![0].id);
277
- // console.log(chapterPages);
278
- // })();
279
- var _default = exports.default = MangaDex;
291
+ exports.MangaDex = MangaDex;
280
292
  //# sourceMappingURL=mangadex.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_axios","_interopRequireDefault","require","_asciiUrlEncoder","_index","_index2","e","__esModule","default","MangaDex","MangaParser","name","baseUrl","logo","classPath","apiUrl","fetchMangaInfo","mangaId","data","axios","get","mangaInfo","id","title","attributes","en","altTitles","description","genres","tags","filter","tag","group","map","themes","status","capitalizeFirstLetter","releaseDate","year","chapters","allChapters","fetchAllChapters","chapter","push","chapterNumber","volumeNumber","volume","pages","findCoverArt","relationships","find","rel","type","coverArt","fetchCoverImage","image","err","code","Error","message","fetchChapterPages","chapterId","res","img","hash","page","parseInt","substringBefore","replace","search","query","limit","encode","result","results","currentPage","manga","item","coverArtId","Object","values","contentRating","lastVolume","lastChapter","fetchRandom","fetchRecentlyAdded","fetchLatestUpdates","fetchPopular","offset","total","response","coverId","fileName","_default","exports"],"sourceRoot":"../../../../src","sources":["providers/manga/mangadex.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,O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gBAAgB,GAAG,MAAAA,CAAOxB,OAAe,EAAEuE,MAAc,EAAE1B,GAA6B,KAAqB;IACnH,IAAIA,GAAG,EAAE5C,IAAI,EAAEsE,MAAM,GAAG,EAAE,IAAI1B,GAAG,EAAE5C,IAAI,EAAEuE,KAAK,EAAE;MAC9C,OAAO,EAAE;IACX;IAEA,MAAMC,QAAQ,GAAG,MAAMvE,cAAK,CAACC,GAAG,CAC9B,GAAG,IAAI,CAACL,MAAM,UAAUE,OAAO,gBAAgBuE,MAAM,0EACvD,CAAC;IAED,OAAO,CAAC,GAAGE,QAAQ,CAACxE,IAAI,CAACA,IAAI,EAAE,IAAI,MAAM,IAAI,CAACuB,gBAAgB,CAACxB,OAAO,EAAEuE,MAAM,GAAG,EAAE,EAAEE,QAAQ,CAAC,CAAC,CAAC;EAClG,CAAC;EAEOpC,eAAe,GAAG,MAAOqC,OAAe,IAAsB;IACpE,MAAM;MAAEzE;IAAK,CAAC,GAAG,MAAMC,cAAK,CAACC,GAAG,CAAC,GAAG,IAAI,CAACL,MAAM,UAAU4E,OAAO,EAAE,CAAC;IAEnE,MAAMC,QAAQ,GAAG1E,IAAI,CAACA,IAAI,CAACM,UAAU,CAACoE,QAAQ;IAE9C,OAAOA,QAAQ;EACjB,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAtF,OAAA,GAEeC,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["_index","require","_createProviderContext","_manga","STATUSES","ongoing","MediaStatus","ONGOING","completed","COMPLETED","hiatus","HIATUS","cancelled","CANCELLED","FEED_PAGE_SIZE","MAX_RESULT_WINDOW","ALL_CONTENT_RATINGS","queryString","params","map","key","value","encodeURIComponent","String","join","toNumber","text","trim","undefined","Number","isFinite","entries","Object","flatMap","lang","pickTitles","main","alts","mainTitles","altTitleList","alt","chosen","find","title","altTitles","includes","push","markdownToText","markdown","replace","MangaDex","MangaParser","name","baseUrl","logo","classPath","apiUrl","uploadsUrl","constructor","ctx","createProviderContext","fetchMangaInfo","mangaId","data","chapters","Promise","all","axios","get","fetchChapters","manga","attributes","info","toResult","authors","relatedNames","length","artists","genres","tagNames","themes","malId","links","mal","chapterNumbersResetOnNewVolume","sortChaptersForReading","err","error","fetchChapterPages","chapterId","dataSaver","server","files","chapter","Error","folder","file","index","img","hash","page","search","query","limit","fetchList","fetchRandom","currentPage","hasNextPage","results","fetchRecentlyAdded","fetchLatestUpdates","fetchPopular","offset","result","errors","detail","message","total","Math","min","totalResults","Infinity","rating","toChapter","thumbnail","id","cover","relationships","rel","type","fileName","image","descriptions","description","status","UNKNOWN","year","releaseDate","url","contentRating","lastVolume","lastChapter","chapterNumber","parseChapterNumber","volumeNumber","volume","label","pages","publishAt","readableAt","groups","filter","Boolean","scanlator","translatedLanguage","language","names","group","tags","tag","response","code","exports"],"sourceRoot":"../../../../src","sources":["providers/manga/mangadex.ts"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAUA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA;;AAyCA,MAAMG,QAAqC,GAAG;EAC5CC,OAAO,EAAEC,kBAAW,CAACC,OAAO;EAC5BC,SAAS,EAAEF,kBAAW,CAACG,SAAS;EAChCC,MAAM,EAAEJ,kBAAW,CAACK,MAAM;EAC1BC,SAAS,EAAEN,kBAAW,CAACO;AACzB,CAAC;;AAED;AACA,MAAMC,cAAc,GAAG,GAAG;AAC1B;AACA,MAAMC,iBAAiB,GAAG,KAAK;AAC/B;AACA,MAAMC,mBAAmB,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,cAAc,CAAC;;AAE7E;AACA,MAAMC,WAAW,GAAIC,MAAmC,IACtDA,MAAM,CAACC,GAAG,CAAC,CAAC,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK,GAAGD,GAAG,IAAIE,kBAAkB,CAACC,MAAM,CAACF,KAAK,CAAC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