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,495 +1,529 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
type
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
movieInfo.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
movieInfo.
|
|
130
|
-
movieInfo.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
season
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
$(el).find('div.film-detail >
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
$(el).find('div.film-detail >
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
1
|
+
import {
|
|
2
|
+
type IMovieInfo,
|
|
3
|
+
type IEpisodeServer,
|
|
4
|
+
type StreamingServers,
|
|
5
|
+
type ISource,
|
|
6
|
+
type IMovieResult,
|
|
7
|
+
type ISearch,
|
|
8
|
+
type ProviderContext,
|
|
9
|
+
type ProviderConfig,
|
|
10
|
+
} from '../../../models';
|
|
11
|
+
|
|
12
|
+
export function createHiMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
13
|
+
const { load, extractors, enums, axios, createCustomBaseUrl, PolyURL } = ctx;
|
|
14
|
+
const { MegaCloud } = extractors;
|
|
15
|
+
const { StreamingServers: StreamingServersEnum, TvType: TvTypeEnum } = enums;
|
|
16
|
+
|
|
17
|
+
const baseUrl = createCustomBaseUrl('https://himovies.sx', customBaseURL);
|
|
18
|
+
|
|
19
|
+
const config: ProviderConfig = {
|
|
20
|
+
name: 'HiMovies',
|
|
21
|
+
languages: 'all',
|
|
22
|
+
classPath: 'MOVIES.HiMovies',
|
|
23
|
+
logo: 'https://himovies.sx/images/group_1/theme_1/favicon.png',
|
|
24
|
+
baseUrl,
|
|
25
|
+
isNSFW: false,
|
|
26
|
+
isWorking: true,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const supportedTypes = new Set([TvTypeEnum.MOVIE, TvTypeEnum.TVSERIES]);
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Search for movies/TV shows
|
|
33
|
+
* @param query search query string
|
|
34
|
+
* @param page page number (default 1) (optional)
|
|
35
|
+
*/
|
|
36
|
+
const search = async (query: string, page: number = 1): Promise<ISearch<IMovieResult>> => {
|
|
37
|
+
const searchResult: ISearch<IMovieResult> = {
|
|
38
|
+
currentPage: page,
|
|
39
|
+
hasNextPage: false,
|
|
40
|
+
results: [],
|
|
41
|
+
};
|
|
42
|
+
try {
|
|
43
|
+
const { data } = await axios.get(`${config.baseUrl}/search/${query.replace(/[\W_]+/g, '-')}?page=${page}`);
|
|
44
|
+
|
|
45
|
+
const $ = load(data);
|
|
46
|
+
|
|
47
|
+
const navSelector = 'div.pre-pagination > nav:nth-child(1) > ul:nth-child(1)';
|
|
48
|
+
searchResult.hasNextPage =
|
|
49
|
+
$(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('active') : false;
|
|
50
|
+
|
|
51
|
+
const initialResults: IMovieResult[] = [];
|
|
52
|
+
$('.film_list-wrap > div.flw-item').each((i, el) => {
|
|
53
|
+
const releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text();
|
|
54
|
+
initialResults.push({
|
|
55
|
+
id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!,
|
|
56
|
+
title: $(el).find('div.film-detail > h2 > a').attr('title')!,
|
|
57
|
+
url: `${config.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
|
|
58
|
+
image: $(el).find('div.film-poster > img').attr('data-src'),
|
|
59
|
+
releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate,
|
|
60
|
+
seasons: releaseDate.includes('SS') ? parseInt(releaseDate.split('SS')[1]!) : undefined,
|
|
61
|
+
type:
|
|
62
|
+
$(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
|
|
63
|
+
? TvTypeEnum.MOVIE
|
|
64
|
+
: TvTypeEnum.TVSERIES,
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// Fetch media info for all results in parallel
|
|
69
|
+
const mediaInfoPromises = initialResults.map(async (result) => {
|
|
70
|
+
try {
|
|
71
|
+
const mediaInfo = await fetchMediaInfo(result.id);
|
|
72
|
+
if (mediaInfo.releaseDate) {
|
|
73
|
+
const year = new Date(mediaInfo.releaseDate).getFullYear();
|
|
74
|
+
result.releaseDate = year.toString();
|
|
75
|
+
}
|
|
76
|
+
return result;
|
|
77
|
+
} catch (err) {
|
|
78
|
+
// Return original result if fetchMediaInfo fails
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
searchResult.results = await Promise.all(mediaInfoPromises);
|
|
84
|
+
|
|
85
|
+
return searchResult;
|
|
86
|
+
} catch (err) {
|
|
87
|
+
throw new Error((err as Error).message);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Fetch media info
|
|
93
|
+
* @param mediaId media link or id
|
|
94
|
+
*/
|
|
95
|
+
const fetchMediaInfo = async (mediaId: string): Promise<IMovieInfo> => {
|
|
96
|
+
if (!mediaId.startsWith(config.baseUrl)) {
|
|
97
|
+
mediaId = `${config.baseUrl}/${mediaId}`;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const movieInfo: IMovieInfo = {
|
|
101
|
+
id: mediaId.split('sx/').pop()!,
|
|
102
|
+
title: '',
|
|
103
|
+
url: mediaId,
|
|
104
|
+
};
|
|
105
|
+
try {
|
|
106
|
+
const { data } = await axios.get(mediaId);
|
|
107
|
+
const $ = load(data);
|
|
108
|
+
const recommendationsArray: IMovieResult[] = [];
|
|
109
|
+
|
|
110
|
+
$('section.block_area > div.block_area-content > div.film_list-wrap > div.flw-item').each((i, el) => {
|
|
111
|
+
recommendationsArray.push({
|
|
112
|
+
id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!,
|
|
113
|
+
title: $(el).find('div.film-detail > h3.film-name > a').text(),
|
|
114
|
+
image: $(el).find('div.film-poster > img').attr('data-src'),
|
|
115
|
+
duration: $(el).find('div.film-detail > div.fd-infor > span.fdi-duration').text().replace('m', '') ?? null,
|
|
116
|
+
type:
|
|
117
|
+
$(el).find('div.film-detail > div.fd-infor > span.fdi-type').text() === 'TV'
|
|
118
|
+
? TvTypeEnum.TVSERIES
|
|
119
|
+
: (TvTypeEnum.MOVIE ?? null),
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
const uid = $('.detail_page-watch').attr('data-id')!;
|
|
124
|
+
movieInfo.cover = $('div.cover_follow').attr('style')?.slice(22).replace(')', '').replace(';', '');
|
|
125
|
+
movieInfo.title = $('.heading-name > a:nth-child(1)').text();
|
|
126
|
+
movieInfo.image = $('.film-poster > img:nth-child(1)').attr('src');
|
|
127
|
+
movieInfo.description = $('.description').text().trim();
|
|
128
|
+
movieInfo.type = movieInfo.id.includes('tv/') ? TvTypeEnum.TVSERIES : TvTypeEnum.MOVIE;
|
|
129
|
+
movieInfo.releaseDate = $('div.row-line:contains(Released:)').text().replace('Released:', '').trim();
|
|
130
|
+
movieInfo.genres = $('div.row-line:contains(Genre:) a')
|
|
131
|
+
.map((i, el) => $(el).text().split('&'))
|
|
132
|
+
.get()
|
|
133
|
+
.map((v) => v.trim());
|
|
134
|
+
movieInfo.casts = $('.row-line:contains(Casts:) a')
|
|
135
|
+
.map((i, el) => $(el).text())
|
|
136
|
+
.get();
|
|
137
|
+
movieInfo.production = $('.row-line:contains(Production:) a').text().trim();
|
|
138
|
+
movieInfo.country = $('.row-line:contains(Country:) a').text().trim();
|
|
139
|
+
movieInfo.duration = $('.row-line:contains(Duration:)')
|
|
140
|
+
.text()
|
|
141
|
+
.replace('Duration:', '')
|
|
142
|
+
.replace(/\s+/g, ' ')
|
|
143
|
+
.trim();
|
|
144
|
+
movieInfo.rating = parseFloat($('.dp-i-stats > span.item:nth-child(3)').text().replace('IMDB:', '').trim());
|
|
145
|
+
movieInfo.recommendations = recommendationsArray as any;
|
|
146
|
+
const ajaxReqUrl = (id: string, type: string, isSeasons: boolean = false) =>
|
|
147
|
+
`${config.baseUrl}/ajax/${type === 'movie' ? type : ``}${isSeasons ? 'season/list' : 'season/episodes'}/${id}`;
|
|
148
|
+
|
|
149
|
+
if (movieInfo.type === TvTypeEnum.TVSERIES) {
|
|
150
|
+
const { data } = await axios.get(ajaxReqUrl(uid, 'tv', true));
|
|
151
|
+
const $$ = load(data);
|
|
152
|
+
const seasonsIds = $$('.dropdown-menu > a')
|
|
153
|
+
.map((i, el) => $(el).attr('data-id'))
|
|
154
|
+
.get();
|
|
155
|
+
|
|
156
|
+
movieInfo.episodes = [];
|
|
157
|
+
let season = 1;
|
|
158
|
+
for (const id of seasonsIds) {
|
|
159
|
+
const { data } = await axios.get(ajaxReqUrl(id, 'season'));
|
|
160
|
+
const $$$ = load(data);
|
|
161
|
+
|
|
162
|
+
$$$('.nav > li')
|
|
163
|
+
.map((i, el) => {
|
|
164
|
+
const episode = {
|
|
165
|
+
id: $$$(el).find('a').attr('id')!.split('-')[1]!,
|
|
166
|
+
title: $$$(el).find('a').attr('title')!,
|
|
167
|
+
number: parseInt($$$(el).find('a').attr('title')!.split(':')[0]!.slice(3).trim()),
|
|
168
|
+
season: season,
|
|
169
|
+
url: `${config.baseUrl}/ajax/episode/servers/${$$$(el).find('a').attr('id')!.split('-')[1]}`,
|
|
170
|
+
};
|
|
171
|
+
movieInfo.episodes?.push(episode);
|
|
172
|
+
})
|
|
173
|
+
.get();
|
|
174
|
+
season++;
|
|
175
|
+
}
|
|
176
|
+
} else {
|
|
177
|
+
movieInfo.episodes = [
|
|
178
|
+
{
|
|
179
|
+
id: uid,
|
|
180
|
+
title: movieInfo.title,
|
|
181
|
+
url: `${config.baseUrl}/ajax/episode/list/${uid}`,
|
|
182
|
+
},
|
|
183
|
+
];
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
return movieInfo;
|
|
187
|
+
} catch (err) {
|
|
188
|
+
//console.log(err);
|
|
189
|
+
throw new Error((err as Error).message);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Fetch episode sources
|
|
195
|
+
* @param episodeId episode id
|
|
196
|
+
* @param mediaId media id
|
|
197
|
+
* @param server server type (default `MegaCloud`) (optional)
|
|
198
|
+
*/
|
|
199
|
+
const fetchEpisodeSources = async (
|
|
200
|
+
episodeId: string,
|
|
201
|
+
mediaId: string,
|
|
202
|
+
server: StreamingServers = StreamingServersEnum.MegaCloud
|
|
203
|
+
): Promise<ISource> => {
|
|
204
|
+
if (episodeId.startsWith('http')) {
|
|
205
|
+
const serverUrl = new PolyURL(episodeId);
|
|
206
|
+
switch (server) {
|
|
207
|
+
case StreamingServersEnum.MegaCloud:
|
|
208
|
+
return {
|
|
209
|
+
headers: { Referer: serverUrl.href },
|
|
210
|
+
...(await MegaCloud().extract(serverUrl, config.baseUrl)),
|
|
211
|
+
};
|
|
212
|
+
case StreamingServersEnum.UpCloud:
|
|
213
|
+
return {
|
|
214
|
+
headers: { Referer: serverUrl.href },
|
|
215
|
+
...(await MegaCloud().extract(serverUrl, config.baseUrl)),
|
|
216
|
+
};
|
|
217
|
+
default:
|
|
218
|
+
return {
|
|
219
|
+
headers: { Referer: serverUrl.href },
|
|
220
|
+
...(await MegaCloud().extract(serverUrl, config.baseUrl)),
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
try {
|
|
226
|
+
const servers = await fetchEpisodeServers(episodeId, mediaId);
|
|
227
|
+
|
|
228
|
+
const i = servers.findIndex((s) => s.name === server);
|
|
229
|
+
|
|
230
|
+
if (i === -1) {
|
|
231
|
+
throw new Error(`Server ${server} not found`);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const serverUrl: URL = new URL(servers[i]!.url);
|
|
235
|
+
|
|
236
|
+
return await fetchEpisodeSources(serverUrl.href, mediaId, server);
|
|
237
|
+
} catch (err) {
|
|
238
|
+
throw new Error((err as Error).message);
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Fetch episode servers
|
|
244
|
+
* @param episodeId takes episode link or movie id
|
|
245
|
+
* @param mediaId takes movie link or id (found on movie info object)
|
|
246
|
+
*/
|
|
247
|
+
const fetchEpisodeServers = async (episodeId: string, mediaId: string): Promise<IEpisodeServer[]> => {
|
|
248
|
+
if (!episodeId.startsWith(config.baseUrl + '/ajax') && !mediaId.includes('movie')) {
|
|
249
|
+
episodeId = `${config.baseUrl}/ajax/episode/servers/${episodeId}`;
|
|
250
|
+
} else {
|
|
251
|
+
episodeId = `${config.baseUrl}/ajax/episode/list/${episodeId}`;
|
|
252
|
+
}
|
|
253
|
+
try {
|
|
254
|
+
const { data } = await axios.get(episodeId);
|
|
255
|
+
const $ = load(data);
|
|
256
|
+
const servers = $('ul.nav > li')
|
|
257
|
+
.map((i, el) => ({
|
|
258
|
+
name: $(el).find('a').attr('title')!.slice(6).toLowerCase().replace('server', '').trim(),
|
|
259
|
+
url: `${config.baseUrl}/ajax/episode/sources/${$(el).find('a').attr('data-id')}`,
|
|
260
|
+
}))
|
|
261
|
+
.get();
|
|
262
|
+
|
|
263
|
+
const finalServers: IEpisodeServer[] = await Promise.all(
|
|
264
|
+
servers.map(async (server) => {
|
|
265
|
+
const { data } = await axios.get(server.url);
|
|
266
|
+
return {
|
|
267
|
+
name: server.name,
|
|
268
|
+
url: data.link,
|
|
269
|
+
};
|
|
270
|
+
})
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
return finalServers;
|
|
274
|
+
} catch (err) {
|
|
275
|
+
throw new Error((err as Error).message);
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
const fetchRecentMovies = async (): Promise<IMovieResult[]> => {
|
|
280
|
+
try {
|
|
281
|
+
const { data } = await axios.get(`${config.baseUrl}/home`);
|
|
282
|
+
const $ = load(data);
|
|
283
|
+
|
|
284
|
+
const movies = $(
|
|
285
|
+
'section.block_area:contains("Latest Movies") > div:nth-child(2) > div:nth-child(1) > div.flw-item'
|
|
286
|
+
)
|
|
287
|
+
.map((i, el) => {
|
|
288
|
+
const releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text();
|
|
289
|
+
const movie: any = {
|
|
290
|
+
id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!,
|
|
291
|
+
title: $(el).find('div.film-detail > h3.film-name > a').attr('title')!,
|
|
292
|
+
url: `${config.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
|
|
293
|
+
image: $(el).find('div.film-poster > img').attr('data-src'),
|
|
294
|
+
releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate,
|
|
295
|
+
duration: $(el).find('div.film-detail > div.fd-infor > span.fdi-duration').text() || null,
|
|
296
|
+
type:
|
|
297
|
+
$(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
|
|
298
|
+
? TvTypeEnum.MOVIE
|
|
299
|
+
: TvTypeEnum.TVSERIES,
|
|
300
|
+
};
|
|
301
|
+
return movie;
|
|
302
|
+
})
|
|
303
|
+
.get();
|
|
304
|
+
return movies;
|
|
305
|
+
} catch (err) {
|
|
306
|
+
throw new Error((err as Error).message);
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
const fetchRecentTvShows = async (): Promise<IMovieResult[]> => {
|
|
311
|
+
try {
|
|
312
|
+
const { data } = await axios.get(`${config.baseUrl}/home`);
|
|
313
|
+
const $ = load(data);
|
|
314
|
+
|
|
315
|
+
const tvshows = $(
|
|
316
|
+
'section.block_area:contains("Latest TV Shows") > div:nth-child(2) > div:nth-child(1) > div.flw-item'
|
|
317
|
+
)
|
|
318
|
+
.map((i, el) => {
|
|
319
|
+
const tvshow = {
|
|
320
|
+
id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!,
|
|
321
|
+
title: $(el).find('div.film-detail > h3.film-name > a').attr('title')!,
|
|
322
|
+
url: `${config.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
|
|
323
|
+
image: $(el).find('div.film-poster > img').attr('data-src'),
|
|
324
|
+
season: $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text().replace('SS', '').trim(),
|
|
325
|
+
latestEpisode:
|
|
326
|
+
$(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().replace('EPS', '').trim() || null,
|
|
327
|
+
type:
|
|
328
|
+
$(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
|
|
329
|
+
? TvTypeEnum.MOVIE
|
|
330
|
+
: TvTypeEnum.TVSERIES,
|
|
331
|
+
};
|
|
332
|
+
return tvshow;
|
|
333
|
+
})
|
|
334
|
+
.get();
|
|
335
|
+
return tvshows;
|
|
336
|
+
} catch (err) {
|
|
337
|
+
throw new Error((err as Error).message);
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
const fetchTrendingMovies = async (): Promise<IMovieResult[]> => {
|
|
342
|
+
try {
|
|
343
|
+
const { data } = await axios.get(`${config.baseUrl}/home`);
|
|
344
|
+
const $ = load(data);
|
|
345
|
+
|
|
346
|
+
const movies = $('div#trending-movies div.film_list-wrap div.flw-item')
|
|
347
|
+
.map((i, el) => {
|
|
348
|
+
const releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text();
|
|
349
|
+
const movie: any = {
|
|
350
|
+
id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!,
|
|
351
|
+
title: $(el).find('div.film-detail > h3.film-name > a').attr('title')!,
|
|
352
|
+
url: `${config.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
|
|
353
|
+
image: $(el).find('div.film-poster > img').attr('data-src'),
|
|
354
|
+
releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate,
|
|
355
|
+
duration: $(el).find('div.film-detail > div.fd-infor > span.fdi-duration').text() || null,
|
|
356
|
+
type:
|
|
357
|
+
$(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
|
|
358
|
+
? TvTypeEnum.MOVIE
|
|
359
|
+
: TvTypeEnum.TVSERIES,
|
|
360
|
+
};
|
|
361
|
+
return movie;
|
|
362
|
+
})
|
|
363
|
+
.get();
|
|
364
|
+
return movies;
|
|
365
|
+
} catch (err) {
|
|
366
|
+
throw new Error((err as Error).message);
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
const fetchTrendingTvShows = async (): Promise<IMovieResult[]> => {
|
|
371
|
+
try {
|
|
372
|
+
const { data } = await axios.get(`${config.baseUrl}/home`);
|
|
373
|
+
const $ = load(data);
|
|
374
|
+
|
|
375
|
+
const tvshows = $('div#trending-tv div.film_list-wrap div.flw-item')
|
|
376
|
+
.map((i, el) => {
|
|
377
|
+
const tvshow = {
|
|
378
|
+
id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!,
|
|
379
|
+
title: $(el).find('div.film-detail > h3.film-name > a').attr('title')!,
|
|
380
|
+
url: `${config.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
|
|
381
|
+
image: $(el).find('div.film-poster > img').attr('data-src'),
|
|
382
|
+
season: $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text().replace('SS', '').trim(),
|
|
383
|
+
latestEpisode:
|
|
384
|
+
$(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().replace('EPS', '').trim() || null,
|
|
385
|
+
type:
|
|
386
|
+
$(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
|
|
387
|
+
? TvTypeEnum.MOVIE
|
|
388
|
+
: TvTypeEnum.TVSERIES,
|
|
389
|
+
};
|
|
390
|
+
return tvshow;
|
|
391
|
+
})
|
|
392
|
+
.get();
|
|
393
|
+
return tvshows;
|
|
394
|
+
} catch (err) {
|
|
395
|
+
throw new Error((err as Error).message);
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
const fetchByCountry = async (country: string, page: number = 1): Promise<ISearch<IMovieResult>> => {
|
|
400
|
+
const result: ISearch<IMovieResult> = {
|
|
401
|
+
currentPage: page,
|
|
402
|
+
hasNextPage: false,
|
|
403
|
+
results: [],
|
|
404
|
+
};
|
|
405
|
+
const navSelector = 'div.pre-pagination > nav:nth-child(1) > ul:nth-child(1)';
|
|
406
|
+
|
|
407
|
+
try {
|
|
408
|
+
const { data } = await axios.get(`${config.baseUrl}/country/${country}/?page=${page}`);
|
|
409
|
+
const $ = load(data);
|
|
410
|
+
|
|
411
|
+
result.hasNextPage = $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('active') : false;
|
|
412
|
+
|
|
413
|
+
$('div.container > section.block_area > div.block_area-content > div.film_list-wrap > div.flw-item')
|
|
414
|
+
.each((i, el) => {
|
|
415
|
+
const resultItem: IMovieResult = {
|
|
416
|
+
id: $(el).find('div.film-poster > a').attr('href')?.slice(1) ?? '',
|
|
417
|
+
title: $(el).find('div.film-detail > h2.film-name > a').attr('title') ?? '',
|
|
418
|
+
url: `${config.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
|
|
419
|
+
image: $(el).find('div.film-poster > img').attr('data-src'),
|
|
420
|
+
type:
|
|
421
|
+
$(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
|
|
422
|
+
? TvTypeEnum.MOVIE
|
|
423
|
+
: TvTypeEnum.TVSERIES,
|
|
424
|
+
};
|
|
425
|
+
const season = $(el)
|
|
426
|
+
.find('div.film-detail > div.fd-infor > span:nth-child(1)')
|
|
427
|
+
.text()
|
|
428
|
+
.replace('SS', '')
|
|
429
|
+
.trim();
|
|
430
|
+
const latestEpisode =
|
|
431
|
+
$(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().replace('EPS', '').trim() ?? null;
|
|
432
|
+
if (resultItem.type === TvTypeEnum.TVSERIES) {
|
|
433
|
+
resultItem.season = season;
|
|
434
|
+
resultItem.latestEpisode = latestEpisode;
|
|
435
|
+
} else {
|
|
436
|
+
resultItem.releaseDate = season;
|
|
437
|
+
resultItem.duration = latestEpisode;
|
|
438
|
+
}
|
|
439
|
+
result.results.push(resultItem);
|
|
440
|
+
})
|
|
441
|
+
.get();
|
|
442
|
+
return result;
|
|
443
|
+
} catch (err) {
|
|
444
|
+
throw new Error((err as Error).message);
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
const fetchByGenre = async (genre: string, page: number = 1): Promise<ISearch<IMovieResult>> => {
|
|
449
|
+
const result: ISearch<IMovieResult> = {
|
|
450
|
+
currentPage: page,
|
|
451
|
+
hasNextPage: false,
|
|
452
|
+
results: [],
|
|
453
|
+
};
|
|
454
|
+
try {
|
|
455
|
+
const { data } = await axios.get(`${config.baseUrl}/genre/${genre}?page=${page}`);
|
|
456
|
+
|
|
457
|
+
const $ = load(data);
|
|
458
|
+
|
|
459
|
+
const navSelector = 'div.pre-pagination > nav:nth-child(1) > ul:nth-child(1)';
|
|
460
|
+
|
|
461
|
+
result.hasNextPage = $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('active') : false;
|
|
462
|
+
|
|
463
|
+
$('.film_list-wrap > div.flw-item')
|
|
464
|
+
.each((i, el) => {
|
|
465
|
+
const resultItem: IMovieResult = {
|
|
466
|
+
id: $(el).find('div.film-poster > a').attr('href')?.slice(1) ?? '',
|
|
467
|
+
title: $(el).find('div.film-detail > h2 > a').attr('title') ?? '',
|
|
468
|
+
url: `${config.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`,
|
|
469
|
+
image: $(el).find('div.film-poster > img').attr('data-src'),
|
|
470
|
+
type:
|
|
471
|
+
$(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie'
|
|
472
|
+
? TvTypeEnum.MOVIE
|
|
473
|
+
: TvTypeEnum.TVSERIES,
|
|
474
|
+
};
|
|
475
|
+
const season = $(el)
|
|
476
|
+
.find('div.film-detail > div.fd-infor > span:nth-child(1)')
|
|
477
|
+
.text()
|
|
478
|
+
.replace('SS', '')
|
|
479
|
+
.trim();
|
|
480
|
+
const latestEpisode =
|
|
481
|
+
$(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().replace('EPS', '').trim() ?? null;
|
|
482
|
+
if (resultItem.type === TvTypeEnum.TVSERIES) {
|
|
483
|
+
resultItem.season = season;
|
|
484
|
+
resultItem.latestEpisode = latestEpisode;
|
|
485
|
+
} else {
|
|
486
|
+
resultItem.releaseDate = season;
|
|
487
|
+
resultItem.duration = latestEpisode;
|
|
488
|
+
}
|
|
489
|
+
result.results.push(resultItem);
|
|
490
|
+
})
|
|
491
|
+
.get();
|
|
492
|
+
|
|
493
|
+
return result;
|
|
494
|
+
} catch (err) {
|
|
495
|
+
throw new Error((err as Error).message);
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
// Return the functional provider object
|
|
500
|
+
return {
|
|
501
|
+
// Configuration
|
|
502
|
+
name: config.name,
|
|
503
|
+
get baseUrl() {
|
|
504
|
+
return config.baseUrl;
|
|
505
|
+
},
|
|
506
|
+
set baseUrl(value: string) {
|
|
507
|
+
config.baseUrl = value.startsWith('http') ? value : `http://${value}`;
|
|
508
|
+
},
|
|
509
|
+
logo: config.logo,
|
|
510
|
+
classPath: config.classPath,
|
|
511
|
+
supportedTypes,
|
|
512
|
+
|
|
513
|
+
// Core methods, pass only the necessary methods, dont pass helpers or unused methods
|
|
514
|
+
search,
|
|
515
|
+
fetchMediaInfo,
|
|
516
|
+
fetchEpisodeSources,
|
|
517
|
+
fetchEpisodeServers,
|
|
518
|
+
fetchRecentMovies,
|
|
519
|
+
fetchRecentTvShows,
|
|
520
|
+
fetchTrendingMovies,
|
|
521
|
+
fetchTrendingTvShows,
|
|
522
|
+
fetchByCountry,
|
|
523
|
+
fetchByGenre,
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
export type HiMoviesProviderInstance = ReturnType<typeof createHiMovies>;
|
|
528
|
+
|
|
529
|
+
export default createHiMovies;
|