react-native-consumet 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/Consumet.podspec +26 -26
  2. package/LICENSE +673 -673
  3. package/README.md +102 -102
  4. package/android/build.gradle +106 -106
  5. package/android/gradle.properties +5 -5
  6. package/android/src/main/AndroidManifest.xml +4 -4
  7. package/android/src/main/AndroidManifestNew.xml +3 -3
  8. package/android/src/main/java/com/consumet/ConsumetModule.kt +63 -63
  9. package/android/src/main/java/com/consumet/ConsumetPackage.kt +33 -33
  10. package/android/src/main/java/com/consumet/DdosGuardModule.kt +213 -213
  11. package/android/src/main/java/com/consumet/DeobfuscatorModule.kt +89 -89
  12. package/android/src/main/java/com/consumet/HttpRequestModule.kt +417 -417
  13. package/ios/Consumet.h +6 -6
  14. package/ios/Consumet.mm +18 -18
  15. package/lib/commonjs/extension-registry.json +60 -64
  16. package/lib/commonjs/extractors/{streamp2p.js → StreamP2P.js} +1 -1
  17. package/lib/commonjs/extractors/StreamP2P.js.map +1 -0
  18. package/lib/commonjs/extractors/asianload.js.map +1 -1
  19. package/lib/commonjs/extractors/filemoon.js.map +1 -1
  20. package/lib/commonjs/extractors/gdflix.js +167 -0
  21. package/lib/commonjs/extractors/gdflix.js.map +1 -0
  22. package/lib/commonjs/extractors/gofile.js +152 -0
  23. package/lib/commonjs/extractors/gofile.js.map +1 -0
  24. package/lib/commonjs/extractors/gogocdn.js.map +1 -1
  25. package/lib/commonjs/extractors/hubcloud.js +320 -0
  26. package/lib/commonjs/extractors/hubcloud.js.map +1 -0
  27. package/lib/commonjs/extractors/index.js +28 -0
  28. package/lib/commonjs/extractors/index.js.map +1 -1
  29. package/lib/commonjs/extractors/kisskh/kkey.js.map +1 -1
  30. package/lib/commonjs/extractors/kisskh/staticdata.js.map +1 -1
  31. package/lib/commonjs/extractors/kwik.js +1 -1
  32. package/lib/commonjs/extractors/kwik.js.map +1 -1
  33. package/lib/commonjs/extractors/megacloud.js.map +1 -1
  34. package/lib/commonjs/extractors/megaplay.js +169 -0
  35. package/lib/commonjs/extractors/megaplay.js.map +1 -0
  36. package/lib/commonjs/extractors/megaup.js.map +1 -1
  37. package/lib/commonjs/extractors/mixdrop.js.map +1 -1
  38. package/lib/commonjs/extractors/mp4player.js.map +1 -1
  39. package/lib/commonjs/extractors/mp4upload.js.map +1 -1
  40. package/lib/commonjs/extractors/rapidcloud.js.map +1 -1
  41. package/lib/commonjs/extractors/streamhub.js.map +1 -1
  42. package/lib/commonjs/extractors/streamlare.js.map +1 -1
  43. package/lib/commonjs/extractors/streamsb.js.map +1 -1
  44. package/lib/commonjs/extractors/streamtape.js.map +1 -1
  45. package/lib/commonjs/extractors/streamwish.js.map +1 -1
  46. package/lib/commonjs/extractors/vidhide.js.map +1 -1
  47. package/lib/commonjs/extractors/vidmoly.js.map +1 -1
  48. package/lib/commonjs/extractors/vizcloud.js.map +1 -1
  49. package/lib/commonjs/extractors/voe.js.map +1 -1
  50. package/lib/commonjs/index.js +24 -0
  51. package/lib/commonjs/index.js.map +1 -1
  52. package/lib/commonjs/models/anime-parser.js.map +1 -1
  53. package/lib/commonjs/models/base-parser.js.map +1 -1
  54. package/lib/commonjs/models/base-provider.js.map +1 -1
  55. package/lib/commonjs/models/base-types.js.map +1 -1
  56. package/lib/commonjs/models/extension-manifest.js.map +1 -1
  57. package/lib/commonjs/models/extractor-context.js.map +1 -1
  58. package/lib/commonjs/models/index.js.map +1 -1
  59. package/lib/commonjs/models/lightnovel-parser.js.map +1 -1
  60. package/lib/commonjs/models/manga-parser.js.map +1 -1
  61. package/lib/commonjs/models/movie-parser.js.map +1 -1
  62. package/lib/commonjs/models/provider-context.js.map +1 -1
  63. package/lib/commonjs/models/types.js +4 -0
  64. package/lib/commonjs/models/types.js.map +1 -1
  65. package/lib/commonjs/models/video-extractor.js.map +1 -1
  66. package/lib/commonjs/providers/anime/anify.js.map +1 -1
  67. package/lib/commonjs/providers/anime/anikoto/anikoto.js +186 -0
  68. package/lib/commonjs/providers/anime/anikoto/anikoto.js.map +1 -0
  69. package/lib/commonjs/providers/anime/anikoto/create-anikoto.js +533 -0
  70. package/lib/commonjs/providers/anime/anikoto/create-anikoto.js.map +1 -0
  71. package/lib/commonjs/providers/anime/animedrive.js.map +1 -1
  72. package/lib/commonjs/providers/anime/animekai/animekai.js.map +1 -1
  73. package/lib/commonjs/providers/anime/animekai/create-animekai.js.map +1 -1
  74. package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
  75. package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +2 -2
  76. package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
  77. package/lib/commonjs/providers/anime/animesuge/animesuge.js.map +1 -1
  78. package/lib/commonjs/providers/anime/animesuge/create-animesuge.js.map +1 -1
  79. package/lib/commonjs/providers/anime/animeunity.js.map +1 -1
  80. package/lib/commonjs/providers/anime/index.js +4 -4
  81. package/lib/commonjs/providers/anime/index.js.map +1 -1
  82. package/lib/commonjs/providers/anime/kickassanime.js.map +1 -1
  83. package/lib/commonjs/providers/anime/marin.js.map +1 -1
  84. package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
  85. package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
  86. package/lib/commonjs/providers/index.js.map +1 -1
  87. package/lib/commonjs/providers/light-novels/index.js.map +1 -1
  88. package/lib/commonjs/providers/light-novels/novelupdates.js.map +1 -1
  89. package/lib/commonjs/providers/light-novels/readlightnovels.js.map +1 -1
  90. package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
  91. package/lib/commonjs/providers/manga/brmangas.js.map +1 -1
  92. package/lib/commonjs/providers/manga/comick.js.map +1 -1
  93. package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
  94. package/lib/commonjs/providers/manga/index.js.map +1 -1
  95. package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
  96. package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
  97. package/lib/commonjs/providers/manga/mangahost.js.map +1 -1
  98. package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
  99. package/lib/commonjs/providers/manga/mangapark.js.map +1 -1
  100. package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
  101. package/lib/commonjs/providers/manga/mangareader.js.map +1 -1
  102. package/lib/commonjs/providers/manga/mangasee123.js.map +1 -1
  103. package/lib/commonjs/providers/manga/readmanga.js.map +1 -1
  104. package/lib/commonjs/providers/manga/vyvymanga.js.map +1 -1
  105. package/lib/commonjs/providers/meta/anilist.js +2 -2
  106. package/lib/commonjs/providers/meta/anilist.js.map +1 -1
  107. package/lib/commonjs/providers/meta/index.js.map +1 -1
  108. package/lib/commonjs/providers/meta/mal.js.map +1 -1
  109. package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
  110. package/lib/commonjs/providers/movies/dramacool.js.map +1 -1
  111. package/lib/commonjs/providers/movies/himovies/create-himovies.js.map +1 -1
  112. package/lib/commonjs/providers/movies/himovies/himovies.js.map +1 -1
  113. package/lib/commonjs/providers/movies/index.js +18 -1
  114. package/lib/commonjs/providers/movies/index.js.map +1 -1
  115. package/lib/commonjs/providers/movies/multimovies/create-multimovies.js.map +1 -1
  116. package/lib/commonjs/providers/movies/multimovies/multimovies.js.map +1 -1
  117. package/lib/commonjs/providers/movies/multistream/index.js.map +1 -1
  118. package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
  119. package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
  120. package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
  121. package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js +812 -0
  122. package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js.map +1 -0
  123. package/lib/commonjs/providers/movies/vegamovies/vegamovies.js +56 -0
  124. package/lib/commonjs/providers/movies/vegamovies/vegamovies.js.map +1 -0
  125. package/lib/commonjs/providers/movies/yflix/create-yflix.js.map +1 -1
  126. package/lib/commonjs/providers/movies/yflix/yflix.js.map +1 -1
  127. package/lib/commonjs/providers/movies/yflix.js.map +1 -1
  128. package/lib/commonjs/utils/ExtractorManager.js +10 -2
  129. package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
  130. package/lib/commonjs/utils/ProviderManager.js.map +1 -1
  131. package/lib/commonjs/utils/constants.js.map +1 -1
  132. package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
  133. package/lib/commonjs/utils/create-provider-context.js.map +1 -1
  134. package/lib/commonjs/utils/extension-utils.js +11 -2
  135. package/lib/commonjs/utils/extension-utils.js.map +1 -1
  136. package/lib/commonjs/utils/index.js.map +1 -1
  137. package/lib/commonjs/utils/provider-maps.js +5 -2
  138. package/lib/commonjs/utils/provider-maps.js.map +1 -1
  139. package/lib/commonjs/utils/queries.js.map +1 -1
  140. package/lib/commonjs/utils/url-polyfill.js.map +1 -1
  141. package/lib/commonjs/utils/utils.js.map +1 -1
  142. package/lib/module/extension-registry.json +60 -64
  143. package/lib/module/extractors/{streamp2p.js → StreamP2P.js} +1 -1
  144. package/lib/module/extractors/StreamP2P.js.map +1 -0
  145. package/lib/module/extractors/asianload.js.map +1 -1
  146. package/lib/module/extractors/filemoon.js.map +1 -1
  147. package/lib/module/extractors/gdflix.js +162 -0
  148. package/lib/module/extractors/gdflix.js.map +1 -0
  149. package/lib/module/extractors/gofile.js +147 -0
  150. package/lib/module/extractors/gofile.js.map +1 -0
  151. package/lib/module/extractors/gogocdn.js.map +1 -1
  152. package/lib/module/extractors/hubcloud.js +315 -0
  153. package/lib/module/extractors/hubcloud.js.map +1 -0
  154. package/lib/module/extractors/index.js +5 -1
  155. package/lib/module/extractors/index.js.map +1 -1
  156. package/lib/module/extractors/kisskh/kkey.js.map +1 -1
  157. package/lib/module/extractors/kisskh/staticdata.js.map +1 -1
  158. package/lib/module/extractors/kwik.js +1 -1
  159. package/lib/module/extractors/kwik.js.map +1 -1
  160. package/lib/module/extractors/megacloud.js.map +1 -1
  161. package/lib/module/extractors/megaplay.js +163 -0
  162. package/lib/module/extractors/megaplay.js.map +1 -0
  163. package/lib/module/extractors/megaup.js.map +1 -1
  164. package/lib/module/extractors/mixdrop.js.map +1 -1
  165. package/lib/module/extractors/mp4player.js.map +1 -1
  166. package/lib/module/extractors/mp4upload.js.map +1 -1
  167. package/lib/module/extractors/rapidcloud.js.map +1 -1
  168. package/lib/module/extractors/streamhub.js.map +1 -1
  169. package/lib/module/extractors/streamlare.js.map +1 -1
  170. package/lib/module/extractors/streamsb.js.map +1 -1
  171. package/lib/module/extractors/streamtape.js.map +1 -1
  172. package/lib/module/extractors/streamwish.js.map +1 -1
  173. package/lib/module/extractors/vidhide.js.map +1 -1
  174. package/lib/module/extractors/vidmoly.js.map +1 -1
  175. package/lib/module/extractors/vizcloud.js.map +1 -1
  176. package/lib/module/extractors/voe.js.map +1 -1
  177. package/lib/module/index.js +2 -2
  178. package/lib/module/index.js.map +1 -1
  179. package/lib/module/models/anime-parser.js.map +1 -1
  180. package/lib/module/models/base-parser.js.map +1 -1
  181. package/lib/module/models/base-provider.js.map +1 -1
  182. package/lib/module/models/base-types.js.map +1 -1
  183. package/lib/module/models/extension-manifest.js.map +1 -1
  184. package/lib/module/models/extractor-context.js.map +1 -1
  185. package/lib/module/models/index.js.map +1 -1
  186. package/lib/module/models/lightnovel-parser.js.map +1 -1
  187. package/lib/module/models/manga-parser.js.map +1 -1
  188. package/lib/module/models/movie-parser.js.map +1 -1
  189. package/lib/module/models/provider-context.js.map +1 -1
  190. package/lib/module/models/types.js +4 -0
  191. package/lib/module/models/types.js.map +1 -1
  192. package/lib/module/models/video-extractor.js.map +1 -1
  193. package/lib/module/providers/anime/anify.js.map +1 -1
  194. package/lib/module/providers/anime/anikoto/anikoto.js +181 -0
  195. package/lib/module/providers/anime/anikoto/anikoto.js.map +1 -0
  196. package/lib/module/providers/anime/anikoto/create-anikoto.js +529 -0
  197. package/lib/module/providers/anime/anikoto/create-anikoto.js.map +1 -0
  198. package/lib/module/providers/anime/animedrive.js.map +1 -1
  199. package/lib/module/providers/anime/animekai/animekai.js.map +1 -1
  200. package/lib/module/providers/anime/animekai/create-animekai.js.map +1 -1
  201. package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
  202. package/lib/module/providers/anime/animepahe/create-animepahe.js +2 -2
  203. package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
  204. package/lib/module/providers/anime/animesuge/animesuge.js.map +1 -1
  205. package/lib/module/providers/anime/animesuge/create-animesuge.js.map +1 -1
  206. package/lib/module/providers/anime/animeunity.js.map +1 -1
  207. package/lib/module/providers/anime/index.js +4 -4
  208. package/lib/module/providers/anime/index.js.map +1 -1
  209. package/lib/module/providers/anime/kickassanime.js.map +1 -1
  210. package/lib/module/providers/anime/marin.js.map +1 -1
  211. package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
  212. package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
  213. package/lib/module/providers/index.js.map +1 -1
  214. package/lib/module/providers/light-novels/index.js.map +1 -1
  215. package/lib/module/providers/light-novels/novelupdates.js.map +1 -1
  216. package/lib/module/providers/light-novels/readlightnovels.js.map +1 -1
  217. package/lib/module/providers/manga/asurascans.js.map +1 -1
  218. package/lib/module/providers/manga/brmangas.js.map +1 -1
  219. package/lib/module/providers/manga/comick.js.map +1 -1
  220. package/lib/module/providers/manga/flamescans.js.map +1 -1
  221. package/lib/module/providers/manga/index.js.map +1 -1
  222. package/lib/module/providers/manga/mangadex.js.map +1 -1
  223. package/lib/module/providers/manga/mangahere.js.map +1 -1
  224. package/lib/module/providers/manga/mangahost.js.map +1 -1
  225. package/lib/module/providers/manga/mangakakalot.js.map +1 -1
  226. package/lib/module/providers/manga/mangapark.js.map +1 -1
  227. package/lib/module/providers/manga/mangapill.js.map +1 -1
  228. package/lib/module/providers/manga/mangareader.js.map +1 -1
  229. package/lib/module/providers/manga/mangasee123.js.map +1 -1
  230. package/lib/module/providers/manga/readmanga.js.map +1 -1
  231. package/lib/module/providers/manga/vyvymanga.js.map +1 -1
  232. package/lib/module/providers/meta/anilist.js +1 -1
  233. package/lib/module/providers/meta/anilist.js.map +1 -1
  234. package/lib/module/providers/meta/index.js.map +1 -1
  235. package/lib/module/providers/meta/mal.js.map +1 -1
  236. package/lib/module/providers/meta/tmdb.js.map +1 -1
  237. package/lib/module/providers/movies/dramacool.js.map +1 -1
  238. package/lib/module/providers/movies/himovies/create-himovies.js.map +1 -1
  239. package/lib/module/providers/movies/himovies/himovies.js.map +1 -1
  240. package/lib/module/providers/movies/index.js +6 -1
  241. package/lib/module/providers/movies/index.js.map +1 -1
  242. package/lib/module/providers/movies/multimovies/create-multimovies.js.map +1 -1
  243. package/lib/module/providers/movies/multimovies/multimovies.js.map +1 -1
  244. package/lib/module/providers/movies/multistream/index.js.map +1 -1
  245. package/lib/module/providers/movies/multistream/utils.js.map +1 -1
  246. package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
  247. package/lib/module/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
  248. package/lib/module/providers/movies/vegamovies/create-vegamovies.js +808 -0
  249. package/lib/module/providers/movies/vegamovies/create-vegamovies.js.map +1 -0
  250. package/lib/module/providers/movies/vegamovies/vegamovies.js +47 -0
  251. package/lib/module/providers/movies/vegamovies/vegamovies.js.map +1 -0
  252. package/lib/module/providers/movies/yflix/create-yflix.js.map +1 -1
  253. package/lib/module/providers/movies/yflix/yflix.js.map +1 -1
  254. package/lib/module/providers/movies/yflix.js.map +1 -1
  255. package/lib/module/utils/ExtractorManager.js +10 -2
  256. package/lib/module/utils/ExtractorManager.js.map +1 -1
  257. package/lib/module/utils/ProviderManager.js.map +1 -1
  258. package/lib/module/utils/constants.js.map +1 -1
  259. package/lib/module/utils/create-extractor-context.js.map +1 -1
  260. package/lib/module/utils/create-provider-context.js.map +1 -1
  261. package/lib/module/utils/extension-utils.js +12 -3
  262. package/lib/module/utils/extension-utils.js.map +1 -1
  263. package/lib/module/utils/index.js.map +1 -1
  264. package/lib/module/utils/provider-maps.js +5 -2
  265. package/lib/module/utils/provider-maps.js.map +1 -1
  266. package/lib/module/utils/queries.js.map +1 -1
  267. package/lib/module/utils/url-polyfill.js.map +1 -1
  268. package/lib/module/utils/utils.js.map +1 -1
  269. package/lib/typescript/commonjs/src/extractors/{streamp2p.d.ts → StreamP2P.d.ts} +1 -1
  270. package/lib/typescript/commonjs/src/extractors/{streamp2p.d.ts.map → StreamP2P.d.ts.map} +1 -1
  271. package/lib/typescript/commonjs/src/extractors/gdflix.d.ts +8 -0
  272. package/lib/typescript/commonjs/src/extractors/gdflix.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/src/extractors/gofile.d.ts +8 -0
  274. package/lib/typescript/commonjs/src/extractors/gofile.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts +8 -0
  276. package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/src/extractors/index.d.ts +5 -1
  278. package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
  279. package/lib/typescript/commonjs/src/extractors/megaplay.d.ts +9 -0
  280. package/lib/typescript/commonjs/src/extractors/megaplay.d.ts.map +1 -0
  281. package/lib/typescript/commonjs/src/index.d.ts +2 -2
  282. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  283. package/lib/typescript/commonjs/src/models/provider-context.d.ts +12 -0
  284. package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
  285. package/lib/typescript/commonjs/src/models/types.d.ts +9 -1
  286. package/lib/typescript/commonjs/src/models/types.d.ts.map +1 -1
  287. package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts +144 -0
  288. package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts.map +1 -0
  289. package/lib/typescript/{module/src/providers/anime/aniwatchtv/create-aniwatchtv.d.ts → commonjs/src/providers/anime/anikoto/create-anikoto.d.ts} +10 -12
  290. package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -0
  291. package/lib/typescript/commonjs/src/providers/anime/index.d.ts +4 -4
  292. package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
  293. package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
  294. package/lib/typescript/commonjs/src/providers/movies/index.d.ts +5 -0
  295. package/lib/typescript/commonjs/src/providers/movies/index.d.ts.map +1 -1
  296. package/lib/typescript/commonjs/src/providers/movies/vegamovies/create-vegamovies.d.ts +22 -0
  297. package/lib/typescript/commonjs/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -0
  298. package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts +25 -0
  299. package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -0
  300. package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +9 -0
  302. package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +2 -1
  304. package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -1
  305. package/lib/typescript/module/src/extractors/{streamp2p.d.ts → StreamP2P.d.ts} +1 -1
  306. package/lib/typescript/module/src/extractors/{streamp2p.d.ts.map → StreamP2P.d.ts.map} +1 -1
  307. package/lib/typescript/module/src/extractors/gdflix.d.ts +8 -0
  308. package/lib/typescript/module/src/extractors/gdflix.d.ts.map +1 -0
  309. package/lib/typescript/module/src/extractors/gofile.d.ts +8 -0
  310. package/lib/typescript/module/src/extractors/gofile.d.ts.map +1 -0
  311. package/lib/typescript/module/src/extractors/hubcloud.d.ts +8 -0
  312. package/lib/typescript/module/src/extractors/hubcloud.d.ts.map +1 -0
  313. package/lib/typescript/module/src/extractors/index.d.ts +5 -1
  314. package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
  315. package/lib/typescript/module/src/extractors/megaplay.d.ts +9 -0
  316. package/lib/typescript/module/src/extractors/megaplay.d.ts.map +1 -0
  317. package/lib/typescript/module/src/index.d.ts +2 -2
  318. package/lib/typescript/module/src/index.d.ts.map +1 -1
  319. package/lib/typescript/module/src/models/provider-context.d.ts +12 -0
  320. package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
  321. package/lib/typescript/module/src/models/types.d.ts +9 -1
  322. package/lib/typescript/module/src/models/types.d.ts.map +1 -1
  323. package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts +144 -0
  324. package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts.map +1 -0
  325. package/lib/typescript/{commonjs/src/providers/anime/aniwatchtv/create-aniwatchtv.d.ts → module/src/providers/anime/anikoto/create-anikoto.d.ts} +10 -12
  326. package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -0
  327. package/lib/typescript/module/src/providers/anime/index.d.ts +4 -4
  328. package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
  329. package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
  330. package/lib/typescript/module/src/providers/movies/index.d.ts +5 -0
  331. package/lib/typescript/module/src/providers/movies/index.d.ts.map +1 -1
  332. package/lib/typescript/module/src/providers/movies/vegamovies/create-vegamovies.d.ts +22 -0
  333. package/lib/typescript/module/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -0
  334. package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts +25 -0
  335. package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -0
  336. package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -1
  337. package/lib/typescript/module/src/utils/extension-utils.d.ts +9 -0
  338. package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
  339. package/lib/typescript/module/src/utils/provider-maps.d.ts +2 -1
  340. package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -1
  341. package/package.json +217 -217
  342. package/react-native.config.js +12 -12
  343. package/src/extension-registry.json +60 -64
  344. package/src/extractors/gdflix.ts +167 -0
  345. package/src/extractors/gofile.ts +182 -0
  346. package/src/extractors/hubcloud.ts +357 -0
  347. package/src/extractors/index.ts +8 -0
  348. package/src/extractors/kwik.ts +1 -1
  349. package/src/extractors/megaplay.ts +182 -0
  350. package/src/index.tsx +8 -0
  351. package/src/models/provider-context.ts +12 -0
  352. package/src/models/types.ts +8 -0
  353. package/src/providers/anime/anikoto/anikoto.ts +215 -0
  354. package/src/providers/anime/anikoto/create-anikoto.ts +637 -0
  355. package/src/providers/anime/animepahe/create-animepahe.ts +2 -2
  356. package/src/providers/anime/index.ts +4 -4
  357. package/src/providers/meta/anilist.ts +1 -1
  358. package/src/providers/movies/index.ts +6 -0
  359. package/src/providers/movies/vegamovies/create-vegamovies.ts +921 -0
  360. package/src/providers/movies/vegamovies/vegamovies.ts +63 -0
  361. package/src/utils/ExtractorManager.ts +7 -1
  362. package/src/utils/extension-utils.ts +13 -0
  363. package/src/utils/provider-maps.ts +5 -2
  364. package/lib/commonjs/extractors/streamp2p.js.map +0 -1
  365. package/lib/commonjs/providers/anime/aniwatchtv/aniwatchtv.js +0 -187
  366. package/lib/commonjs/providers/anime/aniwatchtv/aniwatchtv.js.map +0 -1
  367. package/lib/commonjs/providers/anime/aniwatchtv/create-aniwatchtv.js +0 -572
  368. package/lib/commonjs/providers/anime/aniwatchtv/create-aniwatchtv.js.map +0 -1
  369. package/lib/module/extractors/streamp2p.js.map +0 -1
  370. package/lib/module/providers/anime/aniwatchtv/aniwatchtv.js +0 -184
  371. package/lib/module/providers/anime/aniwatchtv/aniwatchtv.js.map +0 -1
  372. package/lib/module/providers/anime/aniwatchtv/create-aniwatchtv.js +0 -569
  373. package/lib/module/providers/anime/aniwatchtv/create-aniwatchtv.js.map +0 -1
  374. package/lib/typescript/commonjs/src/providers/anime/aniwatchtv/aniwatchtv.d.ts +0 -134
  375. package/lib/typescript/commonjs/src/providers/anime/aniwatchtv/aniwatchtv.d.ts.map +0 -1
  376. package/lib/typescript/commonjs/src/providers/anime/aniwatchtv/create-aniwatchtv.d.ts.map +0 -1
  377. package/lib/typescript/module/src/providers/anime/aniwatchtv/aniwatchtv.d.ts +0 -134
  378. package/lib/typescript/module/src/providers/anime/aniwatchtv/aniwatchtv.d.ts.map +0 -1
  379. package/lib/typescript/module/src/providers/anime/aniwatchtv/create-aniwatchtv.d.ts.map +0 -1
  380. package/src/providers/anime/aniwatchtv/aniwatchtv.ts +0 -198
  381. package/src/providers/anime/aniwatchtv/create-aniwatchtv.ts +0 -632
  382. /package/src/extractors/{streamp2p.ts → StreamP2P.ts} +0 -0
@@ -0,0 +1,637 @@
1
+ import {
2
+ type ISearch,
3
+ type IAnimeInfo,
4
+ type IAnimeResult,
5
+ type IAnimeEpisode,
6
+ type ISource,
7
+ type IEpisodeServer,
8
+ type StreamingServers,
9
+ type MediaFormat,
10
+ type SubOrDub,
11
+ type ProviderContext,
12
+ type ProviderConfig,
13
+ } from '../../../models';
14
+
15
+ function createAniKoto(ctx: ProviderContext, customBaseURL?: string) {
16
+ const { axios, load, extractors, enums, createCustomBaseUrl, PolyURL } = ctx;
17
+ const { MegaPlay } = extractors;
18
+ const { StreamingServers: StreamingServersEnum, SubOrDub: SubOrDubEnum, MediaStatus: MediaStatusEnum } = enums;
19
+
20
+ // Provider configuration
21
+ const baseUrl = createCustomBaseUrl('https://anikototv.to', customBaseURL);
22
+
23
+ const config: ProviderConfig = {
24
+ name: 'AniKoto',
25
+ languages: 'en',
26
+ classPath: 'ANIME.AniKoto',
27
+ logo: 'https://anikototv.to/favicon-32x32.png',
28
+ baseUrl,
29
+ isNSFW: false,
30
+ isWorking: true,
31
+ isDubAvailableSeparately: true,
32
+ };
33
+
34
+ const defaultHeaders = {
35
+ 'User-Agent':
36
+ 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
37
+ };
38
+
39
+ const ajaxHeaders = (referer?: string) => ({
40
+ ...defaultHeaders,
41
+ 'X-Requested-With': 'XMLHttpRequest',
42
+ 'Referer': referer || config.baseUrl,
43
+ });
44
+
45
+ const normalizePageNumber = (page: number): number => {
46
+ return page <= 0 ? 1 : page;
47
+ };
48
+
49
+ // Helper to scrape card lists across search, types, genres, statuses
50
+ const scrapeCardPage = async (url: string, page: number = 1): Promise<ISearch<IAnimeResult>> => {
51
+ try {
52
+ const { data } = await axios.get(url, { headers: defaultHeaders });
53
+ const $ = load(data);
54
+ const results: IAnimeResult[] = [];
55
+
56
+ $('.item').each((_, el) => {
57
+ const item = $(el);
58
+ const nameEl = item.find('.name.d-title, .name').first();
59
+ const title = nameEl.text().trim();
60
+ const japaneseTitle = nameEl.attr('data-jp') || undefined;
61
+
62
+ const href = item.find('a.name, .poster a').first().attr('href') || '';
63
+ const match = href.match(/\/watch\/([^/?#]+)/);
64
+ const id = match ? match[1]! : href.replace(/^.*\/watch\//, '').replace(/\/.*$/, '');
65
+
66
+ const image = item.find('.poster img, img').attr('src') || '';
67
+ const subText = item.find('.ep-status.sub').first().text().trim();
68
+ const sub = parseInt(subText, 10) || 0;
69
+
70
+ const dubText = item.find('.ep-status.dub').first().text().trim();
71
+ const dub = parseInt(dubText, 10) || 0;
72
+
73
+ const type = (item.find('.meta .right').first().text().trim() || 'TV') as MediaFormat;
74
+ const ratingStr = item.find('.m-item.rated span').first().text().trim();
75
+ const rating = ratingStr ? parseFloat(ratingStr) : undefined;
76
+
77
+ if (id && title) {
78
+ results.push({
79
+ id,
80
+ title,
81
+ japaneseTitle,
82
+ image,
83
+ url: href.startsWith('http') ? href : `${config.baseUrl}${href.startsWith('/') ? '' : '/'}${href}`,
84
+ type,
85
+ sub,
86
+ dub,
87
+ rating,
88
+ });
89
+ }
90
+ });
91
+
92
+ const hasNextPage =
93
+ $('.pagination .page-item .page-link[rel="next"]').length > 0 ||
94
+ $('.pagination .page-item.active').next('.page-item').find('.page-link').length > 0;
95
+
96
+ const lastPageHref = $('.pagination .page-item a[title="Last"]').attr('href') || '';
97
+ const lastPageMatch = lastPageHref.match(/page=(\d+)/);
98
+ const totalPages = lastPageMatch ? parseInt(lastPageMatch[1]!, 10) : undefined;
99
+
100
+ return {
101
+ currentPage: page,
102
+ hasNextPage,
103
+ totalPages,
104
+ results,
105
+ };
106
+ } catch (err) {
107
+ throw new Error(`[AniKoto] Failed to scrape card page: ${(err as Error).message}`);
108
+ }
109
+ };
110
+
111
+ // Main provider functions
112
+ const search = async (query: string, page: number = 1): Promise<ISearch<IAnimeResult>> => {
113
+ const normalizedPage = normalizePageNumber(page);
114
+ return scrapeCardPage(
115
+ `${config.baseUrl}/search?keyword=${encodeURIComponent(query)}&page=${normalizedPage}`,
116
+ normalizedPage
117
+ );
118
+ };
119
+
120
+ const fetchAdvancedSearch = async (
121
+ page: number = 1,
122
+ type?: string,
123
+ status?: string,
124
+ rated?: string,
125
+ score?: number,
126
+ season?: string,
127
+ language?: string,
128
+ _startDate?: { year: number; month: number; day: number },
129
+ _endDate?: { year: number; month: number; day: number },
130
+ sort?: string,
131
+ genres?: string[]
132
+ ): Promise<ISearch<IAnimeResult>> => {
133
+ const normalizedPage = normalizePageNumber(page);
134
+ const params = new URLSearchParams();
135
+ params.set('page', String(normalizedPage));
136
+
137
+ if (type) params.set('type', type);
138
+ if (status) params.set('status', status);
139
+ if (rated) params.set('rated', rated);
140
+ if (score) params.set('score', String(score));
141
+ if (season) params.set('season', season);
142
+ if (language) params.set('language', language);
143
+ if (sort) params.set('sort', sort);
144
+ if (genres && genres.length > 0) {
145
+ for (const g of genres) {
146
+ params.append('genres[]', g);
147
+ }
148
+ }
149
+
150
+ return scrapeCardPage(`${config.baseUrl}/filter?${params.toString()}`, normalizedPage);
151
+ };
152
+
153
+ const fetchTopAiring = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
154
+ const normalizedPage = normalizePageNumber(page);
155
+ return scrapeCardPage(`${config.baseUrl}/status/currently-airing?page=${normalizedPage}`, normalizedPage);
156
+ };
157
+
158
+ const fetchMostPopular = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
159
+ const normalizedPage = normalizePageNumber(page);
160
+ return scrapeCardPage(`${config.baseUrl}/most-viewed?page=${normalizedPage}`, normalizedPage);
161
+ };
162
+
163
+ const fetchMostFavorite = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
164
+ const normalizedPage = normalizePageNumber(page);
165
+ return scrapeCardPage(`${config.baseUrl}/filter?sort=most_favorite&page=${normalizedPage}`, normalizedPage);
166
+ };
167
+
168
+ const fetchLatestCompleted = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
169
+ const normalizedPage = normalizePageNumber(page);
170
+ return scrapeCardPage(`${config.baseUrl}/status/finished-airing?page=${normalizedPage}`, normalizedPage);
171
+ };
172
+
173
+ const fetchRecentlyUpdated = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
174
+ const normalizedPage = normalizePageNumber(page);
175
+ return scrapeCardPage(`${config.baseUrl}/latest-updated?page=${normalizedPage}`, normalizedPage);
176
+ };
177
+
178
+ const fetchRecentlyAdded = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
179
+ const normalizedPage = normalizePageNumber(page);
180
+ return scrapeCardPage(`${config.baseUrl}/new-release?page=${normalizedPage}`, normalizedPage);
181
+ };
182
+
183
+ const fetchTopUpcoming = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
184
+ const normalizedPage = normalizePageNumber(page);
185
+ return scrapeCardPage(`${config.baseUrl}/status/not-yet-aired?page=${normalizedPage}`, normalizedPage);
186
+ };
187
+
188
+ const fetchStudio = async (studioId: string, page: number = 1): Promise<ISearch<IAnimeResult>> => {
189
+ const normalizedPage = normalizePageNumber(page);
190
+ return scrapeCardPage(`${config.baseUrl}/studio/${studioId}?page=${normalizedPage}`, normalizedPage);
191
+ };
192
+
193
+ const fetchSubbedAnime = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
194
+ const normalizedPage = normalizePageNumber(page);
195
+ return scrapeCardPage(`${config.baseUrl}/filter?language=1&page=${normalizedPage}`, normalizedPage);
196
+ };
197
+
198
+ const fetchDubbedAnime = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
199
+ const normalizedPage = normalizePageNumber(page);
200
+ return scrapeCardPage(`${config.baseUrl}/filter?language=2&page=${normalizedPage}`, normalizedPage);
201
+ };
202
+
203
+ const fetchMovie = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
204
+ const normalizedPage = normalizePageNumber(page);
205
+ return scrapeCardPage(`${config.baseUrl}/type/movie?page=${normalizedPage}`, normalizedPage);
206
+ };
207
+
208
+ const fetchTV = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
209
+ const normalizedPage = normalizePageNumber(page);
210
+ return scrapeCardPage(`${config.baseUrl}/type/tv?page=${normalizedPage}`, normalizedPage);
211
+ };
212
+
213
+ const fetchOVA = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
214
+ const normalizedPage = normalizePageNumber(page);
215
+ return scrapeCardPage(`${config.baseUrl}/type/ova?page=${normalizedPage}`, normalizedPage);
216
+ };
217
+
218
+ const fetchONA = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
219
+ const normalizedPage = normalizePageNumber(page);
220
+ return scrapeCardPage(`${config.baseUrl}/type/ona?page=${normalizedPage}`, normalizedPage);
221
+ };
222
+
223
+ const fetchSpecial = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
224
+ const normalizedPage = normalizePageNumber(page);
225
+ return scrapeCardPage(`${config.baseUrl}/type/special?page=${normalizedPage}`, normalizedPage);
226
+ };
227
+
228
+ const fetchGenres = async (): Promise<string[]> => {
229
+ try {
230
+ const { data } = await axios.get(`${config.baseUrl}/home`, { headers: defaultHeaders });
231
+ const $ = load(data);
232
+ const genres: string[] = [];
233
+ $('a[href*="/genre/"]').each((_, el) => {
234
+ const g = $(el).text().trim();
235
+ if (g && !genres.includes(g)) {
236
+ genres.push(g);
237
+ }
238
+ });
239
+ return genres.length > 0
240
+ ? genres
241
+ : [
242
+ 'Action',
243
+ 'Adventure',
244
+ 'Comedy',
245
+ 'Drama',
246
+ 'Fantasy',
247
+ 'Horror',
248
+ 'Mystery',
249
+ 'Romance',
250
+ 'Sci-Fi',
251
+ 'Slice of Life',
252
+ 'Supernatural',
253
+ ];
254
+ } catch {
255
+ return [
256
+ 'Action',
257
+ 'Adventure',
258
+ 'Comedy',
259
+ 'Drama',
260
+ 'Fantasy',
261
+ 'Horror',
262
+ 'Mystery',
263
+ 'Romance',
264
+ 'Sci-Fi',
265
+ 'Slice of Life',
266
+ 'Supernatural',
267
+ ];
268
+ }
269
+ };
270
+
271
+ const genreSearch = async (genre: string, page: number = 1): Promise<ISearch<IAnimeResult>> => {
272
+ const normalizedPage = normalizePageNumber(page);
273
+ const cleanGenre = genre.toLowerCase().replace(/\s+/g, '-');
274
+ return scrapeCardPage(`${config.baseUrl}/genre/${cleanGenre}?page=${normalizedPage}`, normalizedPage);
275
+ };
276
+
277
+ const fetchSchedule = async (date: string): Promise<IAnimeResult[]> => {
278
+ try {
279
+ const res = await axios.get(`${config.baseUrl}/ajax/schedule/date?date=${date}&tzOffset=-330`, {
280
+ headers: ajaxHeaders(),
281
+ });
282
+ const html = res.data?.result || res.data;
283
+ const $ = load(html);
284
+ const results: IAnimeResult[] = [];
285
+
286
+ $('a.item').each((_, el) => {
287
+ const item = $(el);
288
+ const href = item.attr('href') || '';
289
+ const match = href.match(/\/watch\/([^/?#]+)/);
290
+ const id = match ? match[1]! : href;
291
+ const title = item.find('.title.d-title, .title').text().trim();
292
+ const time = item.find('.time').text().trim();
293
+ const episodeText = item.find('.ep span').text().trim();
294
+
295
+ if (id && title) {
296
+ results.push({
297
+ id,
298
+ title,
299
+ url: href,
300
+ time,
301
+ episodeText,
302
+ } as any);
303
+ }
304
+ });
305
+
306
+ return results;
307
+ } catch (err) {
308
+ throw new Error(`[AniKoto] Failed to fetch schedule: ${(err as Error).message}`);
309
+ }
310
+ };
311
+
312
+ const fetchSpotlight = async (): Promise<IAnimeResult[]> => {
313
+ try {
314
+ const { data } = await axios.get(`${config.baseUrl}/home`, { headers: defaultHeaders });
315
+ const $ = load(data);
316
+ const results: IAnimeResult[] = [];
317
+
318
+ $('.swiper-slide.item').each((_, el) => {
319
+ const slide = $(el);
320
+ const title = slide.find('.title.d-title, .title').text().trim();
321
+ const japaneseTitle = slide.find('.title.d-title').attr('data-jp') || undefined;
322
+ const href = slide.find('a[href*="/watch/"]').first().attr('href') || '';
323
+ const match = href.match(/\/watch\/([^/?#]+)/);
324
+ const id = match ? match[1]! : '';
325
+ const description = slide.find('.synopsis').text().trim() || undefined;
326
+ const image = slide.find('img').attr('src') || '';
327
+
328
+ if (id && title) {
329
+ results.push({
330
+ id,
331
+ title,
332
+ japaneseTitle,
333
+ description,
334
+ image,
335
+ url: href.startsWith('http') ? href : `${config.baseUrl}${href}`,
336
+ });
337
+ }
338
+ });
339
+
340
+ return results;
341
+ } catch (err) {
342
+ throw new Error(`[AniKoto] Failed to fetch spotlight: ${(err as Error).message}`);
343
+ }
344
+ };
345
+
346
+ const fetchSearchSuggestions = async (query: string): Promise<IAnimeResult[]> => {
347
+ try {
348
+ const res = await axios.get(`${config.baseUrl}/ajax/anime/search?keyword=${encodeURIComponent(query)}`, {
349
+ headers: ajaxHeaders(),
350
+ });
351
+ const html = res.data?.result?.html || res.data?.result || res.data;
352
+ const $ = load(html);
353
+ const suggestions: IAnimeResult[] = [];
354
+
355
+ $('a.item').each((_, el) => {
356
+ const item = $(el);
357
+ const href = item.attr('href') || '';
358
+ const match = href.match(/\/watch\/([^/?#]+)/);
359
+ const id = match ? match[1]! : '';
360
+ const title = item.find('.name.d-title, .name').text().trim();
361
+ const japaneseTitle = item.find('.name.d-title').attr('data-jp') || undefined;
362
+ const image = item.find('.poster img, img').attr('src') || '';
363
+
364
+ if (id && title) {
365
+ suggestions.push({
366
+ id,
367
+ title,
368
+ japaneseTitle,
369
+ image,
370
+ url: href,
371
+ });
372
+ }
373
+ });
374
+
375
+ return suggestions;
376
+ } catch {
377
+ return [];
378
+ }
379
+ };
380
+
381
+ const fetchAnimeInfo = async (id: string): Promise<IAnimeInfo> => {
382
+ try {
383
+ const animeSlug = id.replace(/^\/watch\//, '').replace(/\/.*$/, '');
384
+ const watchUrl = `${config.baseUrl}/watch/${animeSlug}`;
385
+ const { data: pageHtml } = await axios.get(watchUrl, { headers: defaultHeaders });
386
+ const $ = load(pageHtml);
387
+
388
+ const title = $('#w-info .title.d-title, h1.title').first().text().trim();
389
+ const japaneseTitle =
390
+ $('#w-info .title.d-title').attr('data-jp') || $('#w-info .names').text().split(';')[1]?.trim() || title;
391
+
392
+ const image = $('#w-info .poster img').attr('src') || $('meta[property="og:image"]').attr('content') || '';
393
+ const description = $('#w-info .synopsis .content, .synopsis')
394
+ .text()
395
+ .replace(/\[more\]/g, '')
396
+ .trim();
397
+
398
+ // Extract anime ID (data-id e.g. 7174)
399
+ const dataId =
400
+ $('#watch-main').attr('data-id') ||
401
+ $('.layout-page-watchtv').attr('data-id') ||
402
+ $('#w-rating').attr('data-id') ||
403
+ $('[data-id]').first().attr('data-id');
404
+
405
+ // Extract metadata
406
+ let type: MediaFormat = 'TV' as MediaFormat;
407
+ let premiered: string | undefined;
408
+ let aired: string | undefined;
409
+ let status: any = MediaStatusEnum.UNKNOWN;
410
+ const genres: string[] = [];
411
+ const studios: string[] = [];
412
+ const producers: string[] = [];
413
+ let duration: string | undefined;
414
+ let rating: number | undefined;
415
+
416
+ $('#w-info .bmeta .meta div').each((_, el) => {
417
+ const text = $(el).text();
418
+ if (text.includes('Type:')) {
419
+ type = $(el).find('span').text().trim() as MediaFormat;
420
+ } else if (text.includes('Premiered:')) {
421
+ premiered = $(el).find('span').text().trim();
422
+ } else if (text.includes('Aired:')) {
423
+ aired = $(el).find('span').text().trim();
424
+ } else if (text.includes('Status:')) {
425
+ const s = $(el).find('span').text().trim().toLowerCase();
426
+ if (s.includes('finished')) status = MediaStatusEnum.COMPLETED;
427
+ else if (s.includes('airing') || s.includes('ongoing')) status = MediaStatusEnum.ONGOING;
428
+ else if (s.includes('not yet')) status = MediaStatusEnum.NOT_YET_AIRED;
429
+ } else if (text.includes('Genres:')) {
430
+ $(el)
431
+ .find('a')
432
+ .each((_, a) => {
433
+ const g = $(a).text().trim();
434
+ if (g && !genres.includes(g)) genres.push(g);
435
+ });
436
+ } else if (text.includes('Studios:')) {
437
+ $(el)
438
+ .find('a')
439
+ .each((_, a) => {
440
+ const st = $(a).text().trim();
441
+ if (st && !studios.includes(st)) studios.push(st);
442
+ });
443
+ } else if (text.includes('Producers:')) {
444
+ $(el)
445
+ .find('a')
446
+ .each((_, a) => {
447
+ const pr = $(a).text().trim();
448
+ if (pr && pr !== 'unknown' && !producers.includes(pr)) producers.push(pr);
449
+ });
450
+ } else if (text.includes('Duration:')) {
451
+ duration = $(el).find('span').text().trim();
452
+ } else if (text.includes('MAL:')) {
453
+ const r = $(el).find('span').text().trim();
454
+ rating = r ? parseFloat(r) : undefined;
455
+ }
456
+ });
457
+
458
+ // Fetch episodes from /ajax/episode/list/${dataId}
459
+ const episodes: IAnimeEpisode[] = [];
460
+ if (dataId) {
461
+ try {
462
+ const epRes = await axios.get(`${config.baseUrl}/ajax/episode/list/${dataId}`, {
463
+ headers: ajaxHeaders(watchUrl),
464
+ });
465
+ const epHtml = epRes.data?.result || epRes.data;
466
+ const $ep = load(epHtml);
467
+
468
+ $ep('li a').each((_, a) => {
469
+ const anchor = $ep(a);
470
+ const dataIds = anchor.attr('data-ids') || anchor.attr('data-id') || '';
471
+ const numAttr = anchor.attr('data-num') || anchor.attr('data-slug') || anchor.find('b').text().trim();
472
+ const num = parseInt(numAttr, 10) || 1;
473
+ const epTitle = anchor.find('.d-title').text().trim() || `Episode ${num}`;
474
+
475
+ if (dataIds) {
476
+ episodes.push({
477
+ id: `${animeSlug}$episode$${dataIds}`,
478
+ number: num,
479
+ title: epTitle,
480
+ url: `${config.baseUrl}/watch/${animeSlug}/ep-${num}`,
481
+ });
482
+ }
483
+ });
484
+ } catch {
485
+ // Keep empty episodes if request fails
486
+ }
487
+ }
488
+
489
+ return {
490
+ id: animeSlug,
491
+ title,
492
+ japaneseTitle,
493
+ image,
494
+ description,
495
+ type,
496
+ status,
497
+ genres,
498
+ studios,
499
+ producers,
500
+ duration,
501
+ rating,
502
+ aired,
503
+ season: premiered,
504
+ totalEpisodes: episodes.length > 0 ? episodes.length : undefined,
505
+ episodes,
506
+ };
507
+ } catch (err) {
508
+ throw new Error(`[AniKoto] Failed to fetch anime info: ${(err as Error).message}`);
509
+ }
510
+ };
511
+
512
+ const fetchEpisodeServers = async (
513
+ episodeId: string,
514
+ subOrDub: SubOrDub = SubOrDubEnum.SUB
515
+ ): Promise<IEpisodeServer[]> => {
516
+ try {
517
+ const dataIds = episodeId.includes('$episode$') ? episodeId.split('$episode$')[1]! : episodeId;
518
+ const targetSubDub = subOrDub === SubOrDubEnum.DUB ? 'dub' : 'sub';
519
+
520
+ const res = await axios.get(`${config.baseUrl}/ajax/server/list?servers=${encodeURIComponent(dataIds)}`, {
521
+ headers: ajaxHeaders(),
522
+ });
523
+
524
+ const html = res.data?.result || res.data;
525
+ const $ = load(html);
526
+ const rawServers: { name: string; linkId: string }[] = [];
527
+
528
+ let serverList = $(`.servers .type[data-type="${targetSubDub}"] li[data-link-id]`);
529
+ if (!serverList.length) {
530
+ // Fallback to any available type
531
+ serverList = $('.servers li[data-link-id]');
532
+ }
533
+
534
+ serverList.each((_, el) => {
535
+ const item = $(el);
536
+ const name = item.text().trim();
537
+ const linkId = item.attr('data-link-id');
538
+ if (linkId) {
539
+ rawServers.push({ name, linkId });
540
+ }
541
+ });
542
+
543
+ // Resolve each server link to its embed URL via /ajax/server?get=
544
+ const servers: IEpisodeServer[] = [];
545
+ for (const s of rawServers) {
546
+ try {
547
+ const { data: linkData } = await axios.get(
548
+ `${config.baseUrl}/ajax/server?get=${encodeURIComponent(s.linkId)}`,
549
+ { headers: ajaxHeaders() }
550
+ );
551
+
552
+ const embedUrl = linkData?.result?.url;
553
+ if (embedUrl) {
554
+ servers.push({
555
+ name: `megaplay-${s.name.toLowerCase().replace(/[^a-z0-9_-]/g, '')}`,
556
+ url: embedUrl,
557
+ });
558
+ }
559
+ } catch {
560
+ // Continue to next server
561
+ }
562
+ }
563
+
564
+ return servers;
565
+ } catch (err) {
566
+ throw new Error(`[AniKoto] Failed to fetch episode servers: ${(err as Error).message}`);
567
+ }
568
+ };
569
+
570
+ const fetchEpisodeSources = async (
571
+ episodeId: string,
572
+ server: StreamingServers = StreamingServersEnum.MegaPlay,
573
+ subOrDub: SubOrDub = SubOrDubEnum.SUB
574
+ ): Promise<ISource> => {
575
+ if (episodeId.startsWith('http')) {
576
+ const serverUrl = new PolyURL(episodeId);
577
+ switch (server) {
578
+ case StreamingServersEnum.MegaPlay:
579
+ default:
580
+ return {
581
+ headers: { Referer: serverUrl.href },
582
+ ...(await MegaPlay().extract(serverUrl, config.baseUrl)),
583
+ };
584
+ }
585
+ }
586
+
587
+ try {
588
+ const servers = await fetchEpisodeServers(episodeId, subOrDub);
589
+ if (!servers.length) {
590
+ throw new Error(`[AniKoto] No servers available for episode: ${episodeId}`);
591
+ }
592
+
593
+ const matchedServer =
594
+ servers.find((s) => s.name.toLowerCase().includes(String(server).toLowerCase())) || servers[0]!;
595
+
596
+ const serverUrl = new PolyURL(matchedServer.url);
597
+ return {
598
+ headers: { Referer: serverUrl.href },
599
+ ...(await MegaPlay().extract(serverUrl, config.baseUrl)),
600
+ };
601
+ } catch (err) {
602
+ throw new Error(`[AniKoto] Failed to fetch episode sources: ${(err as Error).message}`);
603
+ }
604
+ };
605
+
606
+ return {
607
+ ...config,
608
+ search,
609
+ fetchAdvancedSearch,
610
+ fetchTopAiring,
611
+ fetchMostPopular,
612
+ fetchMostFavorite,
613
+ fetchLatestCompleted,
614
+ fetchRecentlyUpdated,
615
+ fetchRecentlyAdded,
616
+ fetchTopUpcoming,
617
+ fetchStudio,
618
+ fetchSubbedAnime,
619
+ fetchDubbedAnime,
620
+ fetchMovie,
621
+ fetchTV,
622
+ fetchOVA,
623
+ fetchONA,
624
+ fetchSpecial,
625
+ fetchGenres,
626
+ genreSearch,
627
+ fetchSchedule,
628
+ fetchSpotlight,
629
+ fetchSearchSuggestions,
630
+ fetchAnimeInfo,
631
+ fetchEpisodeServers,
632
+ fetchEpisodeSources,
633
+ };
634
+ }
635
+
636
+ export type AniKotoProviderInstance = ReturnType<typeof createAniKoto>;
637
+ export default createAniKoto;
@@ -19,13 +19,13 @@ function createAnimePahe(ctx: ProviderContext, customBaseURL?: string) {
19
19
  const { StreamingServers: StreamingServersEnum, SubOrDub: SubOrDubEnum, MediaStatus: MediaStatusEnum } = enums;
20
20
  const { getDdosGuardCookiesWithWebView, multiply, bypassDdosGuard } = NativeConsumet;
21
21
  // Provider configuration - use the standardized base URL creation
22
- const baseUrl = createCustomBaseUrl('https://animepahe.si', customBaseURL);
22
+ const baseUrl = createCustomBaseUrl('https://animepahe.pw', customBaseURL);
23
23
 
24
24
  const config: ProviderConfig = {
25
25
  name: 'AnimePahe',
26
26
  languages: 'en',
27
27
  classPath: 'ANIME.AnimePahe',
28
- logo: 'https://animepahe.si/web-app-manifest-512x512.png',
28
+ logo: 'https://animepahe.pw/web-app-manifest-512x512.png',
29
29
  baseUrl,
30
30
  isNSFW: false,
31
31
  isWorking: true,
@@ -8,8 +8,8 @@ import Marin from './marin';
8
8
  import AnimeUnity from './animeunity';
9
9
  import AnimeKai from './animekai/animekai';
10
10
  import createAnimeKai from './animekai/create-animekai';
11
- import AniWatchTv from './aniwatchtv/aniwatchtv';
12
- import createAniWatchTv from './aniwatchtv/create-aniwatchtv';
11
+ import AniKoto from './anikoto/anikoto';
12
+ import createAniKoto from './anikoto/create-anikoto';
13
13
 
14
14
  export default {
15
15
  AnimePahe,
@@ -22,6 +22,6 @@ export default {
22
22
  AnimeUnity,
23
23
  AnimeKai,
24
24
  createAnimeKai,
25
- AniWatchTv,
26
- createAniWatchTv,
25
+ AniKoto,
26
+ createAniKoto,
27
27
  };
@@ -38,7 +38,7 @@ import Anify from '../anime/anify';
38
38
  import Zoro from '../anime/zoro/zoro';
39
39
  import AnimeKai from '../anime/animekai/animekai';
40
40
  import AnimePahe from '../anime/animepahe/animepahe';
41
- import AniWatchTv from '../anime/aniwatchtv/aniwatchtv';
41
+ import AniWatchTv from '../anime/anikoto/anikoto';
42
42
  import Mangasee123 from '../manga/mangasee123';
43
43
  import { ANIFY_URL, findSimilarTitles, getHashFromImage } from '../../utils/utils';
44
44