react-native-consumet 1.0.0-rc.0 → 1.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/generated/java/com/consumet/NativeConsumetSpec.java +4 -0
- package/android/generated/jni/RNConsumetSpec-generated.cpp +6 -0
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI-generated.cpp +8 -0
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +9 -0
- package/android/src/main/java/com/consumet/ConsumetModule.kt +7 -0
- package/android/src/main/java/com/consumet/DdosGuardModule.kt +248 -189
- package/ios/generated/RNConsumetSpec/RNConsumetSpec-generated.mm +7 -0
- package/ios/generated/RNConsumetSpec/RNConsumetSpec.h +2 -0
- package/ios/generated/RNConsumetSpecJSI-generated.cpp +8 -0
- package/ios/generated/RNConsumetSpecJSI.h +9 -0
- package/lib/commonjs/NativeConsumet.ts +28 -26
- package/lib/commonjs/extension-registry.json +13 -13
- package/lib/commonjs/extractors/filemoon.js +2 -2
- package/lib/commonjs/extractors/kwik.js +60 -15
- package/lib/commonjs/extractors/kwik.js.map +1 -1
- package/lib/commonjs/extractors/megacloud.js +6 -6
- package/lib/commonjs/index.js +2 -11
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/types.js +4 -4
- package/lib/commonjs/models/video-extractor.js +4 -4
- package/lib/commonjs/providers/anime/animedrive.js +12 -12
- package/lib/commonjs/providers/anime/animekai.js +41 -41
- package/lib/commonjs/providers/anime/animepahe/animepahe.js +16 -15
- package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +12 -9
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animesuge/animesuge.js +78 -0
- package/lib/commonjs/providers/anime/animesuge/animesuge.js.map +1 -0
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js +312 -0
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js.map +1 -0
- package/lib/commonjs/providers/anime/animeunity.js +13 -13
- package/lib/commonjs/providers/anime/index.js +4 -4
- package/lib/commonjs/providers/anime/index.js.map +1 -1
- package/lib/commonjs/providers/anime/marin.js +12 -12
- package/lib/commonjs/providers/anime/zoro/create-zoro.js +2 -2
- package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/zoro.js +76 -74
- package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/commonjs/providers/manga/brmangas.js +3 -3
- package/lib/commonjs/providers/meta/anilist.js +91 -91
- package/lib/commonjs/providers/meta/mal.js +12 -12
- package/lib/commonjs/providers/meta/tmdb.js +21 -21
- package/lib/commonjs/providers/movies/himovies/create-himovies.js +16 -16
- package/lib/commonjs/providers/movies/himovies/himovies.js +16 -16
- package/lib/commonjs/providers/movies/multimovies.js +15 -15
- package/lib/commonjs/providers/movies/multistream/index.js +21 -20
- package/lib/commonjs/providers/movies/multistream/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/utils.js +142 -130
- package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
- package/lib/commonjs/utils/ExtractorManager.js +15 -15
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +2 -1
- package/lib/commonjs/utils/ProviderManager.js.map +1 -1
- package/lib/commonjs/utils/create-extractor-context.js +9 -1
- package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
- package/lib/commonjs/utils/create-provider-context.js +6 -2
- package/lib/commonjs/utils/create-provider-context.js.map +1 -1
- package/lib/commonjs/utils/extension-utils.js +44 -54
- package/lib/commonjs/utils/extension-utils.js.map +1 -1
- package/lib/commonjs/utils/index.js +2 -2
- package/lib/commonjs/utils/provider-maps.js +31 -0
- package/lib/commonjs/utils/provider-maps.js.map +1 -0
- package/lib/commonjs/utils/providers-list.js +4 -4
- package/lib/commonjs/utils/url-polyfill.js +4 -4
- package/lib/module/NativeConsumet.ts +28 -26
- package/lib/module/extension-registry.json +13 -13
- package/lib/module/extractors/filemoon.js +2 -2
- package/lib/module/extractors/kwik.js +60 -15
- package/lib/module/extractors/kwik.js.map +1 -1
- package/lib/module/extractors/megacloud.js +6 -6
- package/lib/module/index.js +3 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/types.js +4 -4
- package/lib/module/models/video-extractor.js +4 -4
- package/lib/module/providers/anime/animedrive.js +12 -12
- package/lib/module/providers/anime/animekai.js +41 -41
- package/lib/module/providers/anime/animepahe/animepahe.js +14 -14
- package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/module/providers/anime/animepahe/create-animepahe.js +13 -9
- package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/module/providers/anime/animesuge/animesuge.js +73 -0
- package/lib/module/providers/anime/animesuge/animesuge.js.map +1 -0
- package/lib/module/providers/anime/animesuge/create-animesuge.js +309 -0
- package/lib/module/providers/anime/animesuge/create-animesuge.js.map +1 -0
- package/lib/module/providers/anime/animeunity.js +13 -13
- package/lib/module/providers/anime/index.js +2 -2
- package/lib/module/providers/anime/index.js.map +1 -1
- package/lib/module/providers/anime/marin.js +12 -12
- package/lib/module/providers/anime/zoro/create-zoro.js +3 -2
- package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/module/providers/anime/zoro/zoro.js +74 -73
- package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/module/providers/manga/brmangas.js +3 -3
- package/lib/module/providers/meta/anilist.js +91 -91
- package/lib/module/providers/meta/mal.js +12 -12
- package/lib/module/providers/meta/tmdb.js +21 -21
- package/lib/module/providers/movies/himovies/create-himovies.js +16 -16
- package/lib/module/providers/movies/himovies/himovies.js +16 -16
- package/lib/module/providers/movies/multimovies.js +15 -15
- package/lib/module/providers/movies/multistream/index.js +21 -20
- package/lib/module/providers/movies/multistream/index.js.map +1 -1
- package/lib/module/providers/movies/multistream/utils.js +141 -129
- package/lib/module/providers/movies/multistream/utils.js.map +1 -1
- package/lib/module/utils/ExtractorManager.js +16 -16
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +2 -1
- package/lib/module/utils/ProviderManager.js.map +1 -1
- package/lib/module/utils/create-extractor-context.js +10 -1
- package/lib/module/utils/create-extractor-context.js.map +1 -1
- package/lib/module/utils/create-provider-context.js +8 -4
- package/lib/module/utils/create-provider-context.js.map +1 -1
- package/lib/module/utils/extension-utils.js +23 -33
- package/lib/module/utils/extension-utils.js.map +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/provider-maps.js +27 -0
- package/lib/module/utils/provider-maps.js.map +1 -0
- package/lib/module/utils/providers-list.js +4 -4
- package/lib/module/utils/url-polyfill.js +4 -4
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts +2 -0
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +6 -6
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts +8 -0
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/provider-context.d.ts +6 -2
- package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts +34 -0
- package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts +14 -0
- package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +2 -2
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +1 -20
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +27 -0
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -0
- package/lib/typescript/module/src/NativeConsumet.d.ts +2 -0
- package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +6 -6
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extractor-context.d.ts +8 -0
- package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/index.d.ts +2 -2
- package/lib/typescript/module/src/models/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/provider-context.d.ts +6 -2
- package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts +34 -0
- package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts +14 -0
- package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/index.d.ts +2 -2
- package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +2 -2
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/extension-utils.d.ts +1 -20
- package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/index.d.ts +2 -1
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/provider-maps.d.ts +27 -0
- package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -0
- package/package.json +6 -2
- package/src/NativeConsumet.ts +2 -0
- package/src/extension-registry.json +81 -81
- package/src/extractors/StreamP2P.ts +60 -60
- package/src/extractors/filemoon.ts +58 -58
- package/src/extractors/index.ts +41 -41
- package/src/extractors/kwik.ts +113 -50
- package/src/extractors/megacloud.ts +163 -163
- package/src/extractors/mixdrop.ts +31 -31
- package/src/extractors/mp4upload.ts +31 -31
- package/src/extractors/streamhub.ts +58 -58
- package/src/extractors/streamwish.ts +120 -120
- package/src/extractors/vidhide.ts +59 -59
- package/src/index.tsx +176 -175
- package/src/models/extension-manifest.ts +77 -77
- package/src/models/extractor-context.ts +55 -41
- package/src/models/index.ts +107 -106
- package/src/models/provider-context.ts +192 -182
- package/src/models/types.ts +531 -531
- package/src/models/video-extractor.ts +48 -48
- package/src/providers/anime/animedrive.ts +245 -245
- package/src/providers/anime/animekai.ts +627 -627
- package/src/providers/anime/animepahe/animepahe.ts +76 -76
- package/src/providers/anime/animepahe/create-animepahe.ts +350 -348
- package/src/providers/anime/animesuge/animesuge.ts +77 -0
- package/src/providers/anime/animesuge/create-animesuge.ts +327 -0
- package/src/providers/anime/animeunity.ts +216 -216
- package/src/providers/anime/index.ts +21 -21
- package/src/providers/anime/marin.ts +319 -319
- package/src/providers/anime/zoro/create-zoro.ts +656 -655
- package/src/providers/anime/zoro/zoro.ts +198 -197
- package/src/providers/index.ts +7 -7
- package/src/providers/manga/brmangas.ts +144 -144
- package/src/providers/meta/anilist.ts +2108 -2108
- package/src/providers/meta/mal.ts +635 -635
- package/src/providers/meta/tmdb.ts +470 -470
- package/src/providers/movies/himovies/create-himovies.ts +529 -529
- package/src/providers/movies/himovies/himovies.ts +90 -90
- package/src/providers/movies/index.ts +15 -15
- package/src/providers/movies/multimovies.ts +495 -495
- package/src/providers/movies/multistream/index.ts +232 -231
- package/src/providers/movies/multistream/utils.ts +147 -270
- package/src/utils/ExtractorManager.ts +311 -311
- package/src/utils/ProviderManager.ts +423 -424
- package/src/utils/create-extractor-context.ts +36 -22
- package/src/utils/create-provider-context.ts +117 -107
- package/src/utils/extension-utils.ts +105 -114
- package/src/utils/index.ts +96 -95
- package/src/utils/provider-maps.ts +31 -0
- package/src/utils/providers-list.ts +27 -27
- package/src/utils/url-polyfill.ts +642 -642
- package/src/utils/utils.ts +374 -374
package/src/models/index.ts
CHANGED
|
@@ -1,106 +1,107 @@
|
|
|
1
|
-
import BaseProvider from './base-provider';
|
|
2
|
-
import BaseParser from './base-parser';
|
|
3
|
-
import AnimeParser from './anime-parser';
|
|
4
|
-
import VideoExtractor, { type IVideoExtractor } from './video-extractor';
|
|
5
|
-
import MangaParser from './manga-parser';
|
|
6
|
-
import LightNovelParser from './lightnovel-parser';
|
|
7
|
-
import MovieParser from './movie-parser';
|
|
8
|
-
import type { ExtractorContext, ExtractorContextConfig } from './extractor-context';
|
|
9
|
-
import type { ProviderContext, ProviderConfig, ProviderContextConfig } from './provider-context';
|
|
10
|
-
import type { ExtensionManifest, ProviderType } from './extension-manifest';
|
|
11
|
-
import {
|
|
12
|
-
type IProviderStats,
|
|
13
|
-
type ISearch,
|
|
14
|
-
type IAnimeEpisode,
|
|
15
|
-
type IAnimeInfo,
|
|
16
|
-
type IAnimeResult,
|
|
17
|
-
type IEpisodeServer,
|
|
18
|
-
type IVideo,
|
|
19
|
-
StreamingServers,
|
|
20
|
-
MediaStatus,
|
|
21
|
-
SubOrDub,
|
|
22
|
-
type IMangaResult,
|
|
23
|
-
type IMangaChapter,
|
|
24
|
-
type IMangaInfo,
|
|
25
|
-
type ILightNovelResult,
|
|
26
|
-
type ILightNovelInfo,
|
|
27
|
-
type ILightNovelChapter,
|
|
28
|
-
type ILightNovelChapterContent,
|
|
29
|
-
type IMangaChapterPage,
|
|
30
|
-
TvType,
|
|
31
|
-
type IMovieEpisode,
|
|
32
|
-
type IMovieInfo,
|
|
33
|
-
type ISource,
|
|
34
|
-
type ISubtitle,
|
|
35
|
-
type IMovieResult,
|
|
36
|
-
type Intro,
|
|
37
|
-
Genres,
|
|
38
|
-
type INewsFeed,
|
|
39
|
-
Topics,
|
|
40
|
-
type INewsInfo,
|
|
41
|
-
type FuzzyDate,
|
|
42
|
-
type ITitle,
|
|
43
|
-
MediaFormat,
|
|
44
|
-
type ProxyConfig,
|
|
45
|
-
type IStaff,
|
|
46
|
-
WatchListType,
|
|
47
|
-
type AniZipEpisode,
|
|
48
|
-
type IMovieSeason,
|
|
49
|
-
} from './types';
|
|
50
|
-
|
|
51
|
-
export {
|
|
52
|
-
BaseProvider,
|
|
53
|
-
BaseParser,
|
|
54
|
-
AnimeParser,
|
|
55
|
-
VideoExtractor,
|
|
56
|
-
StreamingServers,
|
|
57
|
-
MediaStatus,
|
|
58
|
-
SubOrDub,
|
|
59
|
-
LightNovelParser,
|
|
60
|
-
MangaParser,
|
|
61
|
-
TvType,
|
|
62
|
-
MovieParser,
|
|
63
|
-
Genres,
|
|
64
|
-
Topics,
|
|
65
|
-
MediaFormat,
|
|
66
|
-
WatchListType,
|
|
67
|
-
};
|
|
68
|
-
export type {
|
|
69
|
-
IVideoExtractor,
|
|
70
|
-
IProviderStats,
|
|
71
|
-
IAnimeEpisode,
|
|
72
|
-
IAnimeInfo,
|
|
73
|
-
IAnimeResult,
|
|
74
|
-
IEpisodeServer,
|
|
75
|
-
IVideo,
|
|
76
|
-
IMangaResult,
|
|
77
|
-
IMangaChapter,
|
|
78
|
-
IMangaInfo,
|
|
79
|
-
ILightNovelResult,
|
|
80
|
-
ILightNovelInfo,
|
|
81
|
-
ILightNovelChapter,
|
|
82
|
-
ILightNovelChapterContent,
|
|
83
|
-
ISearch,
|
|
84
|
-
IMangaChapterPage,
|
|
85
|
-
IMovieEpisode,
|
|
86
|
-
IMovieInfo,
|
|
87
|
-
ISource,
|
|
88
|
-
ISubtitle,
|
|
89
|
-
IMovieResult,
|
|
90
|
-
Intro,
|
|
91
|
-
INewsFeed,
|
|
92
|
-
INewsInfo,
|
|
93
|
-
FuzzyDate,
|
|
94
|
-
ITitle,
|
|
95
|
-
ProxyConfig,
|
|
96
|
-
IStaff,
|
|
97
|
-
AniZipEpisode,
|
|
98
|
-
IMovieSeason,
|
|
99
|
-
ExtractorContext,
|
|
100
|
-
ExtractorContextConfig,
|
|
101
|
-
ProviderContextConfig,
|
|
102
|
-
ProviderContext,
|
|
103
|
-
ProviderConfig,
|
|
104
|
-
ExtensionManifest,
|
|
105
|
-
ProviderType,
|
|
106
|
-
|
|
1
|
+
import BaseProvider from './base-provider';
|
|
2
|
+
import BaseParser from './base-parser';
|
|
3
|
+
import AnimeParser from './anime-parser';
|
|
4
|
+
import VideoExtractor, { type IVideoExtractor } from './video-extractor';
|
|
5
|
+
import MangaParser from './manga-parser';
|
|
6
|
+
import LightNovelParser from './lightnovel-parser';
|
|
7
|
+
import MovieParser from './movie-parser';
|
|
8
|
+
import type { ExtractorContext, ExtractorContextConfig } from './extractor-context';
|
|
9
|
+
import type { ProviderContext, ProviderConfig, ProviderContextConfig } from './provider-context';
|
|
10
|
+
import type { ExtensionManifest, ProviderType, ExtractorInfo } from './extension-manifest';
|
|
11
|
+
import {
|
|
12
|
+
type IProviderStats,
|
|
13
|
+
type ISearch,
|
|
14
|
+
type IAnimeEpisode,
|
|
15
|
+
type IAnimeInfo,
|
|
16
|
+
type IAnimeResult,
|
|
17
|
+
type IEpisodeServer,
|
|
18
|
+
type IVideo,
|
|
19
|
+
StreamingServers,
|
|
20
|
+
MediaStatus,
|
|
21
|
+
SubOrDub,
|
|
22
|
+
type IMangaResult,
|
|
23
|
+
type IMangaChapter,
|
|
24
|
+
type IMangaInfo,
|
|
25
|
+
type ILightNovelResult,
|
|
26
|
+
type ILightNovelInfo,
|
|
27
|
+
type ILightNovelChapter,
|
|
28
|
+
type ILightNovelChapterContent,
|
|
29
|
+
type IMangaChapterPage,
|
|
30
|
+
TvType,
|
|
31
|
+
type IMovieEpisode,
|
|
32
|
+
type IMovieInfo,
|
|
33
|
+
type ISource,
|
|
34
|
+
type ISubtitle,
|
|
35
|
+
type IMovieResult,
|
|
36
|
+
type Intro,
|
|
37
|
+
Genres,
|
|
38
|
+
type INewsFeed,
|
|
39
|
+
Topics,
|
|
40
|
+
type INewsInfo,
|
|
41
|
+
type FuzzyDate,
|
|
42
|
+
type ITitle,
|
|
43
|
+
MediaFormat,
|
|
44
|
+
type ProxyConfig,
|
|
45
|
+
type IStaff,
|
|
46
|
+
WatchListType,
|
|
47
|
+
type AniZipEpisode,
|
|
48
|
+
type IMovieSeason,
|
|
49
|
+
} from './types';
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
BaseProvider,
|
|
53
|
+
BaseParser,
|
|
54
|
+
AnimeParser,
|
|
55
|
+
VideoExtractor,
|
|
56
|
+
StreamingServers,
|
|
57
|
+
MediaStatus,
|
|
58
|
+
SubOrDub,
|
|
59
|
+
LightNovelParser,
|
|
60
|
+
MangaParser,
|
|
61
|
+
TvType,
|
|
62
|
+
MovieParser,
|
|
63
|
+
Genres,
|
|
64
|
+
Topics,
|
|
65
|
+
MediaFormat,
|
|
66
|
+
WatchListType,
|
|
67
|
+
};
|
|
68
|
+
export type {
|
|
69
|
+
IVideoExtractor,
|
|
70
|
+
IProviderStats,
|
|
71
|
+
IAnimeEpisode,
|
|
72
|
+
IAnimeInfo,
|
|
73
|
+
IAnimeResult,
|
|
74
|
+
IEpisodeServer,
|
|
75
|
+
IVideo,
|
|
76
|
+
IMangaResult,
|
|
77
|
+
IMangaChapter,
|
|
78
|
+
IMangaInfo,
|
|
79
|
+
ILightNovelResult,
|
|
80
|
+
ILightNovelInfo,
|
|
81
|
+
ILightNovelChapter,
|
|
82
|
+
ILightNovelChapterContent,
|
|
83
|
+
ISearch,
|
|
84
|
+
IMangaChapterPage,
|
|
85
|
+
IMovieEpisode,
|
|
86
|
+
IMovieInfo,
|
|
87
|
+
ISource,
|
|
88
|
+
ISubtitle,
|
|
89
|
+
IMovieResult,
|
|
90
|
+
Intro,
|
|
91
|
+
INewsFeed,
|
|
92
|
+
INewsInfo,
|
|
93
|
+
FuzzyDate,
|
|
94
|
+
ITitle,
|
|
95
|
+
ProxyConfig,
|
|
96
|
+
IStaff,
|
|
97
|
+
AniZipEpisode,
|
|
98
|
+
IMovieSeason,
|
|
99
|
+
ExtractorContext,
|
|
100
|
+
ExtractorContextConfig,
|
|
101
|
+
ProviderContextConfig,
|
|
102
|
+
ProviderContext,
|
|
103
|
+
ProviderConfig,
|
|
104
|
+
ExtensionManifest,
|
|
105
|
+
ProviderType,
|
|
106
|
+
ExtractorInfo,
|
|
107
|
+
};
|
|
@@ -1,182 +1,192 @@
|
|
|
1
|
-
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import type { CheerioAPI } from 'cheerio';
|
|
3
|
-
import type AnimeParser from './anime-parser';
|
|
4
|
-
import type MovieParser from './movie-parser';
|
|
5
|
-
import type { ExtractorContext, ExtractorContextConfig } from './extractor-context';
|
|
6
|
-
import type MangaParser from './manga-parser';
|
|
7
|
-
import { StreamingServers, MediaFormat, MediaStatus, SubOrDub, WatchListType, TvType, Genres, Topics } from './types';
|
|
8
|
-
import type { ExtractorManager } from '../utils';
|
|
9
|
-
import type { PolyURL, PolyURLSearchParams } from '../utils/url-polyfill';
|
|
10
|
-
import type {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
proxyConfig?: any,
|
|
23
|
-
adapter?: any
|
|
24
|
-
) => {
|
|
25
|
-
extract: (url: URL) => Promise<any>;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
proxyConfig?: any,
|
|
29
|
-
adapter?: any
|
|
30
|
-
) => {
|
|
31
|
-
extract: (url: URL) => Promise<any>;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
) => {
|
|
40
|
-
extract: (url:
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
proxyConfig?: any,
|
|
44
|
-
adapter?: any
|
|
45
|
-
) => {
|
|
46
|
-
extract: (url: URL) => Promise<any>;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
proxyConfig?: any,
|
|
50
|
-
adapter?: any
|
|
51
|
-
) => {
|
|
52
|
-
extract: (url: URL) => Promise<any>;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
proxyConfig?: any,
|
|
56
|
-
adapter?: any
|
|
57
|
-
) => {
|
|
58
|
-
extract: (url: URL
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
) => {
|
|
67
|
-
extract: (url:
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
proxyConfig?: any,
|
|
71
|
-
adapter?: any
|
|
72
|
-
) => {
|
|
73
|
-
extract: (url: URL) => Promise<any>;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
proxyConfig?: any,
|
|
77
|
-
adapter?: any
|
|
78
|
-
) => {
|
|
79
|
-
extract: (url: URL
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
proxyConfig?: any,
|
|
83
|
-
adapter?: any
|
|
84
|
-
) => {
|
|
85
|
-
extract: (url: URL) => Promise<any>;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
proxyConfig?: any,
|
|
89
|
-
adapter?: any
|
|
90
|
-
) => {
|
|
91
|
-
extract: (url: URL) => Promise<any>;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
proxyConfig?: any,
|
|
95
|
-
adapter?: any
|
|
96
|
-
) => {
|
|
97
|
-
extract: (url: URL) => Promise<any>;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
proxyConfig?: any,
|
|
101
|
-
adapter?: any
|
|
102
|
-
) => {
|
|
103
|
-
extract: (url: URL) => Promise<any>;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
proxyConfig?: any,
|
|
107
|
-
adapter?: any
|
|
108
|
-
) => {
|
|
109
|
-
extract: (url: URL) => Promise<any>;
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
proxyConfig?: any,
|
|
113
|
-
adapter?: any
|
|
114
|
-
) => {
|
|
115
|
-
extract: (url: URL) => Promise<any>;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Custom
|
|
180
|
-
*/
|
|
181
|
-
|
|
182
|
-
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { CheerioAPI } from 'cheerio';
|
|
3
|
+
import type AnimeParser from './anime-parser';
|
|
4
|
+
import type MovieParser from './movie-parser';
|
|
5
|
+
import type { ExtractorContext, ExtractorContextConfig } from './extractor-context';
|
|
6
|
+
import type MangaParser from './manga-parser';
|
|
7
|
+
import { StreamingServers, MediaFormat, MediaStatus, SubOrDub, WatchListType, TvType, Genres, Topics } from './types';
|
|
8
|
+
import type { ExtractorManager } from '../utils';
|
|
9
|
+
import type { PolyURL, PolyURLSearchParams } from '../utils/url-polyfill';
|
|
10
|
+
import type {
|
|
11
|
+
bypassDdosGuard,
|
|
12
|
+
getDdosGuardCookiesWithWebView,
|
|
13
|
+
makeGetRequestWithWebView,
|
|
14
|
+
multiply,
|
|
15
|
+
deobfuscateScript,
|
|
16
|
+
} from '../NativeConsumet';
|
|
17
|
+
/**
|
|
18
|
+
* Extractor registry type based on your registered extractors
|
|
19
|
+
*/
|
|
20
|
+
export interface ExtractorRegistry {
|
|
21
|
+
AsianLoad: new (
|
|
22
|
+
proxyConfig?: any,
|
|
23
|
+
adapter?: any
|
|
24
|
+
) => {
|
|
25
|
+
extract: (url: URL, isAlt?: boolean) => Promise<any>;
|
|
26
|
+
};
|
|
27
|
+
Filemoon: new (
|
|
28
|
+
proxyConfig?: any,
|
|
29
|
+
adapter?: any
|
|
30
|
+
) => {
|
|
31
|
+
extract: (url: URL) => Promise<any>;
|
|
32
|
+
};
|
|
33
|
+
GogoCDN: new (
|
|
34
|
+
proxyConfig?: any,
|
|
35
|
+
adapter?: any
|
|
36
|
+
) => {
|
|
37
|
+
extract: (url: URL) => Promise<any>;
|
|
38
|
+
};
|
|
39
|
+
Kwik: (ctx?: ExtractorContext) => {
|
|
40
|
+
extract: (url: PolyURL, referer?: string) => Promise<any>;
|
|
41
|
+
};
|
|
42
|
+
MixDrop: new (
|
|
43
|
+
proxyConfig?: any,
|
|
44
|
+
adapter?: any
|
|
45
|
+
) => {
|
|
46
|
+
extract: (url: URL) => Promise<any>;
|
|
47
|
+
};
|
|
48
|
+
Mp4Player: new (
|
|
49
|
+
proxyConfig?: any,
|
|
50
|
+
adapter?: any
|
|
51
|
+
) => {
|
|
52
|
+
extract: (url: URL) => Promise<any>;
|
|
53
|
+
};
|
|
54
|
+
Mp4Upload: new (
|
|
55
|
+
proxyConfig?: any,
|
|
56
|
+
adapter?: any
|
|
57
|
+
) => {
|
|
58
|
+
extract: (url: URL) => Promise<any>;
|
|
59
|
+
};
|
|
60
|
+
RapidCloud: new (
|
|
61
|
+
proxyConfig?: any,
|
|
62
|
+
adapter?: any
|
|
63
|
+
) => {
|
|
64
|
+
extract: (url: URL, referer?: string) => Promise<any>;
|
|
65
|
+
};
|
|
66
|
+
MegaCloud: (ctx?: ExtractorContext) => {
|
|
67
|
+
extract: (url: PolyURL, referer?: string) => Promise<any>;
|
|
68
|
+
};
|
|
69
|
+
StreamHub: new (
|
|
70
|
+
proxyConfig?: any,
|
|
71
|
+
adapter?: any
|
|
72
|
+
) => {
|
|
73
|
+
extract: (url: URL) => Promise<any>;
|
|
74
|
+
};
|
|
75
|
+
StreamLare: new (
|
|
76
|
+
proxyConfig?: any,
|
|
77
|
+
adapter?: any
|
|
78
|
+
) => {
|
|
79
|
+
extract: (url: URL) => Promise<any>;
|
|
80
|
+
};
|
|
81
|
+
StreamSB: new (
|
|
82
|
+
proxyConfig?: any,
|
|
83
|
+
adapter?: any
|
|
84
|
+
) => {
|
|
85
|
+
extract: (url: URL, isAlt?: boolean) => Promise<any>;
|
|
86
|
+
};
|
|
87
|
+
StreamTape?: new (
|
|
88
|
+
proxyConfig?: any,
|
|
89
|
+
adapter?: any
|
|
90
|
+
) => {
|
|
91
|
+
extract: (url: URL) => Promise<any>;
|
|
92
|
+
};
|
|
93
|
+
StreamWish: new (
|
|
94
|
+
proxyConfig?: any,
|
|
95
|
+
adapter?: any
|
|
96
|
+
) => {
|
|
97
|
+
extract: (url: URL) => Promise<any>;
|
|
98
|
+
};
|
|
99
|
+
VidMoly: new (
|
|
100
|
+
proxyConfig?: any,
|
|
101
|
+
adapter?: any
|
|
102
|
+
) => {
|
|
103
|
+
extract: (url: URL) => Promise<any>;
|
|
104
|
+
};
|
|
105
|
+
VizCloud: new (
|
|
106
|
+
proxyConfig?: any,
|
|
107
|
+
adapter?: any
|
|
108
|
+
) => {
|
|
109
|
+
extract: (url: URL) => Promise<any>;
|
|
110
|
+
};
|
|
111
|
+
VidHide: new (
|
|
112
|
+
proxyConfig?: any,
|
|
113
|
+
adapter?: any
|
|
114
|
+
) => {
|
|
115
|
+
extract: (url: URL) => Promise<any>;
|
|
116
|
+
};
|
|
117
|
+
Voe: new (
|
|
118
|
+
proxyConfig?: any,
|
|
119
|
+
adapter?: any
|
|
120
|
+
) => {
|
|
121
|
+
extract: (url: URL) => Promise<any>;
|
|
122
|
+
};
|
|
123
|
+
MegaUp: new (ctx: ExtractorContext) => {
|
|
124
|
+
extract: (url: URL) => Promise<any>;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type ProviderConfig = {
|
|
129
|
+
name: string;
|
|
130
|
+
languages: string[] | string;
|
|
131
|
+
classPath: string;
|
|
132
|
+
baseUrl: string;
|
|
133
|
+
isNSFW: boolean;
|
|
134
|
+
logo: string;
|
|
135
|
+
isWorking?: boolean;
|
|
136
|
+
isDubAvailableSeparately?: boolean;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* ProviderContext:
|
|
141
|
+
* Passed into each provider factory function. Gives full access to platform-wide utils and extractors.
|
|
142
|
+
*/
|
|
143
|
+
export interface ProviderContext {
|
|
144
|
+
axios: AxiosInstance;
|
|
145
|
+
load: (html: string) => CheerioAPI;
|
|
146
|
+
USER_AGENT: string;
|
|
147
|
+
AnimeParser: typeof AnimeParser;
|
|
148
|
+
MovieParser: typeof MovieParser;
|
|
149
|
+
MangaParser: typeof MangaParser;
|
|
150
|
+
extractors: ExtractorRegistry;
|
|
151
|
+
extractorManager?: ExtractorManager;
|
|
152
|
+
PolyURL: typeof PolyURL;
|
|
153
|
+
PolyURLSearchParams: typeof PolyURLSearchParams;
|
|
154
|
+
createCustomBaseUrl: (defaultUrl: string, customUrl?: string) => string;
|
|
155
|
+
enums: {
|
|
156
|
+
StreamingServers: typeof StreamingServers;
|
|
157
|
+
MediaFormat: typeof MediaFormat;
|
|
158
|
+
MediaStatus: typeof MediaStatus;
|
|
159
|
+
SubOrDub: typeof SubOrDub;
|
|
160
|
+
WatchListType: typeof WatchListType;
|
|
161
|
+
TvType: typeof TvType;
|
|
162
|
+
Genres: typeof Genres;
|
|
163
|
+
Topics: typeof Topics;
|
|
164
|
+
};
|
|
165
|
+
NativeConsumet: {
|
|
166
|
+
getDdosGuardCookiesWithWebView: typeof getDdosGuardCookiesWithWebView;
|
|
167
|
+
makeGetRequestWithWebView: typeof makeGetRequestWithWebView;
|
|
168
|
+
multiply: typeof multiply;
|
|
169
|
+
bypassDdosGuard: typeof bypassDdosGuard;
|
|
170
|
+
deobfuscateScript: typeof deobfuscateScript;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Configuration options for creating a provider context
|
|
176
|
+
*/
|
|
177
|
+
export interface ProviderContextConfig extends ExtractorContextConfig {
|
|
178
|
+
/**
|
|
179
|
+
* Custom AnimeParser base class (optional) - for advanced use cases
|
|
180
|
+
*/
|
|
181
|
+
AnimeParser?: typeof AnimeParser;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Custom MovieParser base class (optional) - for advanced use cases
|
|
185
|
+
*/
|
|
186
|
+
MovieParser?: typeof MovieParser;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Custom MangaParser base class (optional) - for advanced use cases
|
|
190
|
+
*/
|
|
191
|
+
MangaParser?: typeof MangaParser;
|
|
192
|
+
}
|