react-native-consumet 0.8.0 → 1.0.0-rc.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.
- package/Consumet.podspec +26 -26
- package/LICENSE +673 -673
- package/README.md +83 -49
- package/android/build.gradle +106 -106
- package/android/gradle.properties +5 -5
- package/android/src/main/AndroidManifest.xml +4 -4
- package/android/src/main/AndroidManifestNew.xml +3 -3
- package/android/src/main/java/com/consumet/ConsumetModule.kt +45 -49
- package/android/src/main/java/com/consumet/ConsumetPackage.kt +33 -33
- package/ios/Consumet.h +6 -6
- package/ios/Consumet.mm +18 -18
- package/lib/commonjs/extension-registry.json +81 -0
- package/lib/commonjs/extractors/StreamP2P.js +69 -0
- package/lib/commonjs/extractors/StreamP2P.js.map +1 -0
- package/lib/commonjs/extractors/asianload.js +3 -2
- package/lib/commonjs/extractors/asianload.js.map +1 -1
- package/lib/commonjs/extractors/filemoon.js +8 -6
- package/lib/commonjs/extractors/filemoon.js.map +1 -1
- package/lib/commonjs/extractors/gogocdn.js +5 -4
- package/lib/commonjs/extractors/gogocdn.js.map +1 -1
- package/lib/commonjs/extractors/index.js +4 -32
- package/lib/commonjs/extractors/index.js.map +1 -1
- package/lib/commonjs/extractors/kwik.js +39 -12
- package/lib/commonjs/extractors/kwik.js.map +1 -1
- package/lib/commonjs/extractors/megacloud.js +160 -0
- package/lib/commonjs/extractors/megacloud.js.map +1 -0
- package/lib/commonjs/extractors/megaup.js +6 -6
- package/lib/commonjs/extractors/megaup.js.map +1 -1
- package/lib/commonjs/extractors/mixdrop.js +4 -2
- package/lib/commonjs/extractors/mixdrop.js.map +1 -1
- package/lib/commonjs/extractors/mp4player.js +4 -2
- package/lib/commonjs/extractors/mp4player.js.map +1 -1
- package/lib/commonjs/extractors/mp4upload.js +4 -2
- package/lib/commonjs/extractors/mp4upload.js.map +1 -1
- package/lib/commonjs/extractors/rapidcloud.js +8 -7
- package/lib/commonjs/extractors/rapidcloud.js.map +1 -1
- package/lib/commonjs/extractors/streamhub.js +5 -3
- package/lib/commonjs/extractors/streamhub.js.map +1 -1
- package/lib/commonjs/extractors/streamlare.js +3 -2
- package/lib/commonjs/extractors/streamlare.js.map +1 -1
- package/lib/commonjs/extractors/streamsb.js +4 -2
- package/lib/commonjs/extractors/streamsb.js.map +1 -1
- package/lib/commonjs/extractors/streamtape.js +3 -1
- package/lib/commonjs/extractors/streamtape.js.map +1 -1
- package/lib/commonjs/extractors/streamwish.js +5 -3
- package/lib/commonjs/extractors/streamwish.js.map +1 -1
- package/lib/commonjs/extractors/vidhide.js +5 -3
- package/lib/commonjs/extractors/vidhide.js.map +1 -1
- package/lib/commonjs/extractors/vidmoly.js +4 -2
- package/lib/commonjs/extractors/vidmoly.js.map +1 -1
- package/lib/commonjs/extractors/vizcloud.js +4 -2
- package/lib/commonjs/extractors/vizcloud.js.map +1 -1
- package/lib/commonjs/extractors/voe.js +4 -2
- package/lib/commonjs/extractors/voe.js.map +1 -1
- package/lib/commonjs/index.js +116 -53
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/base-provider.js +1 -3
- package/lib/commonjs/models/base-provider.js.map +1 -1
- package/lib/commonjs/models/extension-manifest.js +6 -0
- package/lib/commonjs/models/extension-manifest.js.map +1 -0
- package/lib/commonjs/models/extractor-context.js +6 -0
- package/lib/commonjs/models/extractor-context.js.map +1 -0
- package/lib/commonjs/models/index.js +2 -36
- package/lib/commonjs/models/index.js.map +1 -1
- package/lib/commonjs/models/provider-context.js +6 -0
- package/lib/commonjs/models/provider-context.js.map +1 -0
- package/lib/commonjs/models/types.js +12 -10
- package/lib/commonjs/models/types.js.map +1 -1
- package/lib/commonjs/models/video-extractor.js +8 -3
- package/lib/commonjs/models/video-extractor.js.map +1 -1
- package/lib/commonjs/providers/anime/anify.js +9 -7
- package/lib/commonjs/providers/anime/anify.js.map +1 -1
- package/lib/commonjs/providers/anime/animedrive.js +16 -16
- package/lib/commonjs/providers/anime/animedrive.js.map +1 -1
- package/lib/commonjs/providers/anime/animekai.js +56 -56
- package/lib/commonjs/providers/anime/animekai.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/animepahe.js +75 -0
- package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -0
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +311 -0
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -0
- package/lib/commonjs/providers/anime/animeunity.js +22 -20
- package/lib/commonjs/providers/anime/animeunity.js.map +1 -1
- package/lib/commonjs/providers/anime/index.js +7 -17
- package/lib/commonjs/providers/anime/index.js.map +1 -1
- package/lib/commonjs/providers/anime/marin.js +26 -23
- package/lib/commonjs/providers/anime/marin.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/create-zoro.js +595 -0
- package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -0
- package/lib/commonjs/providers/anime/zoro/zoro.js +192 -0
- package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -0
- package/lib/commonjs/providers/index.js +4 -18
- package/lib/commonjs/providers/index.js.map +1 -1
- package/lib/commonjs/providers/light-novels/readlightnovels.js +5 -4
- package/lib/commonjs/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/commonjs/providers/manga/asurascans.js +5 -3
- package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
- package/lib/commonjs/providers/manga/brmangas.js +11 -7
- package/lib/commonjs/providers/manga/brmangas.js.map +1 -1
- package/lib/commonjs/providers/manga/flamescans.js +5 -3
- package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
- package/lib/commonjs/providers/manga/mangadex.js +11 -9
- package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahere.js +6 -4
- package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahost.js +5 -3
- package/lib/commonjs/providers/manga/mangahost.js.map +1 -1
- package/lib/commonjs/providers/manga/mangakakalot.js +5 -3
- package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapark.js +5 -3
- package/lib/commonjs/providers/manga/mangapark.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapill.js +5 -3
- package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
- package/lib/commonjs/providers/manga/mangareader.js +6 -4
- package/lib/commonjs/providers/manga/mangareader.js.map +1 -1
- package/lib/commonjs/providers/manga/mangasee123.js +5 -3
- package/lib/commonjs/providers/manga/mangasee123.js.map +1 -1
- package/lib/commonjs/providers/manga/readmanga.js +7 -5
- package/lib/commonjs/providers/manga/readmanga.js.map +1 -1
- package/lib/commonjs/providers/manga/vyvymanga.js +6 -4
- package/lib/commonjs/providers/manga/vyvymanga.js.map +1 -1
- package/lib/commonjs/providers/meta/anilist.js +138 -125
- package/lib/commonjs/providers/meta/anilist.js.map +1 -1
- package/lib/commonjs/providers/meta/mal.js +26 -66
- package/lib/commonjs/providers/meta/mal.js.map +1 -1
- package/lib/commonjs/providers/meta/tmdb.js +31 -30
- package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
- package/lib/commonjs/providers/movies/dramacool.js +14 -12
- package/lib/commonjs/providers/movies/dramacool.js.map +1 -1
- package/lib/commonjs/providers/movies/{himovies.js → himovies/create-himovies.js} +172 -129
- package/lib/commonjs/providers/movies/himovies/create-himovies.js.map +1 -0
- package/lib/commonjs/providers/movies/himovies/himovies.js +84 -0
- package/lib/commonjs/providers/movies/himovies/himovies.js.map +1 -0
- package/lib/commonjs/providers/movies/index.js +6 -20
- package/lib/commonjs/providers/movies/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multimovies.js +64 -46
- package/lib/commonjs/providers/movies/multimovies.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/index.js +210 -0
- package/lib/commonjs/providers/movies/multistream/index.js.map +1 -0
- package/lib/commonjs/providers/movies/multistream/utils.js +267 -0
- package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -0
- package/lib/commonjs/providers/movies/netflixmirror.js +11 -9
- package/lib/commonjs/providers/movies/netflixmirror.js.map +1 -1
- package/lib/commonjs/utils/ExtractorManager.js +311 -0
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -0
- package/lib/commonjs/utils/ProviderManager.js +398 -0
- package/lib/commonjs/utils/ProviderManager.js.map +1 -0
- package/lib/commonjs/utils/create-extractor-context.js +24 -0
- package/lib/commonjs/utils/create-extractor-context.js.map +1 -0
- package/lib/commonjs/utils/create-provider-context.js +100 -0
- package/lib/commonjs/utils/create-provider-context.js.map +1 -0
- package/lib/commonjs/utils/extension-utils.js +94 -0
- package/lib/commonjs/utils/extension-utils.js.map +1 -0
- package/lib/commonjs/utils/index.js +54 -25
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/providers-list.js +6 -8
- package/lib/commonjs/utils/providers-list.js.map +1 -1
- package/lib/commonjs/utils/url-polyfill.js +572 -0
- package/lib/commonjs/utils/url-polyfill.js.map +1 -0
- package/lib/commonjs/utils/utils.js +61 -37
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/extension-registry.json +81 -0
- package/lib/module/extractors/StreamP2P.js +63 -0
- package/lib/module/extractors/StreamP2P.js.map +1 -0
- package/lib/module/extractors/asianload.js +3 -2
- package/lib/module/extractors/asianload.js.map +1 -1
- package/lib/module/extractors/filemoon.js +7 -6
- package/lib/module/extractors/filemoon.js.map +1 -1
- package/lib/module/extractors/gogocdn.js +5 -4
- package/lib/module/extractors/gogocdn.js.map +1 -1
- package/lib/module/extractors/index.js +3 -7
- package/lib/module/extractors/index.js.map +1 -1
- package/lib/module/extractors/kwik.js +38 -11
- package/lib/module/extractors/kwik.js.map +1 -1
- package/lib/module/extractors/megacloud.js +156 -0
- package/lib/module/extractors/megacloud.js.map +1 -0
- package/lib/module/extractors/megaup.js +5 -6
- package/lib/module/extractors/megaup.js.map +1 -1
- package/lib/module/extractors/mixdrop.js +3 -2
- package/lib/module/extractors/mixdrop.js.map +1 -1
- package/lib/module/extractors/mp4player.js +3 -2
- package/lib/module/extractors/mp4player.js.map +1 -1
- package/lib/module/extractors/mp4upload.js +3 -2
- package/lib/module/extractors/mp4upload.js.map +1 -1
- package/lib/module/extractors/rapidcloud.js +8 -7
- package/lib/module/extractors/rapidcloud.js.map +1 -1
- package/lib/module/extractors/streamhub.js +4 -3
- package/lib/module/extractors/streamhub.js.map +1 -1
- package/lib/module/extractors/streamlare.js +3 -2
- package/lib/module/extractors/streamlare.js.map +1 -1
- package/lib/module/extractors/streamsb.js +3 -2
- package/lib/module/extractors/streamsb.js.map +1 -1
- package/lib/module/extractors/streamtape.js +2 -1
- package/lib/module/extractors/streamtape.js.map +1 -1
- package/lib/module/extractors/streamwish.js +4 -3
- package/lib/module/extractors/streamwish.js.map +1 -1
- package/lib/module/extractors/vidhide.js +4 -3
- package/lib/module/extractors/vidhide.js.map +1 -1
- package/lib/module/extractors/vidmoly.js +3 -2
- package/lib/module/extractors/vidmoly.js.map +1 -1
- package/lib/module/extractors/vizcloud.js +3 -2
- package/lib/module/extractors/vizcloud.js.map +1 -1
- package/lib/module/extractors/voe.js +3 -2
- package/lib/module/extractors/voe.js.map +1 -1
- package/lib/module/index.js +47 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/base-provider.js +1 -2
- package/lib/module/models/base-provider.js.map +1 -1
- package/lib/module/models/extension-manifest.js +4 -0
- package/lib/module/models/extension-manifest.js.map +1 -0
- package/lib/module/models/extractor-context.js +4 -0
- package/lib/module/models/extractor-context.js.map +1 -0
- package/lib/module/models/index.js +2 -6
- package/lib/module/models/index.js.map +1 -1
- package/lib/module/models/provider-context.js +4 -0
- package/lib/module/models/provider-context.js.map +1 -0
- package/lib/module/models/types.js +11 -9
- package/lib/module/models/types.js.map +1 -1
- package/lib/module/models/video-extractor.js +8 -2
- package/lib/module/models/video-extractor.js.map +1 -1
- package/lib/module/providers/anime/anify.js +8 -7
- package/lib/module/providers/anime/anify.js.map +1 -1
- package/lib/module/providers/anime/animedrive.js +16 -16
- package/lib/module/providers/anime/animedrive.js.map +1 -1
- package/lib/module/providers/anime/animekai.js +57 -57
- package/lib/module/providers/anime/animekai.js.map +1 -1
- package/lib/module/providers/anime/animepahe/animepahe.js +73 -0
- package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -0
- package/lib/module/providers/anime/animepahe/create-animepahe.js +307 -0
- package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -0
- package/lib/module/providers/anime/animeunity.js +22 -21
- package/lib/module/providers/anime/animeunity.js.map +1 -1
- package/lib/module/providers/anime/index.js +7 -17
- package/lib/module/providers/anime/index.js.map +1 -1
- package/lib/module/providers/anime/marin.js +25 -23
- package/lib/module/providers/anime/marin.js.map +1 -1
- package/lib/module/providers/anime/zoro/create-zoro.js +591 -0
- package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -0
- package/lib/module/providers/anime/zoro/zoro.js +190 -0
- package/lib/module/providers/anime/zoro/zoro.js.map +1 -0
- package/lib/module/providers/index.js +1 -3
- package/lib/module/providers/index.js.map +1 -1
- package/lib/module/providers/light-novels/readlightnovels.js +5 -4
- package/lib/module/providers/light-novels/readlightnovels.js.map +1 -1
- package/lib/module/providers/manga/asurascans.js +4 -3
- package/lib/module/providers/manga/asurascans.js.map +1 -1
- package/lib/module/providers/manga/brmangas.js +10 -7
- package/lib/module/providers/manga/brmangas.js.map +1 -1
- package/lib/module/providers/manga/flamescans.js +4 -3
- package/lib/module/providers/manga/flamescans.js.map +1 -1
- package/lib/module/providers/manga/mangadex.js +10 -9
- package/lib/module/providers/manga/mangadex.js.map +1 -1
- package/lib/module/providers/manga/mangahere.js +5 -4
- package/lib/module/providers/manga/mangahere.js.map +1 -1
- package/lib/module/providers/manga/mangahost.js +4 -3
- package/lib/module/providers/manga/mangahost.js.map +1 -1
- package/lib/module/providers/manga/mangakakalot.js +4 -3
- package/lib/module/providers/manga/mangakakalot.js.map +1 -1
- package/lib/module/providers/manga/mangapark.js +4 -3
- package/lib/module/providers/manga/mangapark.js.map +1 -1
- package/lib/module/providers/manga/mangapill.js +4 -3
- package/lib/module/providers/manga/mangapill.js.map +1 -1
- package/lib/module/providers/manga/mangareader.js +5 -4
- package/lib/module/providers/manga/mangareader.js.map +1 -1
- package/lib/module/providers/manga/mangasee123.js +4 -3
- package/lib/module/providers/manga/mangasee123.js.map +1 -1
- package/lib/module/providers/manga/readmanga.js +6 -5
- package/lib/module/providers/manga/readmanga.js.map +1 -1
- package/lib/module/providers/manga/vyvymanga.js +5 -4
- package/lib/module/providers/manga/vyvymanga.js.map +1 -1
- package/lib/module/providers/meta/anilist.js +138 -125
- package/lib/module/providers/meta/anilist.js.map +1 -1
- package/lib/module/providers/meta/mal.js +27 -67
- package/lib/module/providers/meta/mal.js.map +1 -1
- package/lib/module/providers/meta/tmdb.js +31 -30
- package/lib/module/providers/meta/tmdb.js.map +1 -1
- package/lib/module/providers/movies/dramacool.js +13 -12
- package/lib/module/providers/movies/dramacool.js.map +1 -1
- package/lib/module/providers/movies/{himovies.js → himovies/create-himovies.js} +160 -119
- package/lib/module/providers/movies/himovies/create-himovies.js.map +1 -0
- package/lib/module/providers/movies/himovies/himovies.js +82 -0
- package/lib/module/providers/movies/himovies/himovies.js.map +1 -0
- package/lib/module/providers/movies/index.js +6 -20
- package/lib/module/providers/movies/index.js.map +1 -1
- package/lib/module/providers/movies/multimovies.js +63 -46
- package/lib/module/providers/movies/multimovies.js.map +1 -1
- package/lib/module/providers/movies/multistream/index.js +206 -0
- package/lib/module/providers/movies/multistream/index.js.map +1 -0
- package/lib/module/providers/movies/multistream/utils.js +259 -0
- package/lib/module/providers/movies/multistream/utils.js.map +1 -0
- package/lib/module/providers/movies/netflixmirror.js +10 -9
- package/lib/module/providers/movies/netflixmirror.js.map +1 -1
- package/lib/module/utils/ExtractorManager.js +305 -0
- package/lib/module/utils/ExtractorManager.js.map +1 -0
- package/lib/module/utils/ProviderManager.js +392 -0
- package/lib/module/utils/ProviderManager.js.map +1 -0
- package/lib/module/utils/create-extractor-context.js +19 -0
- package/lib/module/utils/create-extractor-context.js.map +1 -0
- package/lib/module/utils/create-provider-context.js +94 -0
- package/lib/module/utils/create-provider-context.js.map +1 -0
- package/lib/module/utils/extension-utils.js +89 -0
- package/lib/module/utils/extension-utils.js.map +1 -0
- package/lib/module/utils/index.js +10 -3
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/providers-list.js +7 -9
- package/lib/module/utils/providers-list.js.map +1 -1
- package/lib/module/utils/url-polyfill.js +568 -0
- package/lib/module/utils/url-polyfill.js.map +1 -0
- package/lib/module/utils/utils.js +58 -33
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/commonjs/src/extractors/StreamP2P.d.ts +10 -0
- package/lib/typescript/commonjs/src/extractors/StreamP2P.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/asianload.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/filemoon.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/index.d.ts +3 -7
- package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts +7 -8
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/megacloud.d.ts +8 -0
- package/lib/typescript/commonjs/src/extractors/megacloud.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts +1 -5
- package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mp4player.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamhub.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamlare.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamsb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamtape.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/streamwish.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/voe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +12 -7
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/base-provider.d.ts +1 -2
- package/lib/typescript/commonjs/src/models/base-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts +58 -0
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts +36 -0
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/index.d.ts +7 -8
- package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/provider-context.d.ts +130 -0
- package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/types.d.ts +5 -37
- package/lib/typescript/commonjs/src/models/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/video-extractor.d.ts +24 -2
- package/lib/typescript/commonjs/src/models/video-extractor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anify.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animekai.d.ts +4 -4
- package/lib/typescript/commonjs/src/providers/anime/animekai.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts +34 -0
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts +14 -0
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts +6 -16
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/marin.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +45 -0
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -0
- package/lib/typescript/{module/src/providers/anime → commonjs/src/providers/anime/zoro}/zoro.d.ts +38 -53
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/index.d.ts +1 -3
- package/lib/typescript/commonjs/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/himovies/create-himovies.d.ts +21 -0
- package/lib/typescript/commonjs/src/providers/movies/himovies/create-himovies.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts +44 -0
- package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts +5 -19
- package/lib/typescript/commonjs/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multimovies.d.ts +2 -0
- package/lib/typescript/commonjs/src/providers/movies/multimovies.d.ts.map +1 -1
- package/lib/typescript/{module/src/providers/movies/fmovies.d.ts → commonjs/src/providers/movies/multistream/index.d.ts} +13 -17
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +10 -0
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/movies/netflixmirror.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts +40 -0
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +74 -0
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts +8 -0
- package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts +10 -0
- package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +61 -0
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts +8 -3
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/providers-list.d.ts +2 -4
- package/lib/typescript/commonjs/src/utils/providers-list.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts +56 -0
- package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/utils.d.ts +8 -8
- package/lib/typescript/commonjs/src/utils/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/StreamP2P.d.ts +10 -0
- package/lib/typescript/module/src/extractors/StreamP2P.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/asianload.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/filemoon.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/gogocdn.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/index.d.ts +3 -7
- package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts +7 -8
- package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/megacloud.d.ts +8 -0
- package/lib/typescript/module/src/extractors/megacloud.d.ts.map +1 -0
- package/lib/typescript/module/src/extractors/megaup.d.ts +1 -5
- package/lib/typescript/module/src/extractors/megaup.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mixdrop.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mp4player.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/mp4upload.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/rapidcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamhub.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamlare.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamsb.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamtape.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/streamwish.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vidmoly.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/vizcloud.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/voe.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +12 -7
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/base-provider.d.ts +1 -2
- package/lib/typescript/module/src/models/base-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extension-manifest.d.ts +58 -0
- package/lib/typescript/module/src/models/extension-manifest.d.ts.map +1 -0
- package/lib/typescript/module/src/models/extractor-context.d.ts +36 -0
- package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -0
- package/lib/typescript/module/src/models/index.d.ts +7 -8
- package/lib/typescript/module/src/models/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/provider-context.d.ts +130 -0
- package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -0
- package/lib/typescript/module/src/models/types.d.ts +5 -37
- package/lib/typescript/module/src/models/types.d.ts.map +1 -1
- package/lib/typescript/module/src/models/video-extractor.d.ts +24 -2
- package/lib/typescript/module/src/models/video-extractor.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anify.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animekai.d.ts +4 -4
- package/lib/typescript/module/src/providers/anime/animekai.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts +34 -0
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts +14 -0
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/animeunity.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/index.d.ts +6 -16
- package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/marin.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +45 -0
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src/providers/anime → module/src/providers/anime/zoro}/zoro.d.ts +38 -53
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/index.d.ts +1 -3
- package/lib/typescript/module/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/mal.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/dramacool.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/himovies/create-himovies.d.ts +21 -0
- package/lib/typescript/module/src/providers/movies/himovies/create-himovies.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts +44 -0
- package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/index.d.ts +5 -19
- package/lib/typescript/module/src/providers/movies/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multimovies.d.ts +2 -0
- package/lib/typescript/module/src/providers/movies/multimovies.d.ts.map +1 -1
- package/lib/typescript/{commonjs/src/providers/movies/fmovies.d.ts → module/src/providers/movies/multistream/index.d.ts} +13 -17
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +10 -0
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/movies/netflixmirror.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts +40 -0
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/ProviderManager.d.ts +74 -0
- package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/create-extractor-context.d.ts +8 -0
- package/lib/typescript/module/src/utils/create-extractor-context.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/create-provider-context.d.ts +10 -0
- package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/extension-utils.d.ts +61 -0
- package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/index.d.ts +8 -3
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/providers-list.d.ts +2 -4
- package/lib/typescript/module/src/utils/providers-list.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/url-polyfill.d.ts +56 -0
- package/lib/typescript/module/src/utils/url-polyfill.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/utils.d.ts +8 -8
- package/lib/typescript/module/src/utils/utils.d.ts.map +1 -1
- package/package.json +23 -8
- package/react-native.config.js +12 -12
- package/src/extension-registry.json +81 -0
- package/src/extractors/StreamP2P.ts +60 -0
- package/src/extractors/asianload.ts +3 -2
- package/src/extractors/filemoon.ts +58 -55
- package/src/extractors/gogocdn.ts +5 -4
- package/src/extractors/index.ts +41 -49
- package/src/extractors/kwik.ts +50 -29
- package/src/extractors/megacloud.ts +163 -0
- package/src/extractors/megaup.ts +5 -9
- package/src/extractors/mixdrop.ts +31 -30
- package/src/extractors/mp4player.ts +3 -2
- package/src/extractors/mp4upload.ts +31 -28
- package/src/extractors/rapidcloud.ts +8 -7
- package/src/extractors/streamhub.ts +58 -55
- package/src/extractors/streamlare.ts +3 -2
- package/src/extractors/streamsb.ts +3 -2
- package/src/extractors/streamtape.ts +2 -1
- package/src/extractors/streamwish.ts +120 -119
- package/src/extractors/vidhide.ts +59 -56
- package/src/extractors/vidmoly.ts +3 -2
- package/src/extractors/vizcloud.ts +3 -2
- package/src/extractors/voe.ts +3 -2
- package/src/index.tsx +175 -137
- package/src/models/base-provider.ts +1 -2
- package/src/models/extension-manifest.ts +77 -0
- package/src/models/extractor-context.ts +41 -0
- package/src/models/index.ts +106 -110
- package/src/models/provider-context.ts +182 -0
- package/src/models/types.ts +531 -568
- package/src/models/video-extractor.ts +48 -23
- package/src/providers/anime/anify.ts +8 -7
- package/src/providers/anime/animedrive.ts +245 -245
- package/src/providers/anime/animekai.ts +627 -628
- package/src/providers/anime/animepahe/animepahe.ts +76 -0
- package/src/providers/anime/animepahe/create-animepahe.ts +348 -0
- package/src/providers/anime/animeunity.ts +216 -215
- package/src/providers/anime/index.ts +21 -31
- package/src/providers/anime/marin.ts +319 -318
- package/src/providers/anime/zoro/create-zoro.ts +655 -0
- package/src/providers/anime/zoro/zoro.ts +197 -0
- package/src/providers/index.ts +7 -9
- package/src/providers/light-novels/readlightnovels.ts +5 -4
- package/src/providers/manga/asurascans.ts +4 -5
- package/src/providers/manga/brmangas.ts +144 -143
- package/src/providers/manga/flamescans.ts +4 -3
- package/src/providers/manga/mangadex.ts +10 -9
- package/src/providers/manga/mangahere.ts +5 -4
- package/src/providers/manga/mangahost.ts +4 -3
- package/src/providers/manga/mangakakalot.ts +4 -3
- package/src/providers/manga/mangapark.ts +4 -3
- package/src/providers/manga/mangapill.ts +4 -3
- package/src/providers/manga/mangareader.ts +5 -4
- package/src/providers/manga/mangasee123.ts +4 -3
- package/src/providers/manga/readmanga.ts +6 -5
- package/src/providers/manga/vyvymanga.ts +5 -4
- package/src/providers/meta/anilist.ts +2108 -2097
- package/src/providers/meta/mal.ts +635 -688
- package/src/providers/meta/tmdb.ts +470 -469
- package/src/providers/movies/dramacool.ts +13 -12
- package/src/providers/movies/{himovies.ts → himovies/create-himovies.ts} +529 -495
- package/src/providers/movies/himovies/himovies.ts +90 -0
- package/src/providers/movies/index.ts +15 -29
- package/src/providers/movies/multimovies.ts +495 -475
- package/src/providers/movies/multistream/index.ts +231 -0
- package/src/providers/movies/multistream/utils.ts +393 -0
- package/src/providers/movies/netflixmirror.ts +10 -9
- package/src/utils/ExtractorManager.ts +311 -0
- package/src/utils/ProviderManager.ts +424 -0
- package/src/utils/create-extractor-context.ts +22 -0
- package/src/utils/create-provider-context.ts +107 -0
- package/src/utils/extension-utils.ts +114 -0
- package/src/utils/index.ts +95 -97
- package/src/utils/providers-list.ts +27 -51
- package/src/utils/url-polyfill.ts +642 -0
- package/src/utils/utils.ts +374 -339
- package/lib/commonjs/extractors/bilibili.js +0 -65
- package/lib/commonjs/extractors/bilibili.js.map +0 -1
- package/lib/commonjs/extractors/luffy.js +0 -39
- package/lib/commonjs/extractors/luffy.js.map +0 -1
- package/lib/commonjs/extractors/megacloud/index.js +0 -53
- package/lib/commonjs/extractors/megacloud/index.js.map +0 -1
- package/lib/commonjs/extractors/megacloud/megacloud.getsrcs.js +0 -68
- package/lib/commonjs/extractors/megacloud/megacloud.getsrcs.js.map +0 -1
- package/lib/commonjs/extractors/smashystream.js +0 -303
- package/lib/commonjs/extractors/smashystream.js.map +0 -1
- package/lib/commonjs/extractors/vidcloud.js +0 -63
- package/lib/commonjs/extractors/vidcloud.js.map +0 -1
- package/lib/commonjs/models/book-parser.js +0 -10
- package/lib/commonjs/models/book-parser.js.map +0 -1
- package/lib/commonjs/models/comic-parser.js +0 -10
- package/lib/commonjs/models/comic-parser.js.map +0 -1
- package/lib/commonjs/models/news-parser.js +0 -10
- package/lib/commonjs/models/news-parser.js.map +0 -1
- package/lib/commonjs/models/proxy.js +0 -122
- package/lib/commonjs/models/proxy.js.map +0 -1
- package/lib/commonjs/models/type-objects.js +0 -54
- package/lib/commonjs/models/type-objects.js.map +0 -1
- package/lib/commonjs/providers/anime/animefox.js +0 -199
- package/lib/commonjs/providers/anime/animefox.js.map +0 -1
- package/lib/commonjs/providers/anime/animeowl.js +0 -501
- package/lib/commonjs/providers/anime/animeowl.js.map +0 -1
- package/lib/commonjs/providers/anime/animepahe.js +0 -272
- package/lib/commonjs/providers/anime/animepahe.js.map +0 -1
- package/lib/commonjs/providers/anime/animesaturn.js +0 -162
- package/lib/commonjs/providers/anime/animesaturn.js.map +0 -1
- package/lib/commonjs/providers/anime/anix.js +0 -542
- package/lib/commonjs/providers/anime/anix.js.map +0 -1
- package/lib/commonjs/providers/anime/bilibili.js +0 -129
- package/lib/commonjs/providers/anime/bilibili.js.map +0 -1
- package/lib/commonjs/providers/anime/gogoanime.js +0 -481
- package/lib/commonjs/providers/anime/gogoanime.js.map +0 -1
- package/lib/commonjs/providers/anime/monoschinos.js +0 -184
- package/lib/commonjs/providers/anime/monoschinos.js.map +0 -1
- package/lib/commonjs/providers/anime/zoro.js +0 -855
- package/lib/commonjs/providers/anime/zoro.js.map +0 -1
- package/lib/commonjs/providers/comics/getComics.js +0 -58
- package/lib/commonjs/providers/comics/getComics.js.map +0 -1
- package/lib/commonjs/providers/comics/index.js +0 -12
- package/lib/commonjs/providers/comics/index.js.map +0 -1
- package/lib/commonjs/providers/movies/flixhq.js +0 -423
- package/lib/commonjs/providers/movies/flixhq.js.map +0 -1
- package/lib/commonjs/providers/movies/fmovies.js +0 -267
- package/lib/commonjs/providers/movies/fmovies.js.map +0 -1
- package/lib/commonjs/providers/movies/goku.js +0 -401
- package/lib/commonjs/providers/movies/goku.js.map +0 -1
- package/lib/commonjs/providers/movies/himovies.js.map +0 -1
- package/lib/commonjs/providers/movies/kissasian.js +0 -192
- package/lib/commonjs/providers/movies/kissasian.js.map +0 -1
- package/lib/commonjs/providers/movies/moviehdwatch.js +0 -401
- package/lib/commonjs/providers/movies/moviehdwatch.js.map +0 -1
- package/lib/commonjs/providers/movies/sflix.js +0 -423
- package/lib/commonjs/providers/movies/sflix.js.map +0 -1
- package/lib/commonjs/providers/movies/smashystream.js +0 -116
- package/lib/commonjs/providers/movies/smashystream.js.map +0 -1
- package/lib/commonjs/providers/movies/turkish123.js +0 -102
- package/lib/commonjs/providers/movies/turkish123.js.map +0 -1
- package/lib/commonjs/providers/movies/ummagurau.js +0 -69
- package/lib/commonjs/providers/movies/ummagurau.js.map +0 -1
- package/lib/commonjs/providers/movies/viewAsian.js +0 -151
- package/lib/commonjs/providers/movies/viewAsian.js.map +0 -1
- package/lib/commonjs/providers/news/animenewsnetwork.js +0 -104
- package/lib/commonjs/providers/news/animenewsnetwork.js.map +0 -1
- package/lib/commonjs/providers/news/index.js +0 -12
- package/lib/commonjs/providers/news/index.js.map +0 -1
- package/lib/commonjs/providers/others/index.js +0 -2
- package/lib/commonjs/providers/others/index.js.map +0 -1
- package/lib/commonjs/utils/getComics.js +0 -43
- package/lib/commonjs/utils/getComics.js.map +0 -1
- package/lib/module/extractors/bilibili.js +0 -61
- package/lib/module/extractors/bilibili.js.map +0 -1
- package/lib/module/extractors/luffy.js +0 -35
- package/lib/module/extractors/luffy.js.map +0 -1
- package/lib/module/extractors/megacloud/index.js +0 -49
- package/lib/module/extractors/megacloud/index.js.map +0 -1
- package/lib/module/extractors/megacloud/megacloud.getsrcs.js +0 -64
- package/lib/module/extractors/megacloud/megacloud.getsrcs.js.map +0 -1
- package/lib/module/extractors/smashystream.js +0 -299
- package/lib/module/extractors/smashystream.js.map +0 -1
- package/lib/module/extractors/vidcloud.js +0 -59
- package/lib/module/extractors/vidcloud.js.map +0 -1
- package/lib/module/models/book-parser.js +0 -6
- package/lib/module/models/book-parser.js.map +0 -1
- package/lib/module/models/comic-parser.js +0 -6
- package/lib/module/models/comic-parser.js.map +0 -1
- package/lib/module/models/news-parser.js +0 -6
- package/lib/module/models/news-parser.js.map +0 -1
- package/lib/module/models/proxy.js +0 -116
- package/lib/module/models/proxy.js.map +0 -1
- package/lib/module/models/type-objects.js +0 -48
- package/lib/module/models/type-objects.js.map +0 -1
- package/lib/module/providers/anime/animefox.js +0 -197
- package/lib/module/providers/anime/animefox.js.map +0 -1
- package/lib/module/providers/anime/animeowl.js +0 -498
- package/lib/module/providers/anime/animeowl.js.map +0 -1
- package/lib/module/providers/anime/animepahe.js +0 -271
- package/lib/module/providers/anime/animepahe.js.map +0 -1
- package/lib/module/providers/anime/animesaturn.js +0 -161
- package/lib/module/providers/anime/animesaturn.js.map +0 -1
- package/lib/module/providers/anime/anix.js +0 -538
- package/lib/module/providers/anime/anix.js.map +0 -1
- package/lib/module/providers/anime/bilibili.js +0 -126
- package/lib/module/providers/anime/bilibili.js.map +0 -1
- package/lib/module/providers/anime/gogoanime.js +0 -478
- package/lib/module/providers/anime/gogoanime.js.map +0 -1
- package/lib/module/providers/anime/monoschinos.js +0 -189
- package/lib/module/providers/anime/monoschinos.js.map +0 -1
- package/lib/module/providers/anime/zoro.js +0 -852
- package/lib/module/providers/anime/zoro.js.map +0 -1
- package/lib/module/providers/comics/getComics.js +0 -54
- package/lib/module/providers/comics/getComics.js.map +0 -1
- package/lib/module/providers/comics/index.js +0 -7
- package/lib/module/providers/comics/index.js.map +0 -1
- package/lib/module/providers/movies/flixhq.js +0 -420
- package/lib/module/providers/movies/flixhq.js.map +0 -1
- package/lib/module/providers/movies/fmovies.js +0 -264
- package/lib/module/providers/movies/fmovies.js.map +0 -1
- package/lib/module/providers/movies/goku.js +0 -398
- package/lib/module/providers/movies/goku.js.map +0 -1
- package/lib/module/providers/movies/himovies.js.map +0 -1
- package/lib/module/providers/movies/kissasian.js +0 -188
- package/lib/module/providers/movies/kissasian.js.map +0 -1
- package/lib/module/providers/movies/moviehdwatch.js +0 -397
- package/lib/module/providers/movies/moviehdwatch.js.map +0 -1
- package/lib/module/providers/movies/sflix.js +0 -420
- package/lib/module/providers/movies/sflix.js.map +0 -1
- package/lib/module/providers/movies/smashystream.js +0 -112
- package/lib/module/providers/movies/smashystream.js.map +0 -1
- package/lib/module/providers/movies/turkish123.js +0 -97
- package/lib/module/providers/movies/turkish123.js.map +0 -1
- package/lib/module/providers/movies/ummagurau.js +0 -69
- package/lib/module/providers/movies/ummagurau.js.map +0 -1
- package/lib/module/providers/movies/viewAsian.js +0 -147
- package/lib/module/providers/movies/viewAsian.js.map +0 -1
- package/lib/module/providers/news/animenewsnetwork.js +0 -99
- package/lib/module/providers/news/animenewsnetwork.js.map +0 -1
- package/lib/module/providers/news/index.js +0 -7
- package/lib/module/providers/news/index.js.map +0 -1
- package/lib/module/providers/others/index.js +0 -2
- package/lib/module/providers/others/index.js.map +0 -1
- package/lib/module/utils/getComics.js +0 -38
- package/lib/module/utils/getComics.js.map +0 -1
- package/lib/typescript/commonjs/src/extractors/bilibili.d.ts +0 -11
- package/lib/typescript/commonjs/src/extractors/bilibili.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/luffy.d.ts +0 -9
- package/lib/typescript/commonjs/src/extractors/luffy.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/megacloud/index.d.ts +0 -8
- package/lib/typescript/commonjs/src/extractors/megacloud/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.getsrcs.d.ts +0 -11
- package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.getsrcs.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/smashystream.d.ts +0 -43
- package/lib/typescript/commonjs/src/extractors/smashystream.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/vidcloud.d.ts +0 -12
- package/lib/typescript/commonjs/src/extractors/vidcloud.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/models/book-parser.d.ts +0 -5
- package/lib/typescript/commonjs/src/models/book-parser.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/models/comic-parser.d.ts +0 -5
- package/lib/typescript/commonjs/src/models/comic-parser.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/models/news-parser.d.ts +0 -5
- package/lib/typescript/commonjs/src/models/news-parser.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/models/proxy.d.ts +0 -25
- package/lib/typescript/commonjs/src/models/proxy.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/models/type-objects.d.ts +0 -49
- package/lib/typescript/commonjs/src/models/type-objects.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animefox.d.ts +0 -31
- package/lib/typescript/commonjs/src/providers/anime/animefox.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animeowl.d.ts +0 -76
- package/lib/typescript/commonjs/src/providers/anime/animeowl.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe.d.ts +0 -34
- package/lib/typescript/commonjs/src/providers/anime/animepahe.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/animesaturn.d.ts +0 -27
- package/lib/typescript/commonjs/src/providers/anime/animesaturn.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/anix.d.ts +0 -54
- package/lib/typescript/commonjs/src/providers/anime/anix.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/bilibili.d.ts +0 -19
- package/lib/typescript/commonjs/src/providers/anime/bilibili.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/gogoanime.d.ts +0 -57
- package/lib/typescript/commonjs/src/providers/anime/gogoanime.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/monoschinos.d.ts +0 -29
- package/lib/typescript/commonjs/src/providers/anime/monoschinos.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/comics/getComics.d.ts +0 -10
- package/lib/typescript/commonjs/src/providers/comics/getComics.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/comics/index.d.ts +0 -6
- package/lib/typescript/commonjs/src/providers/comics/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/flixhq.d.ts +0 -41
- package/lib/typescript/commonjs/src/providers/movies/flixhq.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/fmovies.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/goku.d.ts +0 -40
- package/lib/typescript/commonjs/src/providers/movies/goku.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/himovies.d.ts +0 -41
- package/lib/typescript/commonjs/src/providers/movies/himovies.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/kissasian.d.ts +0 -14
- package/lib/typescript/commonjs/src/providers/movies/kissasian.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/moviehdwatch.d.ts +0 -40
- package/lib/typescript/commonjs/src/providers/movies/moviehdwatch.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/sflix.d.ts +0 -41
- package/lib/typescript/commonjs/src/providers/movies/sflix.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/smashystream.d.ts +0 -14
- package/lib/typescript/commonjs/src/providers/movies/smashystream.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/turkish123.d.ts +0 -12
- package/lib/typescript/commonjs/src/providers/movies/turkish123.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/ummagurau.d.ts +0 -2
- package/lib/typescript/commonjs/src/providers/movies/ummagurau.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/movies/viewAsian.d.ts +0 -14
- package/lib/typescript/commonjs/src/providers/movies/viewAsian.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/news/animenewsnetwork.d.ts +0 -31
- package/lib/typescript/commonjs/src/providers/news/animenewsnetwork.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/news/index.d.ts +0 -6
- package/lib/typescript/commonjs/src/providers/news/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/others/index.d.ts +0 -1
- package/lib/typescript/commonjs/src/providers/others/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getComics.d.ts +0 -6
- package/lib/typescript/commonjs/src/utils/getComics.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/bilibili.d.ts +0 -11
- package/lib/typescript/module/src/extractors/bilibili.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/luffy.d.ts +0 -9
- package/lib/typescript/module/src/extractors/luffy.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/megacloud/index.d.ts +0 -8
- package/lib/typescript/module/src/extractors/megacloud/index.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/megacloud/megacloud.getsrcs.d.ts +0 -11
- package/lib/typescript/module/src/extractors/megacloud/megacloud.getsrcs.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/smashystream.d.ts +0 -43
- package/lib/typescript/module/src/extractors/smashystream.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/vidcloud.d.ts +0 -12
- package/lib/typescript/module/src/extractors/vidcloud.d.ts.map +0 -1
- package/lib/typescript/module/src/models/book-parser.d.ts +0 -5
- package/lib/typescript/module/src/models/book-parser.d.ts.map +0 -1
- package/lib/typescript/module/src/models/comic-parser.d.ts +0 -5
- package/lib/typescript/module/src/models/comic-parser.d.ts.map +0 -1
- package/lib/typescript/module/src/models/news-parser.d.ts +0 -5
- package/lib/typescript/module/src/models/news-parser.d.ts.map +0 -1
- package/lib/typescript/module/src/models/proxy.d.ts +0 -25
- package/lib/typescript/module/src/models/proxy.d.ts.map +0 -1
- package/lib/typescript/module/src/models/type-objects.d.ts +0 -49
- package/lib/typescript/module/src/models/type-objects.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animefox.d.ts +0 -31
- package/lib/typescript/module/src/providers/anime/animefox.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animeowl.d.ts +0 -76
- package/lib/typescript/module/src/providers/anime/animeowl.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animepahe.d.ts +0 -34
- package/lib/typescript/module/src/providers/anime/animepahe.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/animesaturn.d.ts +0 -27
- package/lib/typescript/module/src/providers/anime/animesaturn.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/anix.d.ts +0 -54
- package/lib/typescript/module/src/providers/anime/anix.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/bilibili.d.ts +0 -19
- package/lib/typescript/module/src/providers/anime/bilibili.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/gogoanime.d.ts +0 -57
- package/lib/typescript/module/src/providers/anime/gogoanime.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/monoschinos.d.ts +0 -29
- package/lib/typescript/module/src/providers/anime/monoschinos.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/anime/zoro.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/comics/getComics.d.ts +0 -10
- package/lib/typescript/module/src/providers/comics/getComics.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/comics/index.d.ts +0 -6
- package/lib/typescript/module/src/providers/comics/index.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/flixhq.d.ts +0 -41
- package/lib/typescript/module/src/providers/movies/flixhq.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/fmovies.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/goku.d.ts +0 -40
- package/lib/typescript/module/src/providers/movies/goku.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/himovies.d.ts +0 -41
- package/lib/typescript/module/src/providers/movies/himovies.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/kissasian.d.ts +0 -14
- package/lib/typescript/module/src/providers/movies/kissasian.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/moviehdwatch.d.ts +0 -40
- package/lib/typescript/module/src/providers/movies/moviehdwatch.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/sflix.d.ts +0 -41
- package/lib/typescript/module/src/providers/movies/sflix.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/smashystream.d.ts +0 -14
- package/lib/typescript/module/src/providers/movies/smashystream.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/turkish123.d.ts +0 -12
- package/lib/typescript/module/src/providers/movies/turkish123.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/ummagurau.d.ts +0 -2
- package/lib/typescript/module/src/providers/movies/ummagurau.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/movies/viewAsian.d.ts +0 -14
- package/lib/typescript/module/src/providers/movies/viewAsian.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/news/animenewsnetwork.d.ts +0 -31
- package/lib/typescript/module/src/providers/news/animenewsnetwork.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/news/index.d.ts +0 -6
- package/lib/typescript/module/src/providers/news/index.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/others/index.d.ts +0 -1
- package/lib/typescript/module/src/providers/others/index.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getComics.d.ts +0 -6
- package/lib/typescript/module/src/utils/getComics.d.ts.map +0 -1
- package/src/extractors/bilibili.ts +0 -82
- package/src/extractors/luffy.ts +0 -33
- package/src/extractors/megacloud/index.ts +0 -54
- package/src/extractors/megacloud/megacloud.getsrcs.ts +0 -63
- package/src/extractors/smashystream.ts +0 -359
- package/src/extractors/vidcloud.ts +0 -71
- package/src/models/book-parser.ts +0 -5
- package/src/models/comic-parser.ts +0 -5
- package/src/models/news-parser.ts +0 -4
- package/src/models/proxy.ts +0 -121
- package/src/models/type-objects.ts +0 -50
- package/src/providers/anime/animefox.ts +0 -211
- package/src/providers/anime/animeowl.ts +0 -565
- package/src/providers/anime/animepahe.ts +0 -322
- package/src/providers/anime/animesaturn.ts +0 -204
- package/src/providers/anime/anix.ts +0 -590
- package/src/providers/anime/bilibili.ts +0 -142
- package/src/providers/anime/gogoanime.ts +0 -599
- package/src/providers/anime/monoschinos.ts +0 -216
- package/src/providers/anime/zoro.ts +0 -894
- package/src/providers/comics/getComics.ts +0 -53
- package/src/providers/comics/index.ts +0 -3
- package/src/providers/movies/flixhq.ts +0 -514
- package/src/providers/movies/fmovies.ts +0 -296
- package/src/providers/movies/goku.ts +0 -490
- package/src/providers/movies/kissasian.ts +0 -238
- package/src/providers/movies/moviehdwatch.ts +0 -482
- package/src/providers/movies/sflix.ts +0 -521
- package/src/providers/movies/smashystream.ts +0 -133
- package/src/providers/movies/turkish123.ts +0 -107
- package/src/providers/movies/ummagurau.ts +0 -91
- package/src/providers/movies/viewAsian.ts +0 -181
- package/src/providers/news/animenewsnetwork.ts +0 -111
- package/src/providers/news/index.ts +0 -3
- package/src/providers/others/index.ts +0 -0
- package/src/utils/getComics.ts +0 -47
|
@@ -1,894 +0,0 @@
|
|
|
1
|
-
import { type CheerioAPI, load } from 'cheerio';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
AnimeParser,
|
|
5
|
-
type ISearch,
|
|
6
|
-
type IAnimeInfo,
|
|
7
|
-
type IAnimeResult,
|
|
8
|
-
type ISource,
|
|
9
|
-
type IEpisodeServer,
|
|
10
|
-
StreamingServers,
|
|
11
|
-
MediaFormat,
|
|
12
|
-
SubOrSub,
|
|
13
|
-
type IAnimeEpisode,
|
|
14
|
-
MediaStatus,
|
|
15
|
-
WatchListType,
|
|
16
|
-
} from '../../models';
|
|
17
|
-
|
|
18
|
-
import { StreamSB, MegaCloud, StreamTape } from '../../utils';
|
|
19
|
-
import { USER_AGENT } from '../../utils';
|
|
20
|
-
import axios from 'axios';
|
|
21
|
-
|
|
22
|
-
class Zoro extends AnimeParser {
|
|
23
|
-
override readonly name = 'Zoro';
|
|
24
|
-
protected override baseUrl = 'https://hianime.to';
|
|
25
|
-
protected override logo =
|
|
26
|
-
'https://is3-ssl.mzstatic.com/image/thumb/Purple112/v4/7e/91/00/7e9100ee-2b62-0942-4cdc-e9b93252ce1c/source/512x512bb.jpg';
|
|
27
|
-
protected override classPath = 'ANIME.Zoro';
|
|
28
|
-
|
|
29
|
-
constructor(customBaseURL?: string) {
|
|
30
|
-
super(...arguments);
|
|
31
|
-
if (customBaseURL) {
|
|
32
|
-
if (customBaseURL.startsWith('http://') || customBaseURL.startsWith('https://')) {
|
|
33
|
-
this.baseUrl = customBaseURL;
|
|
34
|
-
} else {
|
|
35
|
-
this.baseUrl = `http://${customBaseURL}`;
|
|
36
|
-
}
|
|
37
|
-
} else {
|
|
38
|
-
this.baseUrl = this.baseUrl;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @param query Search query
|
|
44
|
-
* @param page Page number (optional)
|
|
45
|
-
*/
|
|
46
|
-
override search(query: string, page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
47
|
-
if (page <= 0) {
|
|
48
|
-
page = 1;
|
|
49
|
-
}
|
|
50
|
-
return this.scrapeCardPage(`${this.baseUrl}/search?keyword=${decodeURIComponent(query)}&page=${page}`);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Fetch advanced anime search results with various filters.
|
|
54
|
-
*
|
|
55
|
-
* @param page Page number (default: 1)
|
|
56
|
-
* @param type One of (Optional): movie, tv, ova, ona, special, music
|
|
57
|
-
* @param status One of (Optional): finished_airing, currently_airing, not_yet_aired
|
|
58
|
-
* @param rated One of (Optional): g, pg, pg_13, r, r_plus, rx
|
|
59
|
-
* @param score Number from 1 to 10 (Optional)
|
|
60
|
-
* @param season One of (Optional): spring, summer, fall, winter
|
|
61
|
-
* @param language One of (Optional): sub, dub, sub_dub
|
|
62
|
-
* @param startDate Start date object { year, month, day } (Optional)
|
|
63
|
-
* @param endDate End date object { year, month, day } (Optional)
|
|
64
|
-
* @param sort One of (Optional): recently_added, recently_updated, score, name_az, released_date, most_watched
|
|
65
|
-
* @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
|
|
66
|
-
* @returns A Promise resolving to the search results.
|
|
67
|
-
*/
|
|
68
|
-
fetchAdvancedSearch(
|
|
69
|
-
page: number = 1,
|
|
70
|
-
type?: string,
|
|
71
|
-
status?: string,
|
|
72
|
-
rated?: string,
|
|
73
|
-
score?: number,
|
|
74
|
-
season?: string,
|
|
75
|
-
language?: string,
|
|
76
|
-
startDate?: { year: number; month: number; day: number },
|
|
77
|
-
endDate?: { year: number; month: number; day: number },
|
|
78
|
-
sort?: string,
|
|
79
|
-
genres?: string[]
|
|
80
|
-
): Promise<ISearch<IAnimeResult>> {
|
|
81
|
-
if (page <= 0) page = 1;
|
|
82
|
-
|
|
83
|
-
const mappings: Record<string, Record<string, number>> = {
|
|
84
|
-
type: { movie: 1, tv: 2, ova: 3, ona: 4, special: 5, music: 6 },
|
|
85
|
-
status: { finished_airing: 1, currently_airing: 2, not_yet_aired: 3 },
|
|
86
|
-
rated: { g: 1, pg: 2, pg_13: 3, r: 4, r_plus: 5, rx: 6 },
|
|
87
|
-
season: { spring: 1, summer: 2, fall: 3, winter: 4 },
|
|
88
|
-
language: { sub: 1, dub: 2, sub_dub: 3 },
|
|
89
|
-
genre: {
|
|
90
|
-
action: 1,
|
|
91
|
-
adventure: 2,
|
|
92
|
-
cars: 3,
|
|
93
|
-
comedy: 4,
|
|
94
|
-
dementia: 5,
|
|
95
|
-
demons: 6,
|
|
96
|
-
mystery: 7,
|
|
97
|
-
drama: 8,
|
|
98
|
-
ecchi: 9,
|
|
99
|
-
fantasy: 10,
|
|
100
|
-
game: 11,
|
|
101
|
-
historical: 13,
|
|
102
|
-
horror: 14,
|
|
103
|
-
kids: 15,
|
|
104
|
-
magic: 16,
|
|
105
|
-
martial_arts: 17,
|
|
106
|
-
mecha: 18,
|
|
107
|
-
music: 19,
|
|
108
|
-
parody: 20,
|
|
109
|
-
samurai: 21,
|
|
110
|
-
romance: 22,
|
|
111
|
-
school: 23,
|
|
112
|
-
sci_fi: 24,
|
|
113
|
-
shoujo: 25,
|
|
114
|
-
shoujo_ai: 26,
|
|
115
|
-
shounen: 27,
|
|
116
|
-
shounen_ai: 28,
|
|
117
|
-
space: 29,
|
|
118
|
-
sports: 30,
|
|
119
|
-
super_power: 31,
|
|
120
|
-
vampire: 32,
|
|
121
|
-
harem: 35,
|
|
122
|
-
military: 38,
|
|
123
|
-
slice_of_life: 36,
|
|
124
|
-
supernatural: 37,
|
|
125
|
-
police: 39,
|
|
126
|
-
psychological: 40,
|
|
127
|
-
thriller: 41,
|
|
128
|
-
seinen: 42,
|
|
129
|
-
isekai: 44,
|
|
130
|
-
josei: 43,
|
|
131
|
-
},
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
const params = new URLSearchParams({ page: page.toString() });
|
|
135
|
-
|
|
136
|
-
const addParam = (key: string, value?: string) => {
|
|
137
|
-
if (value) params.append(key, (mappings[key]?.[value] || value).toString());
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
addParam('type', type);
|
|
141
|
-
addParam('status', status);
|
|
142
|
-
addParam('rated', rated);
|
|
143
|
-
if (score) params.append('score', score.toString());
|
|
144
|
-
addParam('season', season);
|
|
145
|
-
addParam('language', language);
|
|
146
|
-
|
|
147
|
-
if (startDate) {
|
|
148
|
-
params.append('sy', startDate.year.toString());
|
|
149
|
-
params.append('sm', startDate.month.toString());
|
|
150
|
-
params.append('sd', startDate.day.toString());
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
if (endDate) {
|
|
154
|
-
params.append('ey', endDate.year.toString());
|
|
155
|
-
params.append('em', endDate.month.toString());
|
|
156
|
-
params.append('ed', endDate.day.toString());
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
if (sort) params.append('sort', sort);
|
|
160
|
-
|
|
161
|
-
if (genres?.length) {
|
|
162
|
-
const genreIds = genres.map((genre) => (mappings.genre![genre] || genre).toString()).join('%2C');
|
|
163
|
-
params.append('genres', genreIds);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
return this.scrapeCardPage(`${this.baseUrl}/filter?${params.toString()}`);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* @param page number
|
|
171
|
-
*/
|
|
172
|
-
fetchTopAiring(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
173
|
-
if (page <= 0) {
|
|
174
|
-
page = 1;
|
|
175
|
-
}
|
|
176
|
-
return this.scrapeCardPage(`${this.baseUrl}/top-airing?page=${page}`);
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* @param page number
|
|
180
|
-
*/
|
|
181
|
-
fetchMostPopular(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
182
|
-
if (page <= 0) {
|
|
183
|
-
page = 1;
|
|
184
|
-
}
|
|
185
|
-
return this.scrapeCardPage(`${this.baseUrl}/most-popular?page=${page}`);
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* @param page number
|
|
189
|
-
*/
|
|
190
|
-
fetchMostFavorite(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
191
|
-
if (page <= 0) {
|
|
192
|
-
page = 1;
|
|
193
|
-
}
|
|
194
|
-
return this.scrapeCardPage(`${this.baseUrl}/most-favorite?page=${page}`);
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* @param page number
|
|
198
|
-
*/
|
|
199
|
-
fetchLatestCompleted(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
200
|
-
if (page <= 0) {
|
|
201
|
-
page = 1;
|
|
202
|
-
}
|
|
203
|
-
return this.scrapeCardPage(`${this.baseUrl}/completed?page=${page}`);
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* @param page number
|
|
207
|
-
*/
|
|
208
|
-
fetchRecentlyUpdated(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
209
|
-
if (page <= 0) {
|
|
210
|
-
page = 1;
|
|
211
|
-
}
|
|
212
|
-
return this.scrapeCardPage(`${this.baseUrl}/recently-updated?page=${page}`);
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* @param page number
|
|
216
|
-
*/
|
|
217
|
-
fetchRecentlyAdded(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
218
|
-
if (page <= 0) {
|
|
219
|
-
page = 1;
|
|
220
|
-
}
|
|
221
|
-
return this.scrapeCardPage(`${this.baseUrl}/recently-added?page=${page}`);
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* @param page number
|
|
225
|
-
*/
|
|
226
|
-
fetchTopUpcoming(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
227
|
-
if (page <= 0) {
|
|
228
|
-
page = 1;
|
|
229
|
-
}
|
|
230
|
-
return this.scrapeCardPage(`${this.baseUrl}/top-upcoming?page=${page}`);
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* @param studio Studio id, e.g. "toei-animation"
|
|
234
|
-
* @param page page number (optional) `default 1`
|
|
235
|
-
*/
|
|
236
|
-
fetchStudio(studio: string, page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
237
|
-
if (page <= 0) {
|
|
238
|
-
page = 1;
|
|
239
|
-
}
|
|
240
|
-
return this.scrapeCardPage(`${this.baseUrl}/producer/${studio}?page=${page}`);
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* @param page number
|
|
244
|
-
*/
|
|
245
|
-
fetchSubbedAnime(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
246
|
-
if (page <= 0) {
|
|
247
|
-
page = 1;
|
|
248
|
-
}
|
|
249
|
-
return this.scrapeCardPage(`${this.baseUrl}/subbed-anime?page=${page}`);
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* @param page number
|
|
253
|
-
*/
|
|
254
|
-
fetchDubbedAnime(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
255
|
-
if (page <= 0) {
|
|
256
|
-
page = 1;
|
|
257
|
-
}
|
|
258
|
-
return this.scrapeCardPage(`${this.baseUrl}/dubbed-anime?page=${page}`);
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* @param page number
|
|
262
|
-
*/
|
|
263
|
-
fetchMovie(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
264
|
-
if (page <= 0) {
|
|
265
|
-
page = 1;
|
|
266
|
-
}
|
|
267
|
-
return this.scrapeCardPage(`${this.baseUrl}/movie?page=${page}`);
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* @param page number
|
|
271
|
-
*/
|
|
272
|
-
fetchTV(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
273
|
-
if (page <= 0) {
|
|
274
|
-
page = 1;
|
|
275
|
-
}
|
|
276
|
-
return this.scrapeCardPage(`${this.baseUrl}/tv?page=${page}`);
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* @param page number
|
|
280
|
-
*/
|
|
281
|
-
fetchOVA(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
282
|
-
if (page <= 0) {
|
|
283
|
-
page = 1;
|
|
284
|
-
}
|
|
285
|
-
return this.scrapeCardPage(`${this.baseUrl}/ova?page=${page}`);
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* @param page number
|
|
289
|
-
*/
|
|
290
|
-
fetchONA(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
291
|
-
if (page <= 0) {
|
|
292
|
-
page = 1;
|
|
293
|
-
}
|
|
294
|
-
return this.scrapeCardPage(`${this.baseUrl}/ona?page=${page}`);
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* @param page number
|
|
298
|
-
*/
|
|
299
|
-
fetchSpecial(page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
300
|
-
if (page <= 0) {
|
|
301
|
-
page = 1;
|
|
302
|
-
}
|
|
303
|
-
return this.scrapeCardPage(`${this.baseUrl}/special?page=${page}`);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
async fetchGenres(): Promise<string[]> {
|
|
307
|
-
try {
|
|
308
|
-
const res: string[] = [];
|
|
309
|
-
const { data } = await this.client.get(`${this.baseUrl}/home`);
|
|
310
|
-
const $ = load(data);
|
|
311
|
-
|
|
312
|
-
const sideBar = $('#main-sidebar');
|
|
313
|
-
sideBar.find('ul.sb-genre-list li a').each((i, ele) => {
|
|
314
|
-
const genres = $(ele);
|
|
315
|
-
res.push(genres.text().toLowerCase());
|
|
316
|
-
});
|
|
317
|
-
|
|
318
|
-
return res;
|
|
319
|
-
} catch (err) {
|
|
320
|
-
throw new Error('Something went wrong. Please try again later.');
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* @param page number
|
|
325
|
-
*/
|
|
326
|
-
genreSearch(genre: string, page: number = 1): Promise<ISearch<IAnimeResult>> {
|
|
327
|
-
if (genre === '') {
|
|
328
|
-
throw new Error('genre is empty');
|
|
329
|
-
}
|
|
330
|
-
if (page <= 0) {
|
|
331
|
-
page = 1;
|
|
332
|
-
}
|
|
333
|
-
return this.scrapeCardPage(`${this.baseUrl}/genre/${genre}?page=${page}`);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Fetches the schedule for a given date.
|
|
338
|
-
* @param date The date in format 'YYYY-MM-DD'. Defaults to the current date.
|
|
339
|
-
* @returns A promise that resolves to an object containing the search results.
|
|
340
|
-
*/
|
|
341
|
-
async fetchSchedule(date: string = new Date().toISOString().slice(0, 10)): Promise<ISearch<IAnimeResult>> {
|
|
342
|
-
try {
|
|
343
|
-
const res: ISearch<IAnimeResult> = {
|
|
344
|
-
results: [],
|
|
345
|
-
};
|
|
346
|
-
const {
|
|
347
|
-
data: { html },
|
|
348
|
-
} = await this.client.get(`${this.baseUrl}/ajax/schedule/list?tzOffset=360&date=${date}`);
|
|
349
|
-
const $ = load(html);
|
|
350
|
-
|
|
351
|
-
$('li').each((i, ele) => {
|
|
352
|
-
const card = $(ele);
|
|
353
|
-
const title = card.find('.film-name');
|
|
354
|
-
|
|
355
|
-
const id = card.find('a.tsl-link').attr('href')?.split('/')[1]!.split('?')[0];
|
|
356
|
-
const airingTime = card.find('div.time').text().replace('\n', '').trim();
|
|
357
|
-
const airingEpisode = card.find('div.film-detail div.fd-play button').text().replace('\n', '').trim();
|
|
358
|
-
res.results.push({
|
|
359
|
-
id: id!,
|
|
360
|
-
title: title.text(),
|
|
361
|
-
japaneseTitle: title.attr('data-jname'),
|
|
362
|
-
url: `${this.baseUrl}/${id}`,
|
|
363
|
-
airingEpisode: airingEpisode,
|
|
364
|
-
airingTime: airingTime,
|
|
365
|
-
});
|
|
366
|
-
});
|
|
367
|
-
|
|
368
|
-
return res;
|
|
369
|
-
} catch (err) {
|
|
370
|
-
throw new Error('Something went wrong. Please try again later.');
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
async fetchSpotlight(): Promise<ISearch<IAnimeResult>> {
|
|
375
|
-
try {
|
|
376
|
-
const res: ISearch<IAnimeResult> = { results: [] };
|
|
377
|
-
const { data } = await this.client.get(`${this.baseUrl}/home`);
|
|
378
|
-
const $ = load(data);
|
|
379
|
-
|
|
380
|
-
$('#slider div.swiper-wrapper div.swiper-slide').each((i, el) => {
|
|
381
|
-
const card = $(el);
|
|
382
|
-
const titleElement = card.find('div.desi-head-title');
|
|
383
|
-
const id =
|
|
384
|
-
card
|
|
385
|
-
.find('div.desi-buttons .btn-secondary')
|
|
386
|
-
.attr('href')
|
|
387
|
-
?.match(/\/([^/]+)$/)?.[1] || null;
|
|
388
|
-
const img = card.find('img.film-poster-img');
|
|
389
|
-
res.results.push({
|
|
390
|
-
id: id!,
|
|
391
|
-
title: titleElement.text(),
|
|
392
|
-
japaneseTitle: titleElement.attr('data-jname'),
|
|
393
|
-
banner: img.attr('data-src') || img.attr('src') || null,
|
|
394
|
-
rank: parseInt(card.find('.desi-sub-text').text().match(/(\d+)/g)?.[0]!),
|
|
395
|
-
url: `${this.baseUrl}/${id}`,
|
|
396
|
-
type: card.find('div.sc-detail .scd-item:nth-child(1)').text().trim() as MediaFormat,
|
|
397
|
-
duration: card.find('div.sc-detail > div:nth-child(2)').text().trim(),
|
|
398
|
-
releaseDate: card.find('div.sc-detail > div:nth-child(3)').text().trim(),
|
|
399
|
-
quality: card.find('div.sc-detail > div:nth-child(4)').text().trim(),
|
|
400
|
-
sub: parseInt(card.find('div.sc-detail div.tick-sub').text().trim()) || 0,
|
|
401
|
-
dub: parseInt(card.find('div.sc-detail div.tick-dub').text().trim()) || 0,
|
|
402
|
-
episodes: parseInt(card.find('div.sc-detail div.tick-eps').text()) || 0,
|
|
403
|
-
description: card.find('div.desi-description').text().trim(),
|
|
404
|
-
});
|
|
405
|
-
});
|
|
406
|
-
|
|
407
|
-
return res;
|
|
408
|
-
} catch (error) {
|
|
409
|
-
throw new Error('Something went wrong. Please try again later.');
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
async fetchSearchSuggestions(query: string): Promise<ISearch<IAnimeResult>> {
|
|
414
|
-
try {
|
|
415
|
-
const encodedQuery = encodeURIComponent(query);
|
|
416
|
-
const { data } = await this.client.get(`${this.baseUrl}/ajax/search/suggest?keyword=${encodedQuery}`);
|
|
417
|
-
const $ = load(data.html);
|
|
418
|
-
const res: ISearch<IAnimeResult> = {
|
|
419
|
-
results: [],
|
|
420
|
-
};
|
|
421
|
-
|
|
422
|
-
$('.nav-item').each((i, el) => {
|
|
423
|
-
const card = $(el);
|
|
424
|
-
if (!card.hasClass('nav-bottom')) {
|
|
425
|
-
const image = card.find('.film-poster img').attr('data-src');
|
|
426
|
-
const title = card.find('.film-name');
|
|
427
|
-
const id = card.attr('href')?.split('/')[1]!.split('?')[0];
|
|
428
|
-
|
|
429
|
-
const duration = card.find('.film-infor span').last().text().trim();
|
|
430
|
-
const releaseDate = card.find('.film-infor span:nth-child(1)').text().trim();
|
|
431
|
-
const type = card.find('.film-infor').find('span, i').remove().end().text().trim();
|
|
432
|
-
res.results.push({
|
|
433
|
-
image: image,
|
|
434
|
-
id: id!,
|
|
435
|
-
title: title.text(),
|
|
436
|
-
japaneseTitle: title.attr('data-jname'),
|
|
437
|
-
aliasTitle: card.find('.alias-name').text(),
|
|
438
|
-
releaseDate: releaseDate,
|
|
439
|
-
type: type as MediaFormat,
|
|
440
|
-
duration: duration,
|
|
441
|
-
url: `${this.baseUrl}/${id}`,
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
});
|
|
445
|
-
|
|
446
|
-
return res;
|
|
447
|
-
} catch (error) {
|
|
448
|
-
throw new Error('Something went wrong. Please try again later.');
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* Fetches the list of episodes that the user is currently watching.
|
|
454
|
-
* @param connectSid The session ID of the user. Note: This can be obtained from the browser cookies (needs to be signed in)
|
|
455
|
-
* @returns A promise that resolves to an array of anime episodes.
|
|
456
|
-
*/
|
|
457
|
-
async fetchContinueWatching(connectSid: string): Promise<IAnimeEpisode[]> {
|
|
458
|
-
try {
|
|
459
|
-
if (!(await this.verifyLoginState(connectSid))) {
|
|
460
|
-
throw new Error('Invalid session ID');
|
|
461
|
-
}
|
|
462
|
-
const res: IAnimeEpisode[] = [];
|
|
463
|
-
const { data } = await this.client.get(`${this.baseUrl}/user/continue-watching`, {
|
|
464
|
-
headers: {
|
|
465
|
-
Cookie: `connect.sid=${connectSid}`,
|
|
466
|
-
},
|
|
467
|
-
});
|
|
468
|
-
const $ = load(data);
|
|
469
|
-
$('.flw-item').each((i, ele) => {
|
|
470
|
-
const card = $(ele);
|
|
471
|
-
const atag = card.find('.film-name a');
|
|
472
|
-
const id = atag.attr('href')?.replace('/watch/', '')?.replace('?ep=', '$episode$');
|
|
473
|
-
const timeText = card.find('.fdb-time')?.text()?.split('/') ?? [];
|
|
474
|
-
const duration = timeText.pop()?.trim() ?? '';
|
|
475
|
-
const watchedTime = timeText.length > 0 ? timeText[0]!.trim() : '';
|
|
476
|
-
res.push({
|
|
477
|
-
id: id!,
|
|
478
|
-
title: atag.text(),
|
|
479
|
-
number: parseInt(card.find('.fdb-type').text().replace('EP', '').trim()),
|
|
480
|
-
duration: duration,
|
|
481
|
-
watchedTime: watchedTime,
|
|
482
|
-
url: `${this.baseUrl}${atag.attr('href')}`,
|
|
483
|
-
image: card.find('img')?.attr('data-src'),
|
|
484
|
-
japaneseTitle: atag.attr('data-jname'),
|
|
485
|
-
nsfw: card.find('.tick-rate')?.text() === '18+' ? true : false,
|
|
486
|
-
sub: parseInt(card.find('.tick-item.tick-sub')?.text()) || 0,
|
|
487
|
-
dub: parseInt(card.find('.tick-item.tick-dub')?.text()) || 0,
|
|
488
|
-
episodes: parseInt(card.find('.tick-item.tick-eps')?.text()) || 0,
|
|
489
|
-
});
|
|
490
|
-
});
|
|
491
|
-
|
|
492
|
-
return res;
|
|
493
|
-
} catch (err) {
|
|
494
|
-
throw new Error((err as Error).message);
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
async fetchWatchList(
|
|
499
|
-
connectSid: string,
|
|
500
|
-
page: number = 1,
|
|
501
|
-
sortListType?: WatchListType
|
|
502
|
-
): Promise<ISearch<IAnimeResult>> {
|
|
503
|
-
if (!(await this.verifyLoginState(connectSid))) {
|
|
504
|
-
throw new Error('Invalid session ID');
|
|
505
|
-
}
|
|
506
|
-
if (page <= 0) {
|
|
507
|
-
page = 1;
|
|
508
|
-
}
|
|
509
|
-
let type: number = 0;
|
|
510
|
-
switch (sortListType) {
|
|
511
|
-
case WatchListType.WATCHING:
|
|
512
|
-
type = 1;
|
|
513
|
-
break;
|
|
514
|
-
case WatchListType.ONHOLD:
|
|
515
|
-
type = 2;
|
|
516
|
-
break;
|
|
517
|
-
case WatchListType.PLAN_TO_WATCH:
|
|
518
|
-
type = 3;
|
|
519
|
-
break;
|
|
520
|
-
case WatchListType.DROPPED:
|
|
521
|
-
type = 4;
|
|
522
|
-
break;
|
|
523
|
-
case WatchListType.COMPLETED:
|
|
524
|
-
type = 5;
|
|
525
|
-
break;
|
|
526
|
-
}
|
|
527
|
-
return this.scrapeCardPage(`${this.baseUrl}/user/watch-list?page=${page}${type !== 0 ? '&type=' + type : ''}`, {
|
|
528
|
-
headers: { Cookie: `connect.sid=${connectSid}` },
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
/**
|
|
532
|
-
* @param id Anime id
|
|
533
|
-
*/
|
|
534
|
-
override fetchAnimeInfo = async (id: string): Promise<IAnimeInfo> => {
|
|
535
|
-
const info: IAnimeInfo = {
|
|
536
|
-
id: id,
|
|
537
|
-
title: '',
|
|
538
|
-
};
|
|
539
|
-
try {
|
|
540
|
-
const { data } = await axios.get(`${this.baseUrl}/watch/${id}`);
|
|
541
|
-
const $ = load(data);
|
|
542
|
-
|
|
543
|
-
const { mal_id, anilist_id } = JSON.parse($('#syncData').text());
|
|
544
|
-
info.malID = Number(mal_id);
|
|
545
|
-
info.alID = Number(anilist_id);
|
|
546
|
-
info.title = $('h2.film-name > a.text-white').text();
|
|
547
|
-
info.japaneseTitle = $('div.anisc-info div:nth-child(2) span.name').text();
|
|
548
|
-
info.image = $('img.film-poster-img').attr('src');
|
|
549
|
-
info.description = $('div.film-description').text().trim();
|
|
550
|
-
// Movie, TV, OVA, ONA, Special, Music
|
|
551
|
-
info.type = $('span.item').last().prev().prev().text().toUpperCase() as MediaFormat;
|
|
552
|
-
info.url = `${this.baseUrl}/${id}`;
|
|
553
|
-
info.recommendations = await this.scrapeCard($);
|
|
554
|
-
info.relatedAnime = [];
|
|
555
|
-
$('#main-sidebar section:nth-child(1) div.anif-block-ul li').each((i, ele) => {
|
|
556
|
-
const card = $(ele);
|
|
557
|
-
const aTag = card.find('.film-name a');
|
|
558
|
-
const id = aTag.attr('href')?.split('/')[1]!.split('?')[0];
|
|
559
|
-
info.relatedAnime.push({
|
|
560
|
-
id: id!,
|
|
561
|
-
title: aTag.text(),
|
|
562
|
-
url: `${this.baseUrl}${aTag.attr('href')}`,
|
|
563
|
-
image: card.find('img')?.attr('data-src'),
|
|
564
|
-
japaneseTitle: aTag.attr('data-jname'),
|
|
565
|
-
type: card.find('.tick').contents().last()?.text()?.trim() as MediaFormat,
|
|
566
|
-
sub: parseInt(card.find('.tick-item.tick-sub')?.text()) || 0,
|
|
567
|
-
dub: parseInt(card.find('.tick-item.tick-dub')?.text()) || 0,
|
|
568
|
-
episodes: parseInt(card.find('.tick-item.tick-eps')?.text()) || 0,
|
|
569
|
-
});
|
|
570
|
-
});
|
|
571
|
-
const hasSub: boolean = $('div.film-stats div.tick div.tick-item.tick-sub').length > 0;
|
|
572
|
-
const hasDub: boolean = $('div.film-stats div.tick div.tick-item.tick-dub').length > 0;
|
|
573
|
-
|
|
574
|
-
if (hasSub) {
|
|
575
|
-
info.subOrDub = SubOrSub.SUB;
|
|
576
|
-
info.hasSub = hasSub;
|
|
577
|
-
}
|
|
578
|
-
if (hasDub) {
|
|
579
|
-
info.subOrDub = SubOrSub.DUB;
|
|
580
|
-
info.hasDub = hasDub;
|
|
581
|
-
}
|
|
582
|
-
if (hasSub && hasDub) {
|
|
583
|
-
info.subOrDub = SubOrSub.BOTH;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
// ZORO - PAGE INFO
|
|
587
|
-
const zInfo = await axios.get(info.url);
|
|
588
|
-
const $$$ = load(zInfo.data);
|
|
589
|
-
|
|
590
|
-
info.genres = [];
|
|
591
|
-
$$$('.item.item-list')
|
|
592
|
-
.find('a')
|
|
593
|
-
.each(function () {
|
|
594
|
-
const genre = $(this).text().trim();
|
|
595
|
-
if (genre !== undefined) info.genres?.push(genre);
|
|
596
|
-
});
|
|
597
|
-
|
|
598
|
-
switch ($$$('.item.item-title').find("span.item-head:contains('Status')").next('span.name').text().trim()) {
|
|
599
|
-
case 'Finished Airing':
|
|
600
|
-
info.status = MediaStatus.COMPLETED;
|
|
601
|
-
break;
|
|
602
|
-
case 'Currently Airing':
|
|
603
|
-
info.status = MediaStatus.ONGOING;
|
|
604
|
-
break;
|
|
605
|
-
case 'Not yet aired':
|
|
606
|
-
info.status = MediaStatus.NOT_YET_AIRED;
|
|
607
|
-
break;
|
|
608
|
-
default:
|
|
609
|
-
info.status = MediaStatus.UNKNOWN;
|
|
610
|
-
break;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
info.season = $$$('.item.item-title')
|
|
614
|
-
.find("span.item-head:contains('Premiered')")
|
|
615
|
-
.next('span.name')
|
|
616
|
-
.text()
|
|
617
|
-
.trim();
|
|
618
|
-
|
|
619
|
-
if (info.japaneseTitle === '' || info.japaneseTitle === undefined) {
|
|
620
|
-
info.japaneseTitle = $$$('.item.item-title')
|
|
621
|
-
.find("span.item-head:contains('Japanese')")
|
|
622
|
-
.next('span.name')
|
|
623
|
-
.text()
|
|
624
|
-
.trim();
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
const episodesAjax = await axios.get(`${this.baseUrl}/ajax/v2/episode/list/${id.split('-').pop()}`, {
|
|
628
|
-
headers: {
|
|
629
|
-
'X-Requested-With': 'XMLHttpRequest',
|
|
630
|
-
'Referer': `${this.baseUrl}/watch/${id}`,
|
|
631
|
-
},
|
|
632
|
-
});
|
|
633
|
-
const $$ = load(episodesAjax.data.html);
|
|
634
|
-
|
|
635
|
-
// Pre-calculate values used for all episodes
|
|
636
|
-
const episodeElements = $$('div.detail-infor-content > div > a');
|
|
637
|
-
const subCount = parseInt($('div.film-stats div.tick div.tick-item.tick-sub').text().trim()) || 0;
|
|
638
|
-
const dubCount = parseInt($('div.film-stats div.tick div.tick-item.tick-dub').text().trim()) || 0;
|
|
639
|
-
|
|
640
|
-
info.totalEpisodes = episodeElements.length;
|
|
641
|
-
info.episodes = [];
|
|
642
|
-
|
|
643
|
-
// Single pass through episodes
|
|
644
|
-
episodeElements.each((i, el) => {
|
|
645
|
-
const $el = $$(el);
|
|
646
|
-
const href = $el.attr('href') || '';
|
|
647
|
-
const number = parseInt($el.attr('data-number') || '0');
|
|
648
|
-
|
|
649
|
-
info.episodes?.push({
|
|
650
|
-
id: href.split('/')[2]?.replace('?ep=', '$episode$') || '',
|
|
651
|
-
number: number,
|
|
652
|
-
title: $el.attr('title'),
|
|
653
|
-
isFiller: $el.hasClass('ssl-item-filler'),
|
|
654
|
-
isSubbed: number <= subCount,
|
|
655
|
-
isDubbed: number <= dubCount,
|
|
656
|
-
url: this.baseUrl + href,
|
|
657
|
-
});
|
|
658
|
-
});
|
|
659
|
-
|
|
660
|
-
return info;
|
|
661
|
-
} catch (err) {
|
|
662
|
-
throw new Error((err as Error).message);
|
|
663
|
-
}
|
|
664
|
-
};
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
*
|
|
668
|
-
* @param episodeId Episode id
|
|
669
|
-
* @param server server type (default `VidCloud`) (optional)
|
|
670
|
-
* @param subOrDub sub or dub (default `SubOrSub.SUB`) (optional)
|
|
671
|
-
*/
|
|
672
|
-
override fetchEpisodeSources = async (
|
|
673
|
-
episodeId: string,
|
|
674
|
-
server: StreamingServers = StreamingServers.VidCloud,
|
|
675
|
-
subOrDub: SubOrSub = SubOrSub.SUB
|
|
676
|
-
): Promise<ISource> => {
|
|
677
|
-
if (episodeId.startsWith('http')) {
|
|
678
|
-
const serverUrl = new URL(episodeId);
|
|
679
|
-
switch (server) {
|
|
680
|
-
case StreamingServers.VidCloud:
|
|
681
|
-
return {
|
|
682
|
-
headers: { Referer: serverUrl.href },
|
|
683
|
-
...(await new MegaCloud().extract(serverUrl, this.baseUrl)),
|
|
684
|
-
};
|
|
685
|
-
case StreamingServers.StreamSB:
|
|
686
|
-
return {
|
|
687
|
-
headers: {
|
|
688
|
-
'Referer': serverUrl.href,
|
|
689
|
-
'watchsb': 'streamsb',
|
|
690
|
-
'User-Agent': USER_AGENT,
|
|
691
|
-
},
|
|
692
|
-
sources: await new StreamSB(this.proxyConfig, this.adapter).extract(serverUrl, true),
|
|
693
|
-
};
|
|
694
|
-
case StreamingServers.StreamTape:
|
|
695
|
-
return {
|
|
696
|
-
headers: { 'Referer': serverUrl.href, 'User-Agent': USER_AGENT },
|
|
697
|
-
sources: await new StreamTape(this.proxyConfig, this.adapter).extract(serverUrl),
|
|
698
|
-
};
|
|
699
|
-
default:
|
|
700
|
-
case StreamingServers.VidCloud:
|
|
701
|
-
return {
|
|
702
|
-
headers: { Referer: serverUrl.href },
|
|
703
|
-
...(await new MegaCloud().extract(serverUrl, this.baseUrl)),
|
|
704
|
-
};
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
if (!episodeId.includes('$episode$')) throw new Error('Invalid episode id');
|
|
708
|
-
|
|
709
|
-
// keeping this for future use
|
|
710
|
-
// Fallback to using sub if no info found in case of compatibility
|
|
711
|
-
|
|
712
|
-
// TODO: add both options later
|
|
713
|
-
// subOrDub = episodeId.split('$')?.pop() === 'dub' ? 'dub' : 'sub';
|
|
714
|
-
|
|
715
|
-
episodeId = `${this.baseUrl}/watch/${episodeId.replace('$episode$', '?ep=').replace(/\$auto|\$sub|\$dub/gi, '')}`;
|
|
716
|
-
|
|
717
|
-
try {
|
|
718
|
-
const { data } = await this.client.get(
|
|
719
|
-
`${this.baseUrl}/ajax/v2/episode/servers?episodeId=${episodeId.split('?ep=')[1]}`
|
|
720
|
-
);
|
|
721
|
-
|
|
722
|
-
const $ = load(data.html);
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* vidtreaming -> 4
|
|
726
|
-
* rapidcloud -> 1
|
|
727
|
-
* streamsb -> 5
|
|
728
|
-
* streamtape -> 3
|
|
729
|
-
*/
|
|
730
|
-
let serverId = '';
|
|
731
|
-
try {
|
|
732
|
-
switch (server) {
|
|
733
|
-
case StreamingServers.VidCloud:
|
|
734
|
-
serverId = this.retrieveServerId($, 1, subOrDub);
|
|
735
|
-
|
|
736
|
-
// zoro's vidcloud server is rapidcloud
|
|
737
|
-
if (!serverId) throw new Error('RapidCloud not found');
|
|
738
|
-
break;
|
|
739
|
-
case StreamingServers.VidStreaming:
|
|
740
|
-
serverId = this.retrieveServerId($, 4, subOrDub);
|
|
741
|
-
|
|
742
|
-
// zoro's vidcloud server is rapidcloud
|
|
743
|
-
if (!serverId) throw new Error('vidtreaming not found');
|
|
744
|
-
break;
|
|
745
|
-
case StreamingServers.StreamSB:
|
|
746
|
-
serverId = this.retrieveServerId($, 5, subOrDub);
|
|
747
|
-
|
|
748
|
-
if (!serverId) throw new Error('StreamSB not found');
|
|
749
|
-
break;
|
|
750
|
-
case StreamingServers.StreamTape:
|
|
751
|
-
serverId = this.retrieveServerId($, 3, subOrDub);
|
|
752
|
-
|
|
753
|
-
if (!serverId) throw new Error('StreamTape not found');
|
|
754
|
-
break;
|
|
755
|
-
}
|
|
756
|
-
} catch (err) {
|
|
757
|
-
throw new Error("Couldn't find server. Try another server");
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
const {
|
|
761
|
-
data: { link },
|
|
762
|
-
} = await this.client.get(`${this.baseUrl}/ajax/v2/episode/sources?id=${serverId}`);
|
|
763
|
-
|
|
764
|
-
return await this.fetchEpisodeSources(link, server, SubOrSub.SUB);
|
|
765
|
-
} catch (err) {
|
|
766
|
-
throw err;
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
|
-
|
|
770
|
-
private verifyLoginState = async (connectSid: string): Promise<boolean> => {
|
|
771
|
-
try {
|
|
772
|
-
const { data } = await this.client.get(`${this.baseUrl}/ajax/login-state`, {
|
|
773
|
-
headers: {
|
|
774
|
-
Cookie: `connect.sid=${connectSid}`,
|
|
775
|
-
},
|
|
776
|
-
});
|
|
777
|
-
return data.is_login;
|
|
778
|
-
} catch (err) {
|
|
779
|
-
return false;
|
|
780
|
-
}
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
private retrieveServerId = ($: any, index: number, subOrDub: SubOrSub) => {
|
|
784
|
-
const rawOrSubOrDub = (raw: boolean) =>
|
|
785
|
-
$(`.ps_-block.ps_-block-sub.servers-${raw ? 'raw' : subOrDub} > .ps__-list .server-item`)
|
|
786
|
-
.map((i: any, el: any) => ($(el).attr('data-server-id') === `${index}` ? $(el) : null))
|
|
787
|
-
.get()[0]
|
|
788
|
-
.attr('data-id');
|
|
789
|
-
try {
|
|
790
|
-
// Attempt to get the subOrDub ID
|
|
791
|
-
return rawOrSubOrDub(false);
|
|
792
|
-
} catch (error) {
|
|
793
|
-
// If an error is thrown, attempt to get the raw ID (The raw is the newest episode uploaded to zoro)
|
|
794
|
-
return rawOrSubOrDub(true);
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* @param url string
|
|
800
|
-
*/
|
|
801
|
-
private scrapeCardPage = async (url: string, headers?: object): Promise<ISearch<IAnimeResult>> => {
|
|
802
|
-
try {
|
|
803
|
-
const res: ISearch<IAnimeResult> = {
|
|
804
|
-
currentPage: 0,
|
|
805
|
-
hasNextPage: false,
|
|
806
|
-
totalPages: 0,
|
|
807
|
-
results: [],
|
|
808
|
-
};
|
|
809
|
-
const { data } = await this.client.get(url, headers);
|
|
810
|
-
const $ = load(data);
|
|
811
|
-
|
|
812
|
-
const pagination = $('ul.pagination');
|
|
813
|
-
res.currentPage = parseInt(pagination.find('.page-item.active')?.text());
|
|
814
|
-
const nextPage = pagination.find('a[title=Next]')?.attr('href');
|
|
815
|
-
if (nextPage !== undefined && nextPage !== '') {
|
|
816
|
-
res.hasNextPage = true;
|
|
817
|
-
}
|
|
818
|
-
const totalPages = pagination.find('a[title=Last]').attr('href')?.split('=').pop();
|
|
819
|
-
if (totalPages === undefined || totalPages === '') {
|
|
820
|
-
res.totalPages = res.currentPage;
|
|
821
|
-
} else {
|
|
822
|
-
res.totalPages = parseInt(totalPages);
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
res.results = await this.scrapeCard($);
|
|
826
|
-
if (res.results.length === 0) {
|
|
827
|
-
res.currentPage = 0;
|
|
828
|
-
res.hasNextPage = false;
|
|
829
|
-
res.totalPages = 0;
|
|
830
|
-
}
|
|
831
|
-
return res;
|
|
832
|
-
} catch (err) {
|
|
833
|
-
console.log(err);
|
|
834
|
-
throw new Error('Something went wrong. Please try again later.');
|
|
835
|
-
}
|
|
836
|
-
};
|
|
837
|
-
|
|
838
|
-
/**
|
|
839
|
-
* @param $ cheerio instance
|
|
840
|
-
*/
|
|
841
|
-
private scrapeCard = async ($: CheerioAPI): Promise<IAnimeResult[]> => {
|
|
842
|
-
try {
|
|
843
|
-
const results: IAnimeResult[] = [];
|
|
844
|
-
|
|
845
|
-
$('.flw-item').each((i, ele) => {
|
|
846
|
-
const card = $(ele);
|
|
847
|
-
const atag = card.find('.film-name a');
|
|
848
|
-
const id = atag.attr('href')?.split('/')[1]!.split('?')[0];
|
|
849
|
-
const watchList = card.find('.dropdown-menu .added').text().trim() as WatchListType;
|
|
850
|
-
const type = card
|
|
851
|
-
.find('.fdi-item')
|
|
852
|
-
?.first()
|
|
853
|
-
?.text()
|
|
854
|
-
.replace(' (? eps)', '')
|
|
855
|
-
.replace(/\s\(\d+ eps\)/g, '');
|
|
856
|
-
results.push({
|
|
857
|
-
id: id!,
|
|
858
|
-
title: atag.text(),
|
|
859
|
-
url: `${this.baseUrl}${atag.attr('href')}`,
|
|
860
|
-
image: card.find('img')?.attr('data-src'),
|
|
861
|
-
duration: card.find('.fdi-duration')?.text(),
|
|
862
|
-
watchList: watchList || WatchListType.NONE,
|
|
863
|
-
japaneseTitle: atag.attr('data-jname'),
|
|
864
|
-
type: type as MediaFormat,
|
|
865
|
-
nsfw: card.find('.tick-rate')?.text() === '18+' ? true : false,
|
|
866
|
-
sub: parseInt(card.find('.tick-item.tick-sub')?.text()) || 0,
|
|
867
|
-
dub: parseInt(card.find('.tick-item.tick-dub')?.text()) || 0,
|
|
868
|
-
episodes: parseInt(card.find('.tick-item.tick-eps')?.text()) || 0,
|
|
869
|
-
});
|
|
870
|
-
});
|
|
871
|
-
return results;
|
|
872
|
-
} catch (err) {
|
|
873
|
-
console.log(err);
|
|
874
|
-
throw new Error('Something went wrong. Please try again later.');
|
|
875
|
-
}
|
|
876
|
-
};
|
|
877
|
-
/**
|
|
878
|
-
* @deprecated
|
|
879
|
-
* @param episodeId Episode id
|
|
880
|
-
*/
|
|
881
|
-
override fetchEpisodeServers = (episodeId: string): Promise<IEpisodeServer[]> => {
|
|
882
|
-
throw new Error('Method not implemented.');
|
|
883
|
-
};
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
// (async () => {
|
|
887
|
-
// const zoro = new Zoro();
|
|
888
|
-
// const anime = await zoro.search('Dandadan');
|
|
889
|
-
// const info = await zoro.fetchAnimeInfo('solo-leveling-season-2-arise-from-the-shadow-19413');
|
|
890
|
-
// // console.log(info.episodes);
|
|
891
|
-
// const sources = await zoro.fetchEpisodeSources("solo-leveling-season-2-arise-from-the-shadow-19413$episode$131394$dub", StreamingServers.VidCloud,SubOrSub.DUB);
|
|
892
|
-
// })();
|
|
893
|
-
|
|
894
|
-
export default Zoro;
|