react-native-consumet 1.0.0-rc.0 → 1.0.0-rc.2

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 (245) hide show
  1. package/android/generated/java/com/consumet/NativeConsumetSpec.java +4 -0
  2. package/android/generated/jni/RNConsumetSpec-generated.cpp +6 -0
  3. package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI-generated.cpp +8 -0
  4. package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +9 -0
  5. package/android/src/main/java/com/consumet/ConsumetModule.kt +7 -0
  6. package/android/src/main/java/com/consumet/DdosGuardModule.kt +248 -189
  7. package/ios/generated/RNConsumetSpec/RNConsumetSpec-generated.mm +7 -0
  8. package/ios/generated/RNConsumetSpec/RNConsumetSpec.h +2 -0
  9. package/ios/generated/RNConsumetSpecJSI-generated.cpp +8 -0
  10. package/ios/generated/RNConsumetSpecJSI.h +9 -0
  11. package/lib/commonjs/NativeConsumet.ts +28 -26
  12. package/lib/commonjs/extension-registry.json +13 -13
  13. package/lib/commonjs/extractors/filemoon.js +2 -2
  14. package/lib/commonjs/extractors/kwik.js +60 -15
  15. package/lib/commonjs/extractors/kwik.js.map +1 -1
  16. package/lib/commonjs/extractors/megacloud.js +6 -6
  17. package/lib/commonjs/index.js +2 -11
  18. package/lib/commonjs/index.js.map +1 -1
  19. package/lib/commonjs/models/types.js +4 -4
  20. package/lib/commonjs/models/video-extractor.js +4 -4
  21. package/lib/commonjs/providers/anime/animedrive.js +12 -12
  22. package/lib/commonjs/providers/anime/animekai.js +41 -41
  23. package/lib/commonjs/providers/anime/animepahe/animepahe.js +16 -15
  24. package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
  25. package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +12 -9
  26. package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
  27. package/lib/commonjs/providers/anime/animesuge/animesuge.js +78 -0
  28. package/lib/commonjs/providers/anime/animesuge/animesuge.js.map +1 -0
  29. package/lib/commonjs/providers/anime/animesuge/create-animesuge.js +312 -0
  30. package/lib/commonjs/providers/anime/animesuge/create-animesuge.js.map +1 -0
  31. package/lib/commonjs/providers/anime/animeunity.js +13 -13
  32. package/lib/commonjs/providers/anime/index.js +4 -4
  33. package/lib/commonjs/providers/anime/index.js.map +1 -1
  34. package/lib/commonjs/providers/anime/marin.js +12 -12
  35. package/lib/commonjs/providers/anime/zoro/create-zoro.js +2 -2
  36. package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
  37. package/lib/commonjs/providers/anime/zoro/zoro.js +76 -74
  38. package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
  39. package/lib/commonjs/providers/manga/brmangas.js +3 -3
  40. package/lib/commonjs/providers/meta/anilist.js +91 -91
  41. package/lib/commonjs/providers/meta/mal.js +12 -12
  42. package/lib/commonjs/providers/meta/tmdb.js +21 -21
  43. package/lib/commonjs/providers/movies/himovies/create-himovies.js +16 -16
  44. package/lib/commonjs/providers/movies/himovies/himovies.js +16 -16
  45. package/lib/commonjs/providers/movies/multimovies.js +15 -15
  46. package/lib/commonjs/providers/movies/multistream/index.js +21 -20
  47. package/lib/commonjs/providers/movies/multistream/index.js.map +1 -1
  48. package/lib/commonjs/providers/movies/multistream/utils.js +142 -130
  49. package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
  50. package/lib/commonjs/utils/ExtractorManager.js +15 -15
  51. package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
  52. package/lib/commonjs/utils/ProviderManager.js +2 -1
  53. package/lib/commonjs/utils/ProviderManager.js.map +1 -1
  54. package/lib/commonjs/utils/create-extractor-context.js +9 -1
  55. package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
  56. package/lib/commonjs/utils/create-provider-context.js +6 -2
  57. package/lib/commonjs/utils/create-provider-context.js.map +1 -1
  58. package/lib/commonjs/utils/extension-utils.js +44 -54
  59. package/lib/commonjs/utils/extension-utils.js.map +1 -1
  60. package/lib/commonjs/utils/index.js +2 -2
  61. package/lib/commonjs/utils/provider-maps.js +31 -0
  62. package/lib/commonjs/utils/provider-maps.js.map +1 -0
  63. package/lib/commonjs/utils/providers-list.js +4 -4
  64. package/lib/commonjs/utils/url-polyfill.js +4 -4
  65. package/lib/module/NativeConsumet.ts +28 -26
  66. package/lib/module/extension-registry.json +13 -13
  67. package/lib/module/extractors/filemoon.js +2 -2
  68. package/lib/module/extractors/kwik.js +60 -15
  69. package/lib/module/extractors/kwik.js.map +1 -1
  70. package/lib/module/extractors/megacloud.js +6 -6
  71. package/lib/module/index.js +3 -7
  72. package/lib/module/index.js.map +1 -1
  73. package/lib/module/models/types.js +4 -4
  74. package/lib/module/models/video-extractor.js +4 -4
  75. package/lib/module/providers/anime/animedrive.js +12 -12
  76. package/lib/module/providers/anime/animekai.js +41 -41
  77. package/lib/module/providers/anime/animepahe/animepahe.js +14 -14
  78. package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
  79. package/lib/module/providers/anime/animepahe/create-animepahe.js +13 -9
  80. package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
  81. package/lib/module/providers/anime/animesuge/animesuge.js +73 -0
  82. package/lib/module/providers/anime/animesuge/animesuge.js.map +1 -0
  83. package/lib/module/providers/anime/animesuge/create-animesuge.js +309 -0
  84. package/lib/module/providers/anime/animesuge/create-animesuge.js.map +1 -0
  85. package/lib/module/providers/anime/animeunity.js +13 -13
  86. package/lib/module/providers/anime/index.js +2 -2
  87. package/lib/module/providers/anime/index.js.map +1 -1
  88. package/lib/module/providers/anime/marin.js +12 -12
  89. package/lib/module/providers/anime/zoro/create-zoro.js +3 -2
  90. package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
  91. package/lib/module/providers/anime/zoro/zoro.js +74 -73
  92. package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
  93. package/lib/module/providers/manga/brmangas.js +3 -3
  94. package/lib/module/providers/meta/anilist.js +91 -91
  95. package/lib/module/providers/meta/mal.js +12 -12
  96. package/lib/module/providers/meta/tmdb.js +21 -21
  97. package/lib/module/providers/movies/himovies/create-himovies.js +16 -16
  98. package/lib/module/providers/movies/himovies/himovies.js +16 -16
  99. package/lib/module/providers/movies/multimovies.js +15 -15
  100. package/lib/module/providers/movies/multistream/index.js +21 -20
  101. package/lib/module/providers/movies/multistream/index.js.map +1 -1
  102. package/lib/module/providers/movies/multistream/utils.js +141 -129
  103. package/lib/module/providers/movies/multistream/utils.js.map +1 -1
  104. package/lib/module/utils/ExtractorManager.js +16 -16
  105. package/lib/module/utils/ExtractorManager.js.map +1 -1
  106. package/lib/module/utils/ProviderManager.js +2 -1
  107. package/lib/module/utils/ProviderManager.js.map +1 -1
  108. package/lib/module/utils/create-extractor-context.js +10 -1
  109. package/lib/module/utils/create-extractor-context.js.map +1 -1
  110. package/lib/module/utils/create-provider-context.js +8 -4
  111. package/lib/module/utils/create-provider-context.js.map +1 -1
  112. package/lib/module/utils/extension-utils.js +23 -33
  113. package/lib/module/utils/extension-utils.js.map +1 -1
  114. package/lib/module/utils/index.js +1 -1
  115. package/lib/module/utils/index.js.map +1 -1
  116. package/lib/module/utils/provider-maps.js +27 -0
  117. package/lib/module/utils/provider-maps.js.map +1 -0
  118. package/lib/module/utils/providers-list.js +4 -4
  119. package/lib/module/utils/url-polyfill.js +4 -4
  120. package/lib/typescript/commonjs/src/NativeConsumet.d.ts +2 -0
  121. package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
  122. package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
  123. package/lib/typescript/commonjs/src/index.d.ts +6 -6
  124. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/src/models/extractor-context.d.ts +8 -0
  126. package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/src/models/index.d.ts +2 -2
  128. package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/src/models/provider-context.d.ts +6 -2
  130. package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
  132. package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts +1 -1
  133. package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
  134. package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts +34 -0
  135. package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts.map +1 -0
  136. package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts +14 -0
  137. package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts.map +1 -0
  138. package/lib/typescript/commonjs/src/providers/anime/index.d.ts +2 -2
  139. package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
  140. package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +1 -1
  141. package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
  142. package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
  143. package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts +1 -1
  144. package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +1 -1
  145. package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +2 -2
  146. package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts.map +1 -1
  147. package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +1 -1
  148. package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts.map +1 -1
  150. package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +1 -20
  152. package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
  153. package/lib/typescript/commonjs/src/utils/index.d.ts +2 -1
  154. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +27 -0
  156. package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -0
  157. package/lib/typescript/module/src/NativeConsumet.d.ts +2 -0
  158. package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
  159. package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
  160. package/lib/typescript/module/src/index.d.ts +6 -6
  161. package/lib/typescript/module/src/index.d.ts.map +1 -1
  162. package/lib/typescript/module/src/models/extractor-context.d.ts +8 -0
  163. package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
  164. package/lib/typescript/module/src/models/index.d.ts +2 -2
  165. package/lib/typescript/module/src/models/index.d.ts.map +1 -1
  166. package/lib/typescript/module/src/models/provider-context.d.ts +6 -2
  167. package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
  168. package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
  169. package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts +1 -1
  170. package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
  171. package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts +34 -0
  172. package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts.map +1 -0
  173. package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts +14 -0
  174. package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts.map +1 -0
  175. package/lib/typescript/module/src/providers/anime/index.d.ts +2 -2
  176. package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
  177. package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +1 -1
  178. package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
  179. package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
  180. package/lib/typescript/module/src/providers/movies/multistream/index.d.ts +1 -1
  181. package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +1 -1
  182. package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +2 -2
  183. package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts.map +1 -1
  184. package/lib/typescript/module/src/utils/ProviderManager.d.ts +1 -1
  185. package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -1
  186. package/lib/typescript/module/src/utils/create-extractor-context.d.ts.map +1 -1
  187. package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -1
  188. package/lib/typescript/module/src/utils/extension-utils.d.ts +1 -20
  189. package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
  190. package/lib/typescript/module/src/utils/index.d.ts +2 -1
  191. package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
  192. package/lib/typescript/module/src/utils/provider-maps.d.ts +27 -0
  193. package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -0
  194. package/package.json +6 -2
  195. package/src/NativeConsumet.ts +2 -0
  196. package/src/extension-registry.json +81 -81
  197. package/src/extractors/StreamP2P.ts +60 -60
  198. package/src/extractors/filemoon.ts +58 -58
  199. package/src/extractors/index.ts +41 -41
  200. package/src/extractors/kwik.ts +113 -50
  201. package/src/extractors/megacloud.ts +163 -163
  202. package/src/extractors/mixdrop.ts +31 -31
  203. package/src/extractors/mp4upload.ts +31 -31
  204. package/src/extractors/streamhub.ts +58 -58
  205. package/src/extractors/streamwish.ts +120 -120
  206. package/src/extractors/vidhide.ts +59 -59
  207. package/src/index.tsx +176 -175
  208. package/src/models/extension-manifest.ts +77 -77
  209. package/src/models/extractor-context.ts +55 -41
  210. package/src/models/index.ts +107 -106
  211. package/src/models/provider-context.ts +192 -182
  212. package/src/models/types.ts +531 -531
  213. package/src/models/video-extractor.ts +48 -48
  214. package/src/providers/anime/animedrive.ts +245 -245
  215. package/src/providers/anime/animekai.ts +627 -627
  216. package/src/providers/anime/animepahe/animepahe.ts +76 -76
  217. package/src/providers/anime/animepahe/create-animepahe.ts +350 -348
  218. package/src/providers/anime/animesuge/animesuge.ts +77 -0
  219. package/src/providers/anime/animesuge/create-animesuge.ts +327 -0
  220. package/src/providers/anime/animeunity.ts +216 -216
  221. package/src/providers/anime/index.ts +21 -21
  222. package/src/providers/anime/marin.ts +319 -319
  223. package/src/providers/anime/zoro/create-zoro.ts +656 -655
  224. package/src/providers/anime/zoro/zoro.ts +198 -197
  225. package/src/providers/index.ts +7 -7
  226. package/src/providers/manga/brmangas.ts +144 -144
  227. package/src/providers/meta/anilist.ts +2108 -2108
  228. package/src/providers/meta/mal.ts +635 -635
  229. package/src/providers/meta/tmdb.ts +470 -470
  230. package/src/providers/movies/himovies/create-himovies.ts +529 -529
  231. package/src/providers/movies/himovies/himovies.ts +90 -90
  232. package/src/providers/movies/index.ts +15 -15
  233. package/src/providers/movies/multimovies.ts +495 -495
  234. package/src/providers/movies/multistream/index.ts +232 -231
  235. package/src/providers/movies/multistream/utils.ts +147 -270
  236. package/src/utils/ExtractorManager.ts +311 -311
  237. package/src/utils/ProviderManager.ts +423 -424
  238. package/src/utils/create-extractor-context.ts +36 -22
  239. package/src/utils/create-provider-context.ts +117 -107
  240. package/src/utils/extension-utils.ts +105 -114
  241. package/src/utils/index.ts +96 -95
  242. package/src/utils/provider-maps.ts +31 -0
  243. package/src/utils/providers-list.ts +27 -27
  244. package/src/utils/url-polyfill.ts +642 -642
  245. package/src/utils/utils.ts +374 -374
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { AnimeParser } from "../../../models/index.js";
4
4
  import { createProviderContext } from "../../../utils/create-provider-context.js";
5
- import { createZoro } from "./create-zoro.js";
5
+ import createZoro from "./create-zoro.js";
6
6
 
7
7
  // Backward compatibility wrapper class
8
8
  export class Zoro extends AnimeParser {
@@ -57,132 +57,133 @@ export class Zoro extends AnimeParser {
57
57
  get classPath() {
58
58
  return this.instance.classPath;
59
59
  }
60
- /**
61
- * @param query Search query
62
- * @param page Page number (optional)
60
+ /**
61
+ * @param query Search query
62
+ * @param page Page number (optional)
63
63
  */
64
64
 
65
- /**
66
- * Fetch advanced anime search results with various filters.
67
- *
68
- * @param page Page number (default: 1)
69
- * @param type One of (Optional): movie, tv, ova, ona, special, music
70
- * @param status One of (Optional): finished_airing, currently_airing, not_yet_aired
71
- * @param rated One of (Optional): g, pg, pg_13, r, r_plus, rx
72
- * @param score Number from 1 to 10 (Optional)
73
- * @param season One of (Optional): spring, summer, fall, winter
74
- * @param language One of (Optional): sub, dub, sub_dub
75
- * @param startDate Start date object { year, month, day } (Optional)
76
- * @param endDate End date object { year, month, day } (Optional)
77
- * @param sort One of (Optional): recently_added, recently_updated, score, name_az, released_date, most_watched
78
- * @param genres Array of genres (Optional): action, adventure, cars, comedy, dementia, demons, mystery, drama, ecchi, fantasy, game, historical, horror, kids, magic, martial_arts, mecha, music, parody, samurai, romance, school, sci_fi, shoujo, shoujo_ai, shounen, shounen_ai, space, sports, super_power, vampire, harem, military, slice_of_life, supernatural, police, psychological, thriller, seinen, isekai, josei
79
- * @returns A Promise resolving to the search results.
65
+ /**
66
+ * Fetch advanced anime search results with various filters.
67
+ *
68
+ * @param page Page number (default: 1)
69
+ * @param type One of (Optional): movie, tv, ova, ona, special, music
70
+ * @param status One of (Optional): finished_airing, currently_airing, not_yet_aired
71
+ * @param rated One of (Optional): g, pg, pg_13, r, r_plus, rx
72
+ * @param score Number from 1 to 10 (Optional)
73
+ * @param season One of (Optional): spring, summer, fall, winter
74
+ * @param language One of (Optional): sub, dub, sub_dub
75
+ * @param startDate Start date object { year, month, day } (Optional)
76
+ * @param endDate End date object { year, month, day } (Optional)
77
+ * @param sort One of (Optional): recently_added, recently_updated, score, name_az, released_date, most_watched
78
+ * @param genres Array of genres (Optional): action, adventure, cars, comedy, dementia, demons, mystery, drama, ecchi, fantasy, game, historical, horror, kids, magic, martial_arts, mecha, music, parody, samurai, romance, school, sci_fi, shoujo, shoujo_ai, shounen, shounen_ai, space, sports, super_power, vampire, harem, military, slice_of_life, supernatural, police, psychological, thriller, seinen, isekai, josei
79
+ * @returns A Promise resolving to the search results.
80
80
  */
81
81
 
82
- /**
83
- * @param page number
82
+ /**
83
+ * @param page number
84
84
  */
85
85
 
86
- /**
87
- * @param page number
86
+ /**
87
+ * @param page number
88
88
  */
89
89
 
90
- /**
91
- * @param page number
90
+ /**
91
+ * @param page number
92
92
  */
93
93
 
94
- /**
95
- * @param page number
94
+ /**
95
+ * @param page number
96
96
  */
97
97
 
98
- /**
99
- * @param page number
98
+ /**
99
+ * @param page number
100
100
  */
101
101
 
102
- /**
103
- * @param page number
102
+ /**
103
+ * @param page number
104
104
  */
105
105
 
106
- /**
107
- * @param page number
106
+ /**
107
+ * @param page number
108
108
  */
109
109
 
110
- /**
111
- * @param studio Studio id, e.g. "toei-animation"
112
- * @param page page number (optional) `default 1`
110
+ /**
111
+ * @param studio Studio id, e.g. "toei-animation"
112
+ * @param page page number (optional) `default 1`
113
113
  */
114
114
 
115
- /**
116
- * @param page number
115
+ /**
116
+ * @param page number
117
117
  */
118
118
 
119
- /**
120
- * @param page number
119
+ /**
120
+ * @param page number
121
121
  */
122
122
 
123
- /**
124
- * @param page number
123
+ /**
124
+ * @param page number
125
125
  */
126
126
 
127
- /**
128
- * @param page number
127
+ /**
128
+ * @param page number
129
129
  */
130
130
 
131
- /**
132
- * @param page number
131
+ /**
132
+ * @param page number
133
133
  */
134
134
 
135
- /**
136
- * @param page number
135
+ /**
136
+ * @param page number
137
137
  */
138
138
 
139
- /**
140
- * @param page number
139
+ /**
140
+ * @param page number
141
141
  */
142
142
 
143
- /**
144
- * @param page number
143
+ /**
144
+ * @param page number
145
145
  */
146
146
 
147
- /**
148
- * Fetches the schedule for a given date.
149
- * @param date The date in format 'YYYY-MM-DD'. Defaults to the current date.
150
- * @returns A promise that resolves to an object containing the search results.
147
+ /**
148
+ * Fetches the schedule for a given date.
149
+ * @param date The date in format 'YYYY-MM-DD'. Defaults to the current date.
150
+ * @returns A promise that resolves to an object containing the search results.
151
151
  */
152
152
 
153
- /**
154
- * Fetches the list of episodes that the user is currently watching.
155
- * @param connectSid The session ID of the user. Note: This can be obtained from the browser cookies (needs to be signed in)
156
- * @returns A promise that resolves to an array of anime episodes.
153
+ /**
154
+ * Fetches the list of episodes that the user is currently watching.
155
+ * @param connectSid The session ID of the user. Note: This can be obtained from the browser cookies (needs to be signed in)
156
+ * @returns A promise that resolves to an array of anime episodes.
157
157
  */
158
158
 
159
- /**
160
- * @param id Anime id
159
+ /**
160
+ * @param id Anime id
161
161
  */
162
162
 
163
- /**
164
- *
165
- * @param episodeId Episode id
166
- * @param server server type (default `VidCloud`) (optional)
167
- * @param subOrDub sub or dub (default `SubOrDub.SUB`) (optional)
163
+ /**
164
+ *
165
+ * @param episodeId Episode id
166
+ * @param server server type (default `VidCloud`) (optional)
167
+ * @param subOrDub sub or dub (default `SubOrDub.SUB`) (optional)
168
168
  */
169
169
 
170
- /**
171
- * Method not implemented in Zoro provider.
172
- * @param episodeId Episode id
170
+ /**
171
+ * Method not implemented in Zoro provider.
172
+ * @param episodeId Episode id
173
173
  */
174
174
  }
175
175
  export default Zoro;
176
176
 
177
177
  // (async () => {
178
+ // // tsx ./src/providers/anime/zoro/zoro.ts
178
179
  // const zoro = new Zoro();
179
180
  // const anime = await zoro.search('Dandadan');
180
181
  // const info = await zoro.fetchAnimeInfo('solo-leveling-season-2-arise-from-the-shadow-19413');
181
182
  // // console.log(info.episodes);
182
- // const sources = await zoro.fetchEpisodeSources(
183
- // 'solo-leveling-season-2-arise-from-the-shadow-19413$episode$131394$dub',
183
+ // const sources = await zoro.fetchEpisodeServers(
184
+ // 'solo-leveling-season-2-arise-from-the-shadow-19413$episode$131394',
184
185
  // // 'megacloud-hd-2',
185
- // undefined,
186
+ // // undefined,
186
187
  // SubOrDub.DUB
187
188
  // );
188
189
  // // console.log(sources);
@@ -1 +1 @@
1
- {"version":3,"names":["AnimeParser","createProviderContext","createZoro","Zoro","constructor","customBaseURL","defaultContext","instance","logo","search","fetchAdvancedSearch","fetchTopAiring","fetchMostPopular","fetchMostFavorite","fetchLatestCompleted","fetchRecentlyUpdated","fetchRecentlyAdded","fetchTopUpcoming","fetchStudio","fetchSubbedAnime","fetchDubbedAnime","fetchMovie","fetchTV","fetchOVA","fetchONA","fetchSpecial","fetchGenres","genreSearch","fetchSchedule","fetchSpotlight","fetchSearchSuggestions","fetchContinueWatching","fetchWatchList","fetchAnimeInfo","fetchEpisodeSources","fetchEpisodeServers","name","baseUrl","value","classPath"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["providers/anime/zoro/zoro.ts"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["AnimeParser","createProviderContext","createZoro","Zoro","constructor","customBaseURL","defaultContext","instance","logo","search","fetchAdvancedSearch","fetchTopAiring","fetchMostPopular","fetchMostFavorite","fetchLatestCompleted","fetchRecentlyUpdated","fetchRecentlyAdded","fetchTopUpcoming","fetchStudio","fetchSubbedAnime","fetchDubbedAnime","fetchMovie","fetchTV","fetchOVA","fetchONA","fetchSpecial","fetchGenres","genreSearch","fetchSchedule","fetchSpotlight","fetchSearchSuggestions","fetchContinueWatching","fetchWatchList","fetchAnimeInfo","fetchEpisodeSources","fetchEpisodeServers","name","baseUrl","value","classPath"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["providers/anime/zoro/zoro.ts"],"mappings":"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","ignoreList":[]}
@@ -70,9 +70,9 @@ class BRMangas extends MangaParser {
70
70
  }
71
71
  };
72
72
 
73
- /**
74
- *
75
- * @param query Search query
73
+ /**
74
+ *
75
+ * @param query Search query
76
76
  */
77
77
  search = async query => {
78
78
  try {
@@ -18,12 +18,12 @@ class Anilist extends AnimeParser {
18
18
  kitsuGraphqlUrl = 'https://kitsu.io/api/graphql';
19
19
  malSyncUrl = 'https://api.malsync.moe';
20
20
  anifyUrl = ANIFY_URL;
21
- /**
22
- * This class maps anilist to kitsu with any other anime provider.
23
- * kitsu is used for episode images, titles and description.
24
- * @param provider anime provider (optional) default: Gogoanime
25
- * @param proxyConfig proxy config (optional)
26
- * @param adapter axios adapter (optional)
21
+ /**
22
+ * This class maps anilist to kitsu with any other anime provider.
23
+ * kitsu is used for episode images, titles and description.
24
+ * @param provider anime provider (optional) default: Gogoanime
25
+ * @param proxyConfig proxy config (optional)
26
+ * @param adapter axios adapter (optional)
27
27
  */
28
28
  constructor(provider, proxyConfig, adapter, customBaseURL) {
29
29
  super();
@@ -31,10 +31,10 @@ class Anilist extends AnimeParser {
31
31
  this.provider = provider || new Zoro(customBaseURL);
32
32
  }
33
33
 
34
- /**
35
- * @param query Search query
36
- * @param page Page number (optional)
37
- * @param perPage Number of results per page (optional) (default: 15) (max: 50)
34
+ /**
35
+ * @param query Search query
36
+ * @param page Page number (optional)
37
+ * @param perPage Number of results per page (optional) (default: 15) (max: 50)
38
38
  */
39
39
  search = async (query, page = 1, perPage = 15) => {
40
40
  const options = {
@@ -104,19 +104,19 @@ class Anilist extends AnimeParser {
104
104
  }
105
105
  };
106
106
 
107
- /**
108
- *
109
- * @param query Search query (optional)
110
- * @param type Media type (optional) (default: `ANIME`) (options: `ANIME`, `MANGA`)
111
- * @param page Page number (optional)
112
- * @param perPage Number of results per page (optional) (default: `20`) (max: `50`)
113
- * @param format Format (optional) (options: `TV`, `TV_SHORT`, `MOVIE`, `SPECIAL`, `OVA`, `ONA`, `MUSIC`)
114
- * @param sort Sort (optional) (Default: `[POPULARITY_DESC, SCORE_DESC]`) (options: `POPULARITY_DESC`, `POPULARITY`, `TRENDING_DESC`, `TRENDING`, `UPDATED_AT_DESC`, `UPDATED_AT`, `START_DATE_DESC`, `START_DATE`, `END_DATE_DESC`, `END_DATE`, `FAVOURITES_DESC`, `FAVOURITES`, `SCORE_DESC`, `SCORE`, `TITLE_ROMAJI_DESC`, `TITLE_ROMAJI`, `TITLE_ENGLISH_DESC`, `TITLE_ENGLISH`, `TITLE_NATIVE_DESC`, `TITLE_NATIVE`, `EPISODES_DESC`, `EPISODES`, `ID`, `ID_DESC`)
115
- * @param genres Genres (optional) (options: `Action`, `Adventure`, `Cars`, `Comedy`, `Drama`, `Fantasy`, `Horror`, `Mahou Shoujo`, `Mecha`, `Music`, `Mystery`, `Psychological`, `Romance`, `Sci-Fi`, `Slice of Life`, `Sports`, `Supernatural`, `Thriller`)
116
- * @param id anilist Id (optional)
117
- * @param year Year (optional) e.g. `2022`
118
- * @param status Status (optional) (options: `RELEASING`, `FINISHED`, `NOT_YET_RELEASED`, `CANCELLED`, `HIATUS`)
119
- * @param season Season (optional) (options: `WINTER`, `SPRING`, `SUMMER`, `FALL`)
107
+ /**
108
+ *
109
+ * @param query Search query (optional)
110
+ * @param type Media type (optional) (default: `ANIME`) (options: `ANIME`, `MANGA`)
111
+ * @param page Page number (optional)
112
+ * @param perPage Number of results per page (optional) (default: `20`) (max: `50`)
113
+ * @param format Format (optional) (options: `TV`, `TV_SHORT`, `MOVIE`, `SPECIAL`, `OVA`, `ONA`, `MUSIC`)
114
+ * @param sort Sort (optional) (Default: `[POPULARITY_DESC, SCORE_DESC]`) (options: `POPULARITY_DESC`, `POPULARITY`, `TRENDING_DESC`, `TRENDING`, `UPDATED_AT_DESC`, `UPDATED_AT`, `START_DATE_DESC`, `START_DATE`, `END_DATE_DESC`, `END_DATE`, `FAVOURITES_DESC`, `FAVOURITES`, `SCORE_DESC`, `SCORE`, `TITLE_ROMAJI_DESC`, `TITLE_ROMAJI`, `TITLE_ENGLISH_DESC`, `TITLE_ENGLISH`, `TITLE_NATIVE_DESC`, `TITLE_NATIVE`, `EPISODES_DESC`, `EPISODES`, `ID`, `ID_DESC`)
115
+ * @param genres Genres (optional) (options: `Action`, `Adventure`, `Cars`, `Comedy`, `Drama`, `Fantasy`, `Horror`, `Mahou Shoujo`, `Mecha`, `Music`, `Mystery`, `Psychological`, `Romance`, `Sci-Fi`, `Slice of Life`, `Sports`, `Supernatural`, `Thriller`)
116
+ * @param id anilist Id (optional)
117
+ * @param year Year (optional) e.g. `2022`
118
+ * @param status Status (optional) (options: `RELEASING`, `FINISHED`, `NOT_YET_RELEASED`, `CANCELLED`, `HIATUS`)
119
+ * @param season Season (optional) (options: `WINTER`, `SPRING`, `SUMMER`, `FALL`)
120
120
  */
121
121
  advancedSearch = async (query, type = 'ANIME', page = 1, perPage = 20, format, sort, genres, id, year, status, season) => {
122
122
  const options = {
@@ -210,11 +210,11 @@ class Anilist extends AnimeParser {
210
210
  }
211
211
  };
212
212
 
213
- /**
214
- *
215
- * @param id Anime id
216
- * @param dub to get dubbed episodes (optional) set to `true` to get dubbed episodes. **ONLY WORKS FOR GOGOANIME**
217
- * @param fetchFiller to get filler boolean on the episode object (optional) set to `true` to get filler boolean on the episode object.
213
+ /**
214
+ *
215
+ * @param id Anime id
216
+ * @param dub to get dubbed episodes (optional) set to `true` to get dubbed episodes. **ONLY WORKS FOR GOGOANIME**
217
+ * @param fetchFiller to get filler boolean on the episode object (optional) set to `true` to get filler boolean on the episode object.
218
218
  */
219
219
  fetchAnimeInfo = async (id, fetchFiller = false) => {
220
220
  const animeInfo = {
@@ -468,9 +468,9 @@ class Anilist extends AnimeParser {
468
468
  }
469
469
  };
470
470
 
471
- /**
472
- *
473
- * @param episodeId Episode id
471
+ /**
472
+ *
473
+ * @param episodeId Episode id
474
474
  */
475
475
  fetchEpisodeSources = async (episodeId, ...args) => {
476
476
  try {
@@ -481,9 +481,9 @@ class Anilist extends AnimeParser {
481
481
  }
482
482
  };
483
483
 
484
- /**
485
- *
486
- * @param episodeId Episode id
484
+ /**
485
+ *
486
+ * @param episodeId Episode id
487
487
  */
488
488
  fetchEpisodeServers = async episodeId => {
489
489
  try {
@@ -493,9 +493,9 @@ class Anilist extends AnimeParser {
493
493
  }
494
494
  };
495
495
 
496
- /**
497
- * @param page page number to search for (optional)
498
- * @param perPage number of results per page (optional)
496
+ /**
497
+ * @param page page number to search for (optional)
498
+ * @param perPage number of results per page (optional)
499
499
  */
500
500
  fetchTrendingAnime = async (page = 1, perPage = 10) => {
501
501
  const options = {
@@ -548,10 +548,10 @@ class Anilist extends AnimeParser {
548
548
  }
549
549
  };
550
550
 
551
- /**
552
- *
553
- * @param page page number to search for (optional)
554
- * @param perPage number of results per page (optional)
551
+ /**
552
+ *
553
+ * @param page page number to search for (optional)
554
+ * @param perPage number of results per page (optional)
555
555
  */
556
556
  fetchPopularAnime = async (page = 1, perPage = 10) => {
557
557
  const options = {
@@ -604,14 +604,14 @@ class Anilist extends AnimeParser {
604
604
  }
605
605
  };
606
606
 
607
- /**
608
- *
609
- * @param page page number (optional)
610
- * @param perPage number of results per page (optional)
611
- * @param weekStart Filter by the start of the week (optional) (default: todays date) (options: 2 = Monday, 3 = Tuesday, 4 = Wednesday, 5 = Thursday, 6 = Friday, 0 = Saturday, 1 = Sunday) you can use either the number or the string
612
- * @param weekEnd Filter by the end of the week (optional) similar to weekStart
613
- * @param notYetAired if true will return anime that have not yet aired (optional)
614
- * @returns the next airing episodes
607
+ /**
608
+ *
609
+ * @param page page number (optional)
610
+ * @param perPage number of results per page (optional)
611
+ * @param weekStart Filter by the start of the week (optional) (default: todays date) (options: 2 = Monday, 3 = Tuesday, 4 = Wednesday, 5 = Thursday, 6 = Friday, 0 = Saturday, 1 = Sunday) you can use either the number or the string
612
+ * @param weekEnd Filter by the end of the week (optional) similar to weekStart
613
+ * @param notYetAired if true will return anime that have not yet aired (optional)
614
+ * @returns the next airing episodes
615
615
  */
616
616
  fetchAiringSchedule = async (page = 1, perPage = 20, weekStart = (new Date().getDay() + 1) % 7, weekEnd = (new Date().getDay() + 7) % 7, notYetAired = false) => {
617
617
  let day1, day2;
@@ -660,11 +660,11 @@ class Anilist extends AnimeParser {
660
660
  }
661
661
  };
662
662
 
663
- /**
664
- *
665
- * @param genres An array of genres to filter by (optional) genres: [`Action`, `Adventure`, `Cars`, `Comedy`, `Drama`, `Fantasy`, `Horror`, `Mahou Shoujo`, `Mecha`, `Music`, `Mystery`, `Psychological`, `Romance`, `Sci-Fi`, `Slice of Life`, `Sports`, `Supernatural`, `Thriller`]
666
- * @param page page number (optional)
667
- * @param perPage number of results per page (optional)
663
+ /**
664
+ *
665
+ * @param genres An array of genres to filter by (optional) genres: [`Action`, `Adventure`, `Cars`, `Comedy`, `Drama`, `Fantasy`, `Horror`, `Mahou Shoujo`, `Mecha`, `Music`, `Mystery`, `Psychological`, `Romance`, `Sci-Fi`, `Slice of Life`, `Sports`, `Supernatural`, `Thriller`]
666
+ * @param page page number (optional)
667
+ * @param perPage number of results per page (optional)
668
668
  */
669
669
  fetchAnimeGenres = async (genres, page = 1, perPage = 20) => {
670
670
  if (genres.length === 0) throw new Error('No genres specified');
@@ -749,8 +749,8 @@ class Anilist extends AnimeParser {
749
749
  // console.timeEnd('animeinfo');
750
750
  return animeInfo.episodes;
751
751
  };
752
- /**
753
- * @returns a random anime
752
+ /**
753
+ * @returns a random anime
754
754
  */
755
755
  fetchRandomAnime = async () => {
756
756
  const options = {
@@ -781,10 +781,10 @@ class Anilist extends AnimeParser {
781
781
  }
782
782
  };
783
783
 
784
- /**
785
- * @param provider The provider to get the episode Ids from (optional) default: `gogoanime` (options: `gogoanime`, `zoro`)
786
- * @param page page number (optional)
787
- * @param perPage number of results per page (optional)
784
+ /**
785
+ * @param provider The provider to get the episode Ids from (optional) default: `gogoanime` (options: `gogoanime`, `zoro`)
786
+ * @param page page number (optional)
787
+ * @param perPage number of results per page (optional)
788
788
  */
789
789
  fetchRecentEpisodes = async (provider = 'gogoanime', page = 1, perPage = 25) => {
790
790
  try {
@@ -836,10 +836,10 @@ class Anilist extends AnimeParser {
836
836
  return episodes;
837
837
  };
838
838
 
839
- /**
840
- * @param id anilist id
841
- * @param fetchFiller to get filler boolean on the episode object (optional) set to `true` to get filler boolean on the episode object.
842
- * @returns episode list **(without anime info)**
839
+ /**
840
+ * @param id anilist id
841
+ * @param fetchFiller to get filler boolean on the episode object (optional) set to `true` to get filler boolean on the episode object.
842
+ * @returns episode list **(without anime info)**
843
843
  */
844
844
  fetchEpisodesListById = async (id, fetchFiller = false) => {
845
845
  const options = {
@@ -985,9 +985,9 @@ class Anilist extends AnimeParser {
985
985
  return possibleAnimeEpisodes;
986
986
  };
987
987
 
988
- /**
989
- * @param id anilist id
990
- * @returns anilist data for the anime **(without episodes)** (use `fetchEpisodesListById` to get the episodes) (use `fetchAnimeInfo` to get both)
988
+ /**
989
+ * @param id anilist id
990
+ * @returns anilist data for the anime **(without episodes)** (use `fetchEpisodesListById` to get the episodes) (use `fetchAnimeInfo` to get both)
991
991
  */
992
992
  fetchAnilistInfoById = async id => {
993
993
  const animeInfo = {
@@ -1145,10 +1145,10 @@ class Anilist extends AnimeParser {
1145
1145
  }
1146
1146
  };
1147
1147
 
1148
- /**
1149
- * To get Staff details by anilistId
1150
- * @param id staff id from anilist
1151
- *
1148
+ /**
1149
+ * To get Staff details by anilistId
1150
+ * @param id staff id from anilist
1151
+ *
1152
1152
  */
1153
1153
  fetchStaffById = async id => {
1154
1154
  const staffInfo = {
@@ -1196,9 +1196,9 @@ class Anilist extends AnimeParser {
1196
1196
  }
1197
1197
  };
1198
1198
 
1199
- /**
1200
- *
1201
- * @param id character id from anilist
1199
+ /**
1200
+ *
1201
+ * @param id character id from anilist
1202
1202
  */
1203
1203
  fetchCharacterInfoById = async id => {
1204
1204
  const options = {
@@ -1305,28 +1305,28 @@ class Anilist extends AnimeParser {
1305
1305
  }
1306
1306
  };
1307
1307
 
1308
- /**
1309
- * Anilist Anime class
1308
+ /**
1309
+ * Anilist Anime class
1310
1310
  */
1311
1311
  static Anime = this;
1312
1312
 
1313
- /**
1314
- * Anilist Manga Class
1313
+ /**
1314
+ * Anilist Manga Class
1315
1315
  */
1316
1316
  static Manga = class Manga {
1317
- /**
1318
- * Maps anilist manga to any manga provider (mangadex, mangasee, etc)
1319
- * @param provider MangaParser
1317
+ /**
1318
+ * Maps anilist manga to any manga provider (mangadex, mangasee, etc)
1319
+ * @param provider MangaParser
1320
1320
  */
1321
1321
  constructor(provider) {
1322
1322
  this.provider = provider || new Mangasee123();
1323
1323
  }
1324
1324
 
1325
- /**
1326
- *
1327
- * @param query query to search for
1328
- * @param page (optional) page number (default: `1`)
1329
- * @param perPage (optional) number of results per page (default: `20`)
1325
+ /**
1326
+ *
1327
+ * @param query query to search for
1328
+ * @param page (optional) page number (default: `1`)
1329
+ * @param perPage (optional) number of results per page (default: `20`)
1330
1330
  */
1331
1331
  search = async (query, page = 1, perPage = 20) => {
1332
1332
  const options = {
@@ -1374,11 +1374,11 @@ class Anilist extends AnimeParser {
1374
1374
  }
1375
1375
  };
1376
1376
 
1377
- /**
1378
- *
1379
- * @param chapterId chapter id
1380
- * @param args args to pass to the provider (if any)
1381
- * @returns
1377
+ /**
1378
+ *
1379
+ * @param chapterId chapter id
1380
+ * @param args args to pass to the provider (if any)
1381
+ * @returns
1382
1382
  */
1383
1383
  fetchChapterPages = (chapterId, ...args) => {
1384
1384
  return this.provider.fetchChapterPages(chapterId, ...args);
@@ -16,10 +16,10 @@ class Myanimelist extends AnimeParser {
16
16
  kitsuGraphqlUrl = 'https://kitsu.app/api/graphql';
17
17
  malSyncUrl = 'https://api.malsync.moe';
18
18
  anifyUrl = ANIFY_URL;
19
- /**
20
- * This class maps myanimelist to kitsu with any other anime provider.
21
- * kitsu is used for episode images, titles and description.
22
- * @param provider anime provider (optional) default: Gogoanime
19
+ /**
20
+ * This class maps myanimelist to kitsu with any other anime provider.
21
+ * kitsu is used for episode images, titles and description.
22
+ * @param provider anime provider (optional) default: Gogoanime
23
23
  */
24
24
  constructor(provider) {
25
25
  super();
@@ -111,10 +111,10 @@ class Myanimelist extends AnimeParser {
111
111
  return searchResults;
112
112
  };
113
113
 
114
- /**
115
- *
116
- * @param animeId anime id
117
- * @param fetchFiller fetch filler episodes
114
+ /**
115
+ *
116
+ * @param animeId anime id
117
+ * @param fetchFiller fetch filler episodes
118
118
  */
119
119
  fetchAnimeInfo = async (animeId, dub = false, fetchFiller = false) => {
120
120
  try {
@@ -291,10 +291,10 @@ class Myanimelist extends AnimeParser {
291
291
  return newEpisodeList;
292
292
  };
293
293
 
294
- /**
295
- *
296
- * @param id anime id
297
- * @returns anime info without streamable episodes
294
+ /**
295
+ *
296
+ * @param id anime id
297
+ * @returns anime info without streamable episodes
298
298
  */
299
299
  fetchMalInfoById = async id => {
300
300
  const animeInfo = {