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
@@ -1,68 +1,144 @@
1
1
  "use strict";
2
2
 
3
- import axios from 'axios';
4
- import { encode } from 'ascii-url-encoder';
5
- import { MangaParser } from "../../models/index.js";
6
- import { capitalizeFirstLetter, substringBefore } from "../../utils/index.js";
7
- class MangaDex extends MangaParser {
3
+ import { MangaParser, MediaStatus } from "../../models/index.js";
4
+ import { createProviderContext } from "../../utils/create-provider-context.js";
5
+ import { parseChapterNumber, sortChaptersForReading } from "../../utils/manga.js";
6
+
7
+ /** Text in several languages, keyed by language code (`en`, `ja-ro`, `pt-br`, ...). */
8
+
9
+ const STATUSES = {
10
+ ongoing: MediaStatus.ONGOING,
11
+ completed: MediaStatus.COMPLETED,
12
+ hiatus: MediaStatus.HIATUS,
13
+ cancelled: MediaStatus.CANCELLED
14
+ };
15
+
16
+ /** Chapters per feed request (the API's maximum). */
17
+ const FEED_PAGE_SIZE = 500;
18
+ /** MangaDex refuses list requests whose offset + limit is past this. */
19
+ const MAX_RESULT_WINDOW = 10000;
20
+ /** The feed only lists chapters of titles with these ratings; an id the caller already has is any of them. */
21
+ const ALL_CONTENT_RATINGS = ['safe', 'suggestive', 'erotica', 'pornographic'];
22
+
23
+ /** A query string from `[key, value]` pairs; keys such as `includes[]` are sent as they are. */
24
+ const queryString = params => params.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`).join('&');
25
+
26
+ /** A number from MangaDex's numeric strings (`"12"`, `"10.5"`); undefined for empty or other text. */
27
+ const toNumber = text => {
28
+ if (typeof text !== 'string' || text.trim() === '') return undefined;
29
+ const value = Number(text.trim());
30
+ return Number.isFinite(value) ? value : undefined;
31
+ };
32
+
33
+ /** The non-empty texts of a localized map, as `[language, text]` pairs. */
34
+ const entries = map => Object.entries(map ?? {}).flatMap(([lang, text]) => typeof text === 'string' && text.trim() ? [[lang, text.trim()]] : []);
35
+
36
+ /**
37
+ * The display title (English: the main title when it is English, else the first English alt title;
38
+ * otherwise the main title) and every other title, without repeats.
39
+ */
40
+ const pickTitles = (main, alts) => {
41
+ const mainTitles = entries(main);
42
+ const altTitleList = (alts ?? []).flatMap(alt => entries(alt));
43
+ const chosen = mainTitles.find(([lang]) => lang === 'en') ?? altTitleList.find(([lang]) => lang === 'en') ?? mainTitles[0] ?? altTitleList[0];
44
+ const title = chosen ? chosen[1] : '';
45
+ const altTitles = [];
46
+ for (const [, text] of [...mainTitles, ...altTitleList]) {
47
+ if (text !== title && !altTitles.includes(text)) altTitles.push(text);
48
+ }
49
+ return {
50
+ title,
51
+ altTitles
52
+ };
53
+ };
54
+
55
+ /** MangaDex descriptions are Markdown; this keeps the text and drops the markup. */
56
+ const markdownToText = markdown => markdown.replace(/\r\n?/g, '\n').replace(/\u00a0/g, ' ').replace(/!\[([^\]]*)\]\([^)]*\)/g, '$1') // images
57
+ .replace(/\[([^\]]+)\]\(([^()]|\([^)]*\))*\)/g, '$1') // links: keep the text
58
+ .replace(/\[\/?(?:b|i|u|s|spoiler|url)(?:=[^\]]*)?\]/gi, '') // BBCode tags
59
+ .replace(/<\/?[a-z][^>]*>/gi, '') // HTML tags
60
+ .replace(/^ {0,3}([-*_])(?: *\1){2,} *$/gm, '') // horizontal rules
61
+ .replace(/^ {0,3}#{1,6} +/gm, '') // headings
62
+ .replace(/^ {0,3}> ?/gm, '') // block quotes
63
+ .replace(/^( *)[*+] +/gm, '$1- ') // list bullets
64
+ .replace(/(\*\*|__)(?=\S)([^\n]*?\S)\1/g, '$2') // bold
65
+ .replace(/(^|[^\w*])\*(?=\S)([^*\n]*?\S)\*(?!\w)/g, '$1$2') // *italic*
66
+ .replace(/(^|[^\w])_(?=\S)([^_\n]*?\S)_(?!\w)/g, '$1$2') // _italic_
67
+ .replace(/~~([^\n]+?)~~/g, '$1') // strikethrough
68
+ .replace(/\\([\\`*_{}[\]()#+\-.!>~|])/g, '$1') // escaped characters
69
+ .replace(/[ \t]+$/gm, '') // trailing spaces (Markdown line breaks)
70
+ .replace(/\n{3,}/g, '\n\n').trim();
71
+ export class MangaDex extends MangaParser {
8
72
  name = 'MangaDex';
9
73
  baseUrl = 'https://mangadex.org';
10
74
  logo = 'https://pbs.twimg.com/profile_images/1391016345714757632/xbt_jW78_400x400.jpg';
11
75
  classPath = 'MANGA.MangaDex';
12
76
  apiUrl = 'https://api.mangadex.org';
13
- fetchMangaInfo = async mangaId => {
77
+ uploadsUrl = 'https://uploads.mangadex.org';
78
+
79
+ /** @param ctx provider context; requests go through its axios (default: `createProviderContext()`) */
80
+ constructor(ctx = createProviderContext()) {
81
+ super();
82
+ this.ctx = ctx;
83
+ }
84
+
85
+ /**
86
+ * @param mangaId manga id (a UUID, from a search result)
87
+ * @param lang language of the chapters to list, as MangaDex codes it (default: `en`; e.g. `pt-br`, `es-la`)
88
+ */
89
+ fetchMangaInfo = async (mangaId, lang = 'en') => {
14
90
  try {
15
- const {
91
+ const [{
16
92
  data
17
- } = await axios.get(`${this.apiUrl}/manga/${mangaId}`);
18
- const mangaInfo = {
19
- id: data.data.id,
20
- title: data.data.attributes.title.en,
21
- altTitles: data.data.attributes.altTitles,
22
- description: data.data.attributes.description,
23
- genres: data.data.attributes.tags.filter(tag => tag.attributes.group === 'genre').map(tag => tag.attributes.name.en),
24
- themes: data.data.attributes.tags.filter(tag => tag.attributes.group === 'theme').map(tag => tag.attributes.name.en),
25
- status: capitalizeFirstLetter(data.data.attributes.status),
26
- releaseDate: data.data.attributes.year,
27
- chapters: []
28
- };
29
- const allChapters = await this.fetchAllChapters(mangaId, 0);
30
- for (const chapter of allChapters) {
31
- mangaInfo.chapters?.push({
32
- id: chapter.id,
33
- title: chapter.attributes.title ? chapter.attributes.title : chapter.attributes.chapter,
34
- chapterNumber: chapter.attributes.chapter,
35
- volumeNumber: chapter.attributes.volume,
36
- pages: chapter.attributes.pages
37
- });
38
- }
39
- const findCoverArt = data.data.relationships.find(rel => rel.type === 'cover_art');
40
- const coverArt = await this.fetchCoverImage(findCoverArt?.id);
41
- mangaInfo.image = `${this.baseUrl}/covers/${mangaInfo.id}/${coverArt}`;
42
- return mangaInfo;
93
+ }, 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)]);
94
+ const manga = data.data;
95
+ const {
96
+ attributes
97
+ } = manga;
98
+ const info = this.toResult(manga, false);
99
+ const authors = this.relatedNames(manga, 'author');
100
+ if (authors.length > 0) info.authors = authors;
101
+ const artists = this.relatedNames(manga, 'artist');
102
+ if (artists.length > 0) info.artists = artists;
103
+ const genres = this.tagNames(manga, 'genre');
104
+ if (genres.length > 0) info.genres = genres;
105
+ const themes = this.tagNames(manga, 'theme');
106
+ if (themes.length > 0) info.themes = themes;
107
+ const malId = attributes.links?.mal;
108
+ if (malId) info.malId = toNumber(malId) ?? malId;
109
+ // Titles whose chapter numbers restart each volume can't be sorted by chapter number alone;
110
+ // the feed's own order (volume, then chapter) is the reading order then.
111
+ info.chapters = attributes.chapterNumbersResetOnNewVolume ? chapters : sortChaptersForReading(chapters);
112
+ return info;
43
113
  } catch (err) {
44
- if (err.code === 'ERR_BAD_REQUEST') throw new Error(`[${this.name}] Bad request. Make sure you have entered a valid query.`);
45
- throw new Error(err.message);
114
+ throw this.error(err);
46
115
  }
47
116
  };
48
117
 
49
118
  /**
50
- * @currently only supports english
119
+ * The chapter's pages, from the MangaDex@Home server MangaDex assigns to it.
120
+ * @param chapterId chapter id (from `fetchMangaInfo`)
121
+ * @param dataSaver smaller, compressed images (default: `false`)
51
122
  */
52
- fetchChapterPages = async chapterId => {
123
+ fetchChapterPages = async (chapterId, dataSaver = false) => {
124
+ let server;
53
125
  try {
54
- const res = await axios.get(`${this.apiUrl}/at-home/server/${chapterId}`);
55
- const pages = [];
56
- for (const id of res.data.chapter.data) {
57
- pages.push({
58
- img: `${res.data.baseUrl}/data/${res.data.chapter.hash}/${id}`,
59
- page: parseInt(substringBefore(id, '-').replace(/[^0-9.]/g, ''))
60
- });
61
- }
62
- return pages;
126
+ ({
127
+ data: server
128
+ } = await this.ctx.axios.get(`${this.apiUrl}/at-home/server/${encodeURIComponent(chapterId)}`));
63
129
  } catch (err) {
64
- throw new Error(err.message);
130
+ throw this.error(err);
131
+ }
132
+ const files = (dataSaver ? server.chapter.dataSaver : server.chapter.data) ?? [];
133
+ if (files.length === 0) {
134
+ // Chapters of official publishers link to their site and have no pages on MangaDex.
135
+ throw new Error(`[${this.name}] Chapter ${chapterId} has no pages on MangaDex (it may be hosted on another site)`);
65
136
  }
137
+ const folder = dataSaver ? 'data-saver' : 'data';
138
+ return files.map((file, index) => ({
139
+ img: `${server.baseUrl}/${folder}/${server.chapter.hash}/${file}`,
140
+ page: index + 1
141
+ }));
66
142
  };
67
143
 
68
144
  /**
@@ -70,207 +146,143 @@ class MangaDex extends MangaParser {
70
146
  * @param page page number (default: 1)
71
147
  * @param limit limit of results to return (default: 20) (max: 100) (min: 1)
72
148
  */
73
- search = async (query, page = 1, limit = 20) => {
74
- if (page <= 0) throw new Error('Page number must be greater than 0');
75
- if (limit > 100) throw new Error('Limit must be less than or equal to 100');
76
- if (limit * (page - 1) >= 10000) throw new Error('not enough results');
77
- try {
78
- const res = await axios.get(`${this.apiUrl}/manga?limit=${limit}&title=${encode(query)}&limit=${limit}&offset=${limit * (page - 1)}&order[relevance]=desc`);
79
- if (res.data.result === 'ok') {
80
- const results = {
81
- currentPage: page,
82
- results: []
83
- };
84
- for (const manga of res.data.data) {
85
- const findCoverArt = manga.relationships.find(item => item.type === 'cover_art');
86
- const coverArtId = findCoverArt ? findCoverArt.id : null;
87
- const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
88
- results.results.push({
89
- id: manga.id,
90
- title: Object.values(manga.attributes.title)[0],
91
- altTitles: manga.attributes.altTitles,
92
- description: Object.values(manga.attributes.description)[0],
93
- status: manga.attributes.status,
94
- releaseDate: manga.attributes.year,
95
- contentRating: manga.attributes.contentRating,
96
- lastVolume: manga.attributes.lastVolume,
97
- lastChapter: manga.attributes.lastChapter,
98
- image: `${this.baseUrl}/covers/${manga.id}/${coverArt}`
99
- });
100
- }
101
- return results;
102
- } else {
103
- throw new Error(res.data.message);
104
- }
105
- } catch (err) {
106
- if (err.code === 'ERR_BAD_REQUEST') {
107
- throw new Error('Bad request. Make sure you have entered a valid query.');
108
- }
109
- throw new Error(err.message);
110
- }
111
- };
149
+ search = async (query, page = 1, limit = 20) => this.fetchList([['title', query], ['order[relevance]', 'desc']], page, limit);
112
150
  fetchRandom = async () => {
113
151
  try {
114
- const res = await axios.get(`${this.apiUrl}/manga/random`);
115
- if (res.data.result === 'ok') {
116
- const results = {
117
- currentPage: 1,
118
- results: []
119
- };
120
- const findCoverArt = res.data.data.relationships.find(item => item.type === 'cover_art');
121
- const coverArtId = findCoverArt ? findCoverArt.id : null;
122
- const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
123
- results.results.push({
124
- id: res.data.data.id,
125
- title: Object.values(res.data.data.attributes.title)[0],
126
- altTitles: res.data.data.attributes.altTitles,
127
- description: Object.values(res.data.data.attributes.description)[0],
128
- status: res.data.data.attributes.status,
129
- releaseDate: res.data.data.attributes.year,
130
- contentRating: res.data.data.attributes.contentRating,
131
- lastVolume: res.data.data.attributes.lastVolume,
132
- lastChapter: res.data.data.attributes.lastChapter,
133
- image: `${this.baseUrl}/covers/${res.data.data.id}/${coverArt}`
134
- });
135
- return results;
136
- } else {
137
- throw new Error(res.data.message);
138
- }
139
- } catch (err) {
140
- throw new Error(err.message);
141
- }
142
- };
143
- fetchRecentlyAdded = async (page = 1, limit = 20) => {
144
- if (page <= 0) throw new Error('Page number must be greater than 0');
145
- if (limit > 100) throw new Error('Limit must be less than or equal to 100');
146
- if (limit * (page - 1) >= 10000) throw new Error('not enough results');
147
- try {
148
- const res = await axios.get(`${this.apiUrl}/manga?includes[]=cover_art&contentRating[]=safe&contentRating[]=suggestive&contentRating[]=erotica&order[createdAt]=desc&hasAvailableChapters=true&limit=${limit}&offset=${limit * (page - 1)}`);
149
- if (res.data.result === 'ok') {
150
- const results = {
151
- currentPage: page,
152
- results: []
153
- };
154
- for (const manga of res.data.data) {
155
- const findCoverArt = manga.relationships.find(item => item.type === 'cover_art');
156
- const coverArtId = findCoverArt ? findCoverArt.id : null;
157
- const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
158
- results.results.push({
159
- id: manga.id,
160
- title: Object.values(manga.attributes.title)[0],
161
- altTitles: manga.attributes.altTitles,
162
- description: Object.values(manga.attributes.description)[0],
163
- status: manga.attributes.status,
164
- releaseDate: manga.attributes.year,
165
- contentRating: manga.attributes.contentRating,
166
- lastVolume: manga.attributes.lastVolume,
167
- lastChapter: manga.attributes.lastChapter,
168
- image: `${this.baseUrl}/covers/${manga.id}/${coverArt}`
169
- });
170
- }
171
- return results;
172
- } else {
173
- throw new Error(res.data.message);
174
- }
152
+ const {
153
+ data
154
+ } = await this.ctx.axios.get(`${this.apiUrl}/manga/random?${queryString([['includes[]', 'cover_art']])}`);
155
+ return {
156
+ currentPage: 1,
157
+ hasNextPage: false,
158
+ results: [this.toResult(data.data)]
159
+ };
175
160
  } catch (err) {
176
- throw new Error(err.message);
161
+ throw this.error(err);
177
162
  }
178
163
  };
179
- fetchLatestUpdates = async (page = 1, limit = 20) => {
164
+ fetchRecentlyAdded = async (page = 1, limit = 20) => this.fetchList([['contentRating[]', 'safe'], ['contentRating[]', 'suggestive'], ['contentRating[]', 'erotica'], ['order[createdAt]', 'desc'], ['hasAvailableChapters', 'true']], page, limit);
165
+ fetchLatestUpdates = async (page = 1, limit = 20) => this.fetchList([['order[latestUploadedChapter]', 'desc']], page, limit);
166
+ fetchPopular = async (page = 1, limit = 20) => this.fetchList([['order[followedCount]', 'desc'], ['contentRating[]', 'safe'], ['contentRating[]', 'suggestive'], ['hasAvailableChapters', 'true']], page, limit);
167
+
168
+ /** One page of `/manga` with the given filters, covers included. */
169
+ fetchList = async (params, page, limit) => {
180
170
  if (page <= 0) throw new Error('Page number must be greater than 0');
181
171
  if (limit > 100) throw new Error('Limit must be less than or equal to 100');
182
- if (limit * (page - 1) >= 10000) throw new Error('not enough results');
172
+ if (limit * (page - 1) >= MAX_RESULT_WINDOW) throw new Error('not enough results');
173
+ const offset = limit * (page - 1);
183
174
  try {
184
- const res = await axios.get(`${this.apiUrl}/manga?order[latestUploadedChapter]=desc&limit=${limit}&offset=${limit * (page - 1)}`);
185
- if (res.data.result === 'ok') {
186
- const results = {
187
- currentPage: page,
188
- results: []
189
- };
190
- for (const manga of res.data.data) {
191
- const findCoverArt = manga.relationships.find(item => item.type === 'cover_art');
192
- const coverArtId = findCoverArt ? findCoverArt.id : null;
193
- const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
194
- results.results.push({
195
- id: manga.id,
196
- title: Object.values(manga.attributes.title)[0],
197
- altTitles: manga.attributes.altTitles,
198
- description: Object.values(manga.attributes.description)[0],
199
- status: manga.attributes.status,
200
- releaseDate: manga.attributes.year,
201
- contentRating: manga.attributes.contentRating,
202
- lastVolume: manga.attributes.lastVolume,
203
- lastChapter: manga.attributes.lastChapter,
204
- image: `${this.baseUrl}/covers/${manga.id}/${coverArt}`
205
- });
206
- }
207
- return results;
208
- } else {
209
- throw new Error(res.data.message);
210
- }
175
+ const {
176
+ data
177
+ } = await this.ctx.axios.get(`${this.apiUrl}/manga?${queryString([...params, ['includes[]', 'cover_art'], ['limit', limit], ['offset', offset]])}`);
178
+ if (data.result !== 'ok') throw new Error(data.errors?.[0]?.detail ?? data.message);
179
+ const total = data.total ?? 0;
180
+ return {
181
+ currentPage: page,
182
+ hasNextPage: offset + limit < Math.min(total, MAX_RESULT_WINDOW),
183
+ totalResults: total,
184
+ results: data.data.map(manga => this.toResult(manga))
185
+ };
211
186
  } catch (err) {
212
- throw new Error(err.message);
187
+ throw this.error(err);
213
188
  }
214
189
  };
215
- fetchPopular = async (page = 1, limit = 20) => {
216
- if (page <= 0) throw new Error('Page number must be greater than 0');
217
- if (limit > 100) throw new Error('Limit must be less than or equal to 100');
218
- if (limit * (page - 1) >= 10000) throw new Error('not enough results');
219
- try {
220
- const res = await axios.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)}`);
221
- if (res.data.result === 'ok') {
222
- const results = {
223
- currentPage: page,
224
- results: []
225
- };
226
- for (const manga of res.data.data) {
227
- const findCoverArt = manga.relationships.find(item => item.type === 'cover_art');
228
- const coverArtId = findCoverArt ? findCoverArt.id : null;
229
- const coverArt = await this.fetchCoverImage(coverArtId === null || coverArtId === void 0 ? void 0 : coverArtId);
230
- results.results.push({
231
- id: manga.id,
232
- title: Object.values(manga.attributes.title)[0],
233
- altTitles: manga.attributes.altTitles,
234
- description: Object.values(manga.attributes.description)[0],
235
- status: manga.attributes.status,
236
- releaseDate: manga.attributes.year,
237
- contentRating: manga.attributes.contentRating,
238
- lastVolume: manga.attributes.lastVolume,
239
- lastChapter: manga.attributes.lastChapter,
240
- image: `${this.baseUrl}/covers/${manga.id}/${coverArt}`
241
- });
242
- }
243
- return results;
244
- } else {
245
- throw new Error(res.data.message);
246
- }
247
- } catch (err) {
248
- throw new Error(err.message);
190
+
191
+ /** Every readable chapter in `lang`, in the feed's order (volume, then chapter). */
192
+ fetchChapters = async (mangaId, lang) => {
193
+ const chapters = [];
194
+ let offset = 0;
195
+ let total = Infinity;
196
+ while (offset < total && offset < MAX_RESULT_WINDOW) {
197
+ const {
198
+ data
199
+ } = await this.ctx.axios.get(`${this.apiUrl}/manga/${encodeURIComponent(mangaId)}/feed?${queryString([['translatedLanguage[]', lang],
200
+ // Chapters that only link to a publisher's site, or aren't readable yet, have no pages here.
201
+ ['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]])}`);
202
+ const page = data.data ?? [];
203
+ for (const chapter of page) chapters.push(this.toChapter(chapter));
204
+ total = data.total ?? 0;
205
+ if (page.length === 0) break;
206
+ offset += page.length;
249
207
  }
208
+ return chapters;
250
209
  };
251
- fetchAllChapters = async (mangaId, offset, res) => {
252
- if (res?.data?.offset + 96 >= res?.data?.total) {
253
- return [];
254
- }
255
- const response = await axios.get(`${this.apiUrl}/manga/${mangaId}/feed?offset=${offset}&limit=96&order[volume]=desc&order[chapter]=desc&translatedLanguage[]=en`);
256
- return [...response.data.data, ...(await this.fetchAllChapters(mangaId, offset + 96, response))];
210
+
211
+ /** A title from `/manga`; `thumbnail` picks the 512 px cover instead of the full-size one. */
212
+ toResult = (manga, thumbnail = true) => {
213
+ const {
214
+ attributes
215
+ } = manga;
216
+ const {
217
+ title,
218
+ altTitles
219
+ } = pickTitles(attributes.title, attributes.altTitles);
220
+ const result = {
221
+ id: manga.id,
222
+ title
223
+ };
224
+ if (altTitles.length > 0) result.altTitles = altTitles;
225
+ const cover = manga.relationships?.find(rel => rel.type === 'cover_art')?.attributes?.fileName;
226
+ if (cover) result.image = `${this.uploadsUrl}/covers/${manga.id}/${cover}${thumbnail ? '.512.jpg' : ''}`;
227
+ const descriptions = entries(attributes.description);
228
+ const description = (descriptions.find(([lang]) => lang === 'en') ?? descriptions[0])?.[1];
229
+ const text = description ? markdownToText(description) : '';
230
+ if (text) result.description = text;
231
+ if (attributes.status) result.status = STATUSES[attributes.status] ?? MediaStatus.UNKNOWN;
232
+ if (typeof attributes.year === 'number') result.releaseDate = attributes.year;
233
+ result.url = `${this.baseUrl}/title/${manga.id}`;
234
+ if (attributes.contentRating) result.contentRating = attributes.contentRating;
235
+ const lastVolume = toNumber(attributes.lastVolume);
236
+ if (lastVolume !== undefined) result.lastVolume = lastVolume;
237
+ const lastChapter = toNumber(attributes.lastChapter);
238
+ if (lastChapter !== undefined) result.lastChapter = lastChapter;
239
+ return result;
257
240
  };
258
- fetchCoverImage = async coverId => {
241
+ toChapter = chapter => {
259
242
  const {
260
- data
261
- } = await axios.get(`${this.apiUrl}/cover/${coverId}`);
262
- const fileName = data.data.attributes.fileName;
263
- return fileName;
243
+ attributes
244
+ } = chapter;
245
+ const chapterNumber = parseChapterNumber(attributes.chapter);
246
+ const volumeNumber = toNumber(attributes.volume);
247
+ const label = attributes.chapter?.trim();
248
+ const result = {
249
+ id: chapter.id,
250
+ title: attributes.title?.trim() || (chapterNumber !== undefined ? `Chapter ${chapterNumber}` : label || 'Oneshot')
251
+ };
252
+ if (chapterNumber !== undefined) result.chapterNumber = chapterNumber;
253
+ if (volumeNumber !== undefined) result.volumeNumber = volumeNumber;
254
+ if (typeof attributes.pages === 'number' && attributes.pages > 0) result.pages = attributes.pages;
255
+ const releaseDate = attributes.publishAt ?? attributes.readableAt;
256
+ if (releaseDate) result.releaseDate = releaseDate;
257
+ const groups = (chapter.relationships ?? []).filter(rel => rel.type === 'scanlation_group').map(rel => rel.attributes?.name?.trim()).filter(name => Boolean(name));
258
+ if (groups.length > 0) result.scanlator = groups.join(' & ');
259
+ if (attributes.translatedLanguage) result.language = attributes.translatedLanguage;
260
+ result.url = `${this.baseUrl}/chapter/${chapter.id}`;
261
+ return result;
264
262
  };
265
- }
266
263
 
267
- // (async () => {
268
- // const md = new MangaDex();
269
- // const search = await md.search('solo leveling');
270
- // const manga = await md.fetchMangaInfo(search.results[0].id);
271
- // const chapterPages = await md.fetchChapterPages(manga.chapters![0].id);
272
- // console.log(chapterPages);
273
- // })();
264
+ /** Names of the title's authors or artists (included with the request), without repeats. */
265
+ relatedNames = (manga, type) => {
266
+ const names = [];
267
+ for (const rel of manga.relationships ?? []) {
268
+ const name = rel.type === type ? rel.attributes?.name?.trim() : undefined;
269
+ if (name && !names.includes(name)) names.push(name);
270
+ }
271
+ return names;
272
+ };
273
+ tagNames = (manga, group) => (manga.attributes.tags ?? []).filter(tag => tag.attributes.group === group).flatMap(tag => {
274
+ const names = entries(tag.attributes.name);
275
+ const name = (names.find(([lang]) => lang === 'en') ?? names[0])?.[1];
276
+ return name ? [name] : [];
277
+ });
274
278
 
275
- export default MangaDex;
279
+ /** The API's own error message when it sent one (e.g. `Manga ... not found.`). */
280
+ error = err => {
281
+ const response = err?.response;
282
+ const detail = response?.data?.errors?.[0]?.detail;
283
+ if (detail) return new Error(`[${this.name}] ${detail}`);
284
+ if (err?.code === 'ERR_BAD_REQUEST') return new Error(`[${this.name}] Bad request. Make sure you have entered a valid query.`);
285
+ return new Error(`[${this.name}] ${err?.message ?? String(err)}`);
286
+ };
287
+ }
276
288
  //# sourceMappingURL=mangadex.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["axios","encode","MangaParser","capitalizeFirstLetter","substringBefore","MangaDex","name","baseUrl","logo","classPath","apiUrl","fetchMangaInfo","mangaId","data","get","mangaInfo","id","title","attributes","en","altTitles","description","genres","tags","filter","tag","group","map","themes","status","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","replace","search","query","limit","result","results","currentPage","manga","item","coverArtId","Object","values","contentRating","lastVolume","lastChapter","fetchRandom","fetchRecentlyAdded","fetchLatestUpdates","fetchPopular","offset","total","response","coverId","fileName"],"sourceRoot":"../../../../src","sources":["providers/manga/mangadex.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,mBAAmB;AAG1C,SAKEC,WAAW,QAEN,uBAAc;AACrB,SAASC,qBAAqB,EAAEC,eAAe,QAAQ,sBAAa;AAEpE,MAAMC,QAAQ,SAASH,WAAW,CAAC;EACfI,IAAI,GAAG,UAAU;EAChBC,OAAO,GAAG,sBAAsB;EAChCC,IAAI,GAAG,+EAA+E;EACtFC,SAAS,GAAG,gBAAgB;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AAI,MAAM,IAAI,CAACqB,gBAAgB,CAACtB,OAAO,EAAEmE,MAAM,GAAG,EAAE,EAAEE,QAAQ,CAAC,CAAC,CAAC;EAClG,CAAC;EAEOlC,eAAe,GAAG,MAAOmC,OAAe,IAAsB;IACpE,MAAM;MAAErE;IAAK,CAAC,GAAG,MAAMb,KAAK,CAACc,GAAG,CAAC,GAAG,IAAI,CAACJ,MAAM,UAAUwE,OAAO,EAAE,CAAC;IAEnE,MAAMC,QAAQ,GAAGtE,IAAI,CAACA,IAAI,CAACK,UAAU,CAACiE,QAAQ;IAE9C,OAAOA,QAAQ;EACjB,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe9E,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["MangaParser","MediaStatus","createProviderContext","parseChapterNumber","sortChaptersForReading","STATUSES","ongoing","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","name","baseUrl","logo","classPath","apiUrl","uploadsUrl","constructor","ctx","fetchMangaInfo","mangaId","data","chapters","Promise","all","axios","get","fetchChapters","manga","attributes","info","toResult","authors","relatedNames","length","artists","genres","tagNames","themes","malId","links","mal","chapterNumbersResetOnNewVolume","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","volumeNumber","volume","label","pages","publishAt","readableAt","groups","filter","Boolean","scanlator","translatedLanguage","language","names","group","tags","tag","response","code"],"sourceRoot":"../../../../src","sources":["providers/manga/mangadex.ts"],"mappings":";;AAEA,SAMEA,WAAW,EACXC,WAAW,QAEN,uBAAc;AACrB,SAASC,qBAAqB,QAAQ,wCAAqC;AAC3E,SAASC,kBAAkB,EAAEC,sBAAsB,QAAQ,sBAAmB;;AAE9E;;AAyCA,MAAMC,QAAqC,GAAG;EAC5CC,OAAO,EAAEL,WAAW,CAACM,OAAO;EAC5BC,SAAS,EAAEP,WAAW,CAACQ,SAAS;EAChCC,MAAM,EAAET,WAAW,CAACU,MAAM;EAC1BC,SAAS,EAAEX,WAAW,CAACY;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,CAAC,EAAE,CAAC,CAACG,IAAI,CAAC,GAAG,CAAC;;AAEvF;AACA,MAAMC,QAAQ,GAAIC,IAA+B,IAAyB;EACxE,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAIA,IAAI,CAACC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,OAAOC,SAAS;EACpE,MAAMP,KAAK,GAAGQ,MAAM,CAACH,IAAI,CAACC,IAAI,CAAC,CAAC,CAAC;EACjC,OAAOE,MAAM,CAACC,QAAQ,CAACT,KAAK,CAAC,GAAGA,KAAK,GAAGO,SAAS;AACnD,CAAC;;AAED;AACA,MAAMG,OAAO,GAAIZ,GAAiC,IAChDa,MAAM,CAACD,OAA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