react-native-consumet 1.5.0 → 1.6.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 +9 -0
- package/README.md +7 -0
- package/android/generated/jni/CMakeLists.txt +1 -9
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +65 -92
- package/ios/Consumet.h +1 -1
- package/ios/Consumet.mm +681 -7
- package/ios/generated/Package.swift +66 -0
- package/ios/generated/ReactAppDependencyProvider/RCTAppDependencyProvider.h +25 -0
- package/ios/generated/ReactAppDependencyProvider/RCTAppDependencyProvider.mm +40 -0
- package/ios/generated/ReactAppDependencyProvider/ReactAppDependencyProvider.podspec +34 -0
- package/ios/generated/ReactCodegen/RCTModuleProviders.h +16 -0
- package/ios/generated/ReactCodegen/RCTModuleProviders.mm +51 -0
- package/ios/generated/ReactCodegen/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/ios/generated/ReactCodegen/RCTModulesConformingToProtocolsProvider.mm +54 -0
- package/ios/generated/ReactCodegen/RCTThirdPartyComponentsProvider.h +16 -0
- package/ios/generated/ReactCodegen/RCTThirdPartyComponentsProvider.mm +30 -0
- package/ios/generated/ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.h +14 -0
- package/ios/generated/ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.mm +19 -0
- package/ios/generated/ReactCodegen/RNConsumetSpecJSI.h +98 -0
- package/ios/generated/ReactCodegen/ReactCodegen.podspec +114 -0
- package/lib/commonjs/extension-registry.json +80 -32
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js +11 -4
- package/lib/commonjs/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js +11 -11
- package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
- package/lib/commonjs/utils/ExtractorManager.js +13 -27
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +23 -33
- package/lib/commonjs/utils/ProviderManager.js.map +1 -1
- package/lib/module/extension-registry.json +80 -32
- package/lib/module/providers/anime/anikoto/create-anikoto.js +11 -4
- package/lib/module/providers/anime/anikoto/create-anikoto.js.map +1 -1
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js +11 -11
- package/lib/module/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
- package/lib/module/utils/ExtractorManager.js +13 -27
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +23 -33
- package/lib/module/utils/ProviderManager.js.map +1 -1
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts +4 -0
- package/lib/typescript/commonjs/src/models/extension-manifest.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +5 -4
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extension-manifest.d.ts +4 -0
- package/lib/typescript/module/src/models/extension-manifest.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts +1 -0
- package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts +5 -4
- package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/extension-registry.json +80 -32
- package/src/models/extension-manifest.ts +5 -0
- package/src/providers/anime/anikoto/create-anikoto.ts +10 -3
- package/src/providers/movies/vegamovies/create-vegamovies.ts +11 -11
- package/src/utils/ExtractorManager.ts +16 -27
- package/src/utils/ProviderManager.ts +26 -33
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI-generated.cpp +0 -75
- package/ios/generated/RNConsumetSpecJSI-generated.cpp +0 -75
- package/ios/generated/RNConsumetSpecJSI.h +0 -125
- /package/ios/generated/{RNConsumetSpec → ReactCodegen/RNConsumetSpec}/RNConsumetSpec-generated.mm +0 -0
- /package/ios/generated/{RNConsumetSpec → ReactCodegen/RNConsumetSpec}/RNConsumetSpec.h +0 -0
|
@@ -47,10 +47,6 @@ export declare class ProviderManager {
|
|
|
47
47
|
* Create models context
|
|
48
48
|
*/
|
|
49
49
|
private createModelsContext;
|
|
50
|
-
/**
|
|
51
|
-
* Create __awaiter helper for compatibility
|
|
52
|
-
*/
|
|
53
|
-
private createAwaiterHelper;
|
|
54
50
|
/**
|
|
55
51
|
* Validate provider instance based on category
|
|
56
52
|
*/
|
|
@@ -74,6 +70,11 @@ export declare class ProviderManager {
|
|
|
74
70
|
extensionId: string;
|
|
75
71
|
results: ISearch<IAnimeResult | IMovieResult>;
|
|
76
72
|
}>>;
|
|
73
|
+
/**
|
|
74
|
+
* Verify SHA-256 integrity of fetched code against the bundled registry hash.
|
|
75
|
+
* Throws if hashes don't match. Warns (but allows) if no hash is present in registry.
|
|
76
|
+
*/
|
|
77
|
+
private verifyCodeIntegrity;
|
|
77
78
|
}
|
|
78
79
|
export default ProviderManager;
|
|
79
80
|
//# sourceMappingURL=ProviderManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderManager.d.ts","sourceRoot":"","sources":["../../../../../src/utils/ProviderManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProviderManager.d.ts","sourceRoot":"","sources":["../../../../../src/utils/ProviderManager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC3G,OAAO,iBAAiB,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIzG,qBAAa,eAAe;IAC1B,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,gBAAgB,CAA0B;IAClD,OAAO,CAAC,iBAAiB,CAAwC;gBAErD,QAAQ,EAAE,OAAO,iBAAiB,EAAE,cAAc,GAAE,qBAA0B;IAK1F;;OAEG;IACH,OAAO,CAAC,YAAY;IAsBpB;;OAEG;IACH,sBAAsB,IAAI,iBAAiB,EAAE;IAI7C;;OAEG;IACH,uBAAuB,CAAC,QAAQ,EAAE,YAAY,GAAG,iBAAiB,EAAE;IAIpE;;OAEG;IACH,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB;IAkB5D;;OAEG;IACG,aAAa,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EACzD,WAAW,EAAE,CAAC,GACb,OAAO,CACR,CAAC,SAAS,aAAa,GACnB,YAAY,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GACxC,CAAC,SAAS,aAAa,GACrB,YAAY,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GACxC,KAAK,CACZ;IAmFD;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAwB/B;;OAEG;IACU,mBAAmB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EACtE,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,iBAAiB,GAAG;QAAE,EAAE,EAAE,CAAC,CAAA;KAAE,GACtC,OAAO,CACR,CAAC,SAAS,aAAa,GACnB,YAAY,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GACxC,CAAC,SAAS,aAAa,GACrB,YAAY,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GACxC,KAAK,CACZ;IA+DD;;OAEG;IACH,OAAO,CAAC,sBAAsB;IA4D9B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAyC3B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAmBhC;;OAEG;IACG,gBAAgB,CAAC,CAAC,SAAS,aAAa,EAAE,WAAW,EAAE,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAclH;;OAEG;IACG,gBAAgB,CAAC,CAAC,SAAS,aAAa,EAAE,WAAW,EAAE,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAclH;;OAEG;IACH,kBAAkB,IAAI,eAAe;IAIrC;;OAEG;IACG,qBAAqB,CACzB,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAAC,KAAK,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC,CAAA;KAAE,CAAC,CAAC;IAgBzF;;;OAGG;IACH,OAAO,CAAC,mBAAmB;CAY5B;AAED,eAAe,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-consumet",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "React Native library providing access to entertainment media information (anime, movies, manga, etc.) from multiple sources, adapting the Consumet API for mobile applications.",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -89,12 +89,12 @@
|
|
|
89
89
|
"@eslint/compat": "^1.2.7",
|
|
90
90
|
"@eslint/eslintrc": "^3.3.0",
|
|
91
91
|
"@eslint/js": "^9.22.0",
|
|
92
|
-
"@react-native-community/cli": "
|
|
93
|
-
"@react-native/eslint-config": "
|
|
92
|
+
"@react-native-community/cli": "20.2.0",
|
|
93
|
+
"@react-native/eslint-config": "0.87.1",
|
|
94
94
|
"@release-it/conventional-changelog": "8.0.2",
|
|
95
95
|
"@types/crypto-js": "^4.2.2",
|
|
96
96
|
"@types/jest": "^29.5.5",
|
|
97
|
-
"@types/react": "^19.
|
|
97
|
+
"@types/react": "^19.2.0",
|
|
98
98
|
"@types/string-similarity": "^4.0.2",
|
|
99
99
|
"babel-jest": "^29.7.0",
|
|
100
100
|
"commitlint": "^19.6.1",
|
|
@@ -107,14 +107,14 @@
|
|
|
107
107
|
"jest": "^29.7.0",
|
|
108
108
|
"lint-staged": "^16.1.5",
|
|
109
109
|
"prettier": "^3.0.3",
|
|
110
|
-
"react": "19.
|
|
111
|
-
"react-native": "0.
|
|
110
|
+
"react": "19.2.3",
|
|
111
|
+
"react-native": "0.87.1",
|
|
112
112
|
"react-native-builder-bob": "^0.38.3",
|
|
113
113
|
"release-it": "latest",
|
|
114
114
|
"ts-jest": "^29.3.1",
|
|
115
115
|
"ts-node": "^10.9.2",
|
|
116
116
|
"turbo": "^1.10.7",
|
|
117
|
-
"typescript": "^
|
|
117
|
+
"typescript": "^6.0.3"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
120
120
|
"react": "*",
|
|
@@ -3,42 +3,50 @@
|
|
|
3
3
|
{
|
|
4
4
|
"name": "MegaCloud",
|
|
5
5
|
"version": "1.3.0",
|
|
6
|
-
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/megacloud.js"
|
|
6
|
+
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/megacloud.js",
|
|
7
|
+
"sha256": "0fe05f158bb9dd5e1ab0b712da93dd0f6fbb4e9aa4249c88d4c84c24a279277f"
|
|
7
8
|
},
|
|
8
9
|
{
|
|
9
10
|
"name": "Kwik",
|
|
10
11
|
"version": "1.2.0",
|
|
11
|
-
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/kwik.js"
|
|
12
|
+
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/kwik.js",
|
|
13
|
+
"sha256": "12b8fc266aacd3fb7b62f35efeb2ed3253350dc1ced3d09412cc6d9ace4c8535"
|
|
12
14
|
},
|
|
13
15
|
{
|
|
14
16
|
"name": "MegaUp",
|
|
15
17
|
"version": "1.1.1",
|
|
16
|
-
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/megaup.js"
|
|
18
|
+
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/megaup.js",
|
|
19
|
+
"sha256": "aefc6985990a7a9ae8708cb0d934141e4c5d9b8201be4f8c3c0ccba1f076cded"
|
|
17
20
|
},
|
|
18
21
|
{
|
|
19
22
|
"name": "MegaPlay",
|
|
20
23
|
"version": "1.0.0",
|
|
21
|
-
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/megaplay.js"
|
|
24
|
+
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/megaplay.js",
|
|
25
|
+
"sha256": "222e366316354e6da9f409f569f28b8d994e5468a7ff730cc7ee8ec372558117"
|
|
22
26
|
},
|
|
23
27
|
{
|
|
24
28
|
"name": "GDFlix",
|
|
25
29
|
"version": "1.0.0",
|
|
26
|
-
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/gdflix.js"
|
|
30
|
+
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/gdflix.js",
|
|
31
|
+
"sha256": "ba20cec33538ed8946bab85c39722064b5ac55b54b7ae32bc31d28e535a5b8d9"
|
|
27
32
|
},
|
|
28
33
|
{
|
|
29
34
|
"name": "Gofile",
|
|
30
35
|
"version": "1.0.0",
|
|
31
|
-
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/gofile.js"
|
|
36
|
+
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/gofile.js",
|
|
37
|
+
"sha256": "fd83b60e120f9faaa3f7585249d995d8e1a748b79c6e8f4e2d3a0dd1e22f740e"
|
|
32
38
|
},
|
|
33
39
|
{
|
|
34
40
|
"name": "HubCloud",
|
|
35
41
|
"version": "1.0.0",
|
|
36
|
-
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/hubcloud.js"
|
|
42
|
+
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/hubcloud.js",
|
|
43
|
+
"sha256": "aa3d48b6cc4d0d7cec4ae1c2897f5fee5db55f6aec8323d730a00a858c27a0e7"
|
|
37
44
|
},
|
|
38
45
|
{
|
|
39
46
|
"name": "VidHide",
|
|
40
47
|
"version": "1.0.0",
|
|
41
|
-
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/vidhide.js"
|
|
48
|
+
"main": "https://raw.githubusercontent.com/uwumilabs/react-native-consumet/refs/heads/main/dist/extractors/vidhide.js",
|
|
49
|
+
"sha256": "156b64fb1902e9fee08626aa79e714efae1b41c2a4950b8650a16860fce2a847"
|
|
42
50
|
}
|
|
43
51
|
],
|
|
44
52
|
"extensions": [
|
|
@@ -56,15 +64,21 @@
|
|
|
56
64
|
"factoryName": "createAnimePahe",
|
|
57
65
|
"baseUrl": "https://animepahe.pw",
|
|
58
66
|
"logo": "https://animepahe.pw/web-app-manifest-512x512.png",
|
|
59
|
-
"languages": [
|
|
67
|
+
"languages": [
|
|
68
|
+
"en",
|
|
69
|
+
"ja"
|
|
70
|
+
],
|
|
60
71
|
"nsfw": false,
|
|
61
72
|
"status": "stable",
|
|
62
73
|
"lastUpdated": "2025-08-05T00:00:00Z",
|
|
63
|
-
"extractors": [
|
|
74
|
+
"extractors": [
|
|
75
|
+
"Kwik"
|
|
76
|
+
],
|
|
64
77
|
"subbed": true,
|
|
65
78
|
"dubbed": true,
|
|
66
79
|
"isSourceEmbed": true,
|
|
67
|
-
"haveMultiServers": false
|
|
80
|
+
"haveMultiServers": false,
|
|
81
|
+
"sha256": "21f402ce947b31b6897485281a8d826f161a6a5e1962df086585f48818363f4b"
|
|
68
82
|
},
|
|
69
83
|
{
|
|
70
84
|
"id": "animekai",
|
|
@@ -80,21 +94,27 @@
|
|
|
80
94
|
"factoryName": "createAnimeKai",
|
|
81
95
|
"baseUrl": "https://anikai.to",
|
|
82
96
|
"logo": "https://anikai.to/assets/uploads/37585a3ffa8ec292ee9e2255f3f63b48ceca17e5241280b3dc21.png",
|
|
83
|
-
"languages": [
|
|
97
|
+
"languages": [
|
|
98
|
+
"en",
|
|
99
|
+
"ja"
|
|
100
|
+
],
|
|
84
101
|
"nsfw": false,
|
|
85
102
|
"status": "deprecated",
|
|
86
103
|
"lastUpdated": "2025-08-05T00:00:00Z",
|
|
87
|
-
"extractors": [
|
|
104
|
+
"extractors": [
|
|
105
|
+
"MegaUp"
|
|
106
|
+
],
|
|
88
107
|
"subbed": true,
|
|
89
108
|
"dubbed": true,
|
|
90
109
|
"isSourceEmbed": true,
|
|
91
|
-
"haveMultiServers": true
|
|
110
|
+
"haveMultiServers": true,
|
|
111
|
+
"sha256": "b97e5912fc63c10dcb3387eb9ccf770d2861dff6d3ef19a10a5f1f5524dd6e4d"
|
|
92
112
|
},
|
|
93
113
|
{
|
|
94
114
|
"id": "anikoto",
|
|
95
115
|
"name": "AniKoto",
|
|
96
116
|
"description": "High-quality anime streaming from AniKoto with multiple servers and subtitles",
|
|
97
|
-
"version": "1.
|
|
117
|
+
"version": "1.1.0",
|
|
98
118
|
"author": {
|
|
99
119
|
"name": "RNConsumet Team",
|
|
100
120
|
"url": "https://github.com/uwumilabs"
|
|
@@ -104,15 +124,20 @@
|
|
|
104
124
|
"factoryName": "createAniKoto",
|
|
105
125
|
"baseUrl": "https://anikototv.to",
|
|
106
126
|
"logo": "https://anikototv.to/favicon-32x32.png",
|
|
107
|
-
"languages": [
|
|
127
|
+
"languages": [
|
|
128
|
+
"en"
|
|
129
|
+
],
|
|
108
130
|
"nsfw": false,
|
|
109
131
|
"status": "stable",
|
|
110
132
|
"lastUpdated": "2026-09-12T00:00:00Z",
|
|
111
|
-
"extractors": [
|
|
133
|
+
"extractors": [
|
|
134
|
+
"MegaPlay"
|
|
135
|
+
],
|
|
112
136
|
"subbed": true,
|
|
113
137
|
"dubbed": true,
|
|
114
138
|
"isSourceEmbed": true,
|
|
115
|
-
"haveMultiServers": true
|
|
139
|
+
"haveMultiServers": true,
|
|
140
|
+
"sha256": "9ef371b7401343eae60cac0936fd82de9d080a28d945337121f6f83420e532a9"
|
|
116
141
|
},
|
|
117
142
|
{
|
|
118
143
|
"id": "anineko",
|
|
@@ -128,15 +153,21 @@
|
|
|
128
153
|
"factoryName": "createAniNeko",
|
|
129
154
|
"baseUrl": "https://anineko.to",
|
|
130
155
|
"logo": "https://anineko.to/favicon.ico",
|
|
131
|
-
"languages": [
|
|
156
|
+
"languages": [
|
|
157
|
+
"en",
|
|
158
|
+
"ja"
|
|
159
|
+
],
|
|
132
160
|
"nsfw": false,
|
|
133
161
|
"status": "stable",
|
|
134
162
|
"lastUpdated": "2026-09-13T00:00:00Z",
|
|
135
|
-
"extractors": [
|
|
163
|
+
"extractors": [
|
|
164
|
+
"VidHide"
|
|
165
|
+
],
|
|
136
166
|
"subbed": true,
|
|
137
167
|
"dubbed": true,
|
|
138
168
|
"isSourceEmbed": true,
|
|
139
|
-
"haveMultiServers": true
|
|
169
|
+
"haveMultiServers": true,
|
|
170
|
+
"sha256": "0f27a6466d3a1c0ed802bd77d48d349467a36d7e8e9249055269385293f22dfd"
|
|
140
171
|
},
|
|
141
172
|
{
|
|
142
173
|
"id": "multimovies",
|
|
@@ -152,13 +183,19 @@
|
|
|
152
183
|
"factoryName": "createMultiMovies",
|
|
153
184
|
"baseUrl": "https://multimovies.center",
|
|
154
185
|
"logo": "https://multimovies.center/wp-content/uploads/2024/01/cropped-CompressJPEG.online_512x512_image.png",
|
|
155
|
-
"languages": [
|
|
186
|
+
"languages": [
|
|
187
|
+
"all"
|
|
188
|
+
],
|
|
156
189
|
"nsfw": false,
|
|
157
190
|
"status": "deprecated",
|
|
158
191
|
"lastUpdated": "2025-08-05T00:00:00Z",
|
|
159
|
-
"extractors": [
|
|
192
|
+
"extractors": [
|
|
193
|
+
"StreamWish",
|
|
194
|
+
"VidHide"
|
|
195
|
+
],
|
|
160
196
|
"isSourceEmbed": true,
|
|
161
|
-
"haveMultiServers": true
|
|
197
|
+
"haveMultiServers": true,
|
|
198
|
+
"sha256": "e1da462edda62e3593ca9ef31fbeaf50a2600c2d73e042818847ee39d603a20d"
|
|
162
199
|
},
|
|
163
200
|
{
|
|
164
201
|
"id": "yflix",
|
|
@@ -174,19 +211,24 @@
|
|
|
174
211
|
"factoryName": "createYFlix",
|
|
175
212
|
"baseUrl": "https://yflix.to",
|
|
176
213
|
"logo": "https://yflix.to/assets/uploads/2f505f3de3c99889c1a72557f3e3714fc0c457b0.png",
|
|
177
|
-
"languages": [
|
|
214
|
+
"languages": [
|
|
215
|
+
"all"
|
|
216
|
+
],
|
|
178
217
|
"nsfw": false,
|
|
179
218
|
"status": "deprecated",
|
|
180
219
|
"lastUpdated": "2025-08-05T00:00:00Z",
|
|
181
|
-
"extractors": [
|
|
220
|
+
"extractors": [
|
|
221
|
+
"MegaUp"
|
|
222
|
+
],
|
|
182
223
|
"isSourceEmbed": true,
|
|
183
|
-
"haveMultiServers": true
|
|
224
|
+
"haveMultiServers": true,
|
|
225
|
+
"sha256": "565ccb26748917ac0d1754d9e9680ead69005d49a1b549733105e6c47865378e"
|
|
184
226
|
},
|
|
185
227
|
{
|
|
186
228
|
"id": "vegamovies",
|
|
187
229
|
"name": "VegaMovies",
|
|
188
230
|
"description": "Bollywood, Hollywood and Dual Audio Movies and TV shows streaming from VegaMovies",
|
|
189
|
-
"version": "1.0.
|
|
231
|
+
"version": "1.0.1",
|
|
190
232
|
"author": {
|
|
191
233
|
"name": "RNConsumet Team",
|
|
192
234
|
"url": "https://github.com/uwumilabs"
|
|
@@ -196,13 +238,19 @@
|
|
|
196
238
|
"factoryName": "createVegaMovies",
|
|
197
239
|
"baseUrl": "https://new2.vegamovies.futbol",
|
|
198
240
|
"logo": "https://new2.vegamovies.futbol/images/favicon-32x32.png",
|
|
199
|
-
"languages": [
|
|
241
|
+
"languages": [
|
|
242
|
+
"all"
|
|
243
|
+
],
|
|
200
244
|
"nsfw": false,
|
|
201
245
|
"status": "alpha",
|
|
202
246
|
"lastUpdated": "2026-09-12T00:00:00Z",
|
|
203
|
-
"extractors": [
|
|
247
|
+
"extractors": [
|
|
248
|
+
"HubCloud",
|
|
249
|
+
"GDFlix"
|
|
250
|
+
],
|
|
204
251
|
"isSourceEmbed": false,
|
|
205
|
-
"haveMultiServers": true
|
|
252
|
+
"haveMultiServers": true,
|
|
253
|
+
"sha256": "6dbe46ba7c1e034362065f45ed0156243cd91e026f9f874aa64bf64b12639f93"
|
|
206
254
|
}
|
|
207
255
|
]
|
|
208
|
-
}
|
|
256
|
+
}
|
|
@@ -9,6 +9,8 @@ export interface ExtractorInfo {
|
|
|
9
9
|
version: string;
|
|
10
10
|
/**github url path */
|
|
11
11
|
main: string;
|
|
12
|
+
/** SHA-256 hex digest of the compiled JS file for integrity verification */
|
|
13
|
+
sha256?: string;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* Extension manifest interface for defining extension metadata
|
|
@@ -42,6 +44,9 @@ export interface ExtensionManifest {
|
|
|
42
44
|
/** Factory function names exported by this extension */
|
|
43
45
|
factoryName: string;
|
|
44
46
|
|
|
47
|
+
/** SHA-256 hex digest of the compiled JS file for integrity verification */
|
|
48
|
+
sha256?: string;
|
|
49
|
+
|
|
45
50
|
/** Homepage URL */
|
|
46
51
|
baseUrl: string;
|
|
47
52
|
|
|
@@ -465,12 +465,16 @@ function createAniKoto(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
465
465
|
const epHtml = epRes.data?.result || epRes.data;
|
|
466
466
|
const $ep = load(epHtml);
|
|
467
467
|
|
|
468
|
-
$ep('li
|
|
469
|
-
const
|
|
468
|
+
$ep('li').each((_, li) => {
|
|
469
|
+
const listItem = $ep(li);
|
|
470
|
+
const anchor = listItem.find('a').first();
|
|
470
471
|
const dataIds = anchor.attr('data-ids') || anchor.attr('data-id') || '';
|
|
471
472
|
const numAttr = anchor.attr('data-num') || anchor.attr('data-slug') || anchor.find('b').text().trim();
|
|
472
473
|
const num = parseInt(numAttr, 10) || 1;
|
|
473
|
-
const epTitle = anchor.find('.d-title').text().trim() || `Episode ${num}`;
|
|
474
|
+
const epTitle = listItem.attr('title') || anchor.find('.d-title').text().trim() || `Episode ${num}`;
|
|
475
|
+
const isFiller = anchor.hasClass('filler');
|
|
476
|
+
const isSubbed = anchor.attr('data-sub') === '1';
|
|
477
|
+
const isDubbed = anchor.attr('data-dub') === '1';
|
|
474
478
|
|
|
475
479
|
if (dataIds) {
|
|
476
480
|
episodes.push({
|
|
@@ -478,6 +482,9 @@ function createAniKoto(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
478
482
|
number: num,
|
|
479
483
|
title: epTitle,
|
|
480
484
|
url: `${config.baseUrl}/watch/${animeSlug}/ep-${num}`,
|
|
485
|
+
isFiller,
|
|
486
|
+
isSubbed,
|
|
487
|
+
isDubbed,
|
|
481
488
|
});
|
|
482
489
|
}
|
|
483
490
|
});
|
|
@@ -240,8 +240,8 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
240
240
|
*/
|
|
241
241
|
const fetchMediaInfo = async (mediaId: string): Promise<IMovieInfo> => {
|
|
242
242
|
let fullUrl = mediaId;
|
|
243
|
-
if (!fullUrl
|
|
244
|
-
fullUrl = `${config.baseUrl}/${mediaId.replace(/^\//, '')}`;
|
|
243
|
+
if (!fullUrl?.startsWith('http')) {
|
|
244
|
+
fullUrl = `${config.baseUrl}/${(mediaId ?? '').replace(/^\//, '')}`;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
const cleanId = fullUrl.replace(/^https?:\/\/[^/]+\//, '').replace(/^\/|\/$/g, '');
|
|
@@ -277,7 +277,7 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
277
277
|
$('.entry-content img[data-src]').attr('data-src') ||
|
|
278
278
|
$('.entry-content img').first().attr('src') ||
|
|
279
279
|
'';
|
|
280
|
-
if (image
|
|
280
|
+
if (image?.startsWith('//')) {
|
|
281
281
|
image = `https:${image}`;
|
|
282
282
|
}
|
|
283
283
|
movieInfo.image = image;
|
|
@@ -361,7 +361,7 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
const btnHref = btn.attr('href');
|
|
364
|
-
if (btnHref && btnHref
|
|
364
|
+
if (btnHref && btnHref?.startsWith('http')) {
|
|
365
365
|
seasonPacks.push({
|
|
366
366
|
title: blockText,
|
|
367
367
|
season: seasonNum,
|
|
@@ -429,7 +429,7 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
429
429
|
nextP.find('.btn-outline').attr('href') ||
|
|
430
430
|
nextP.find('a[href]').first().attr('href');
|
|
431
431
|
|
|
432
|
-
if (link && link
|
|
432
|
+
if (link && link?.startsWith('http') && !eps.some((e) => e.url === link)) {
|
|
433
433
|
eps.push({
|
|
434
434
|
id: link,
|
|
435
435
|
title: epTitle,
|
|
@@ -488,7 +488,7 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
488
488
|
: nextP.find('.dwd-button, .btn-outline').first().parent('a');
|
|
489
489
|
|
|
490
490
|
const btnHref = btn.attr('href');
|
|
491
|
-
if (btnHref && btnHref
|
|
491
|
+
if (btnHref && btnHref?.startsWith('http') && !episodesList.some((e) => e.url === btnHref)) {
|
|
492
492
|
count++;
|
|
493
493
|
episodesList.push({
|
|
494
494
|
id: btnHref,
|
|
@@ -504,7 +504,7 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
504
504
|
if (episodesList.length === 0) {
|
|
505
505
|
$('a[href*="nexdrive.fit"], a[href*="vcloud"], a[href*="hubcloud"]').each((i, el) => {
|
|
506
506
|
const href = $(el).attr('href');
|
|
507
|
-
if (href && href
|
|
507
|
+
if (href && href?.startsWith('http') && !episodesList.some((e) => e.url === href)) {
|
|
508
508
|
episodesList.push({
|
|
509
509
|
id: href,
|
|
510
510
|
title: `${movieInfo.title} Option ${i + 1}`,
|
|
@@ -546,7 +546,7 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
546
546
|
const servers: IEpisodeServer[] = [];
|
|
547
547
|
|
|
548
548
|
let resolvedUrl = episodeId;
|
|
549
|
-
if (!resolvedUrl
|
|
549
|
+
if (!resolvedUrl?.startsWith('http')) {
|
|
550
550
|
try {
|
|
551
551
|
const info = await fetchMediaInfo(episodeId);
|
|
552
552
|
const firstEp = info.episodes?.[0];
|
|
@@ -556,7 +556,7 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
556
556
|
} catch {}
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
-
if (!resolvedUrl
|
|
559
|
+
if (!resolvedUrl?.startsWith('http')) {
|
|
560
560
|
return [{ name: 'HubCloud', url: episodeId }];
|
|
561
561
|
}
|
|
562
562
|
|
|
@@ -653,7 +653,7 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
653
653
|
let resolvedUrl = episodeId;
|
|
654
654
|
|
|
655
655
|
// If episodeId is not an HTTP URL, resolve via fetchMediaInfo
|
|
656
|
-
if (!resolvedUrl
|
|
656
|
+
if (!resolvedUrl?.startsWith('http')) {
|
|
657
657
|
const info = await fetchMediaInfo(episodeId);
|
|
658
658
|
const firstEp = info.episodes?.[0];
|
|
659
659
|
if (firstEp?.url) {
|
|
@@ -739,7 +739,7 @@ export function createVegaMovies(ctx: ProviderContext, customBaseURL?: string) {
|
|
|
739
739
|
);
|
|
740
740
|
|
|
741
741
|
const fpStreamUrl = fpRes2.data?.data?.[0];
|
|
742
|
-
if (fpStreamUrl && fpStreamUrl
|
|
742
|
+
if (fpStreamUrl && fpStreamUrl?.startsWith('http')) {
|
|
743
743
|
extraSources.push({
|
|
744
744
|
url: fpStreamUrl,
|
|
745
745
|
server: 'Filepress',
|
|
@@ -199,6 +199,9 @@ export class ExtractorManager {
|
|
|
199
199
|
}
|
|
200
200
|
const extractorCode = await response.text();
|
|
201
201
|
|
|
202
|
+
// Integrity check — reject if hash doesn't match the bundled registry
|
|
203
|
+
this.verifyCodeIntegrity(extractorCode, metadata.sha256, metadata.name as string);
|
|
204
|
+
|
|
202
205
|
// Execute the extractor code
|
|
203
206
|
const extractorInstance = await this.executeExtractorCode(extractorCode, metadata);
|
|
204
207
|
|
|
@@ -243,7 +246,6 @@ export class ExtractorManager {
|
|
|
243
246
|
const fetch = context.fetch;
|
|
244
247
|
const URL = context.URL;
|
|
245
248
|
const URLSearchParams = context.URLSearchParams;
|
|
246
|
-
const __awaiter = context.__awaiter;
|
|
247
249
|
const axios = context.axios;
|
|
248
250
|
const load = context.load;
|
|
249
251
|
const CryptoJS = context.CryptoJS;
|
|
@@ -368,32 +370,6 @@ export class ExtractorManager {
|
|
|
368
370
|
throw new Error(`fetch failed: ${error.message || error}`);
|
|
369
371
|
}
|
|
370
372
|
},
|
|
371
|
-
__awaiter: (thisArg: any, _arguments: any, P: any, generator: any) => {
|
|
372
|
-
function adopt(value: any) {
|
|
373
|
-
return value instanceof P ? value : new P((resolve: any) => resolve(value));
|
|
374
|
-
}
|
|
375
|
-
return new (P || (P = Promise))((resolve: any, reject: any) => {
|
|
376
|
-
function fulfilled(value: any) {
|
|
377
|
-
try {
|
|
378
|
-
step(generator.next(value));
|
|
379
|
-
} catch (e) {
|
|
380
|
-
reject(e);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
function rejected(value: any) {
|
|
384
|
-
try {
|
|
385
|
-
step(generator.throw(value));
|
|
386
|
-
} catch (e) {
|
|
387
|
-
reject(e);
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
function step(result: any) {
|
|
391
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
392
|
-
}
|
|
393
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
394
|
-
});
|
|
395
|
-
},
|
|
396
|
-
// Provide extractor context for context-aware extractors
|
|
397
373
|
axios: extractorContext.axios,
|
|
398
374
|
load: extractorContext.load,
|
|
399
375
|
CryptoJS,
|
|
@@ -402,6 +378,19 @@ export class ExtractorManager {
|
|
|
402
378
|
URLSearchParams: extractorContext.PolyURLSearchParams,
|
|
403
379
|
};
|
|
404
380
|
}
|
|
381
|
+
|
|
382
|
+
private verifyCodeIntegrity(code: string, expectedHash: string | undefined, id: string): void {
|
|
383
|
+
if (!expectedHash) {
|
|
384
|
+
console.warn(`⚠️ No integrity hash for '${id}' — skipping verification`);
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
const actual = CryptoJS.SHA256(code).toString(CryptoJS.enc.Hex);
|
|
388
|
+
if (actual !== expectedHash) {
|
|
389
|
+
throw new Error(
|
|
390
|
+
`Integrity check failed for '${id}': expected ${expectedHash.slice(0, 12)}… got ${actual.slice(0, 12)}…`
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
405
394
|
}
|
|
406
395
|
|
|
407
396
|
export default ExtractorManager;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import CryptoJS from 'crypto-js';
|
|
1
2
|
import createProviderContext from './create-provider-context';
|
|
2
3
|
import type { ProviderContext } from '../models/provider-context';
|
|
3
4
|
import { type IAnimeResult, type IMovieResult, type ISearch, type ProviderContextConfig } from '../models';
|
|
@@ -5,6 +6,8 @@ import extensionRegistry from '../extension-registry.json';
|
|
|
5
6
|
import type { ExtensionManifest, ProviderType } from '../models/extension-manifest';
|
|
6
7
|
import { animeProviders, movieProviders, type AnimeProvider, type MovieProvider } from './provider-maps';
|
|
7
8
|
|
|
9
|
+
const FACTORY_NAME_RE = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
10
|
+
|
|
8
11
|
export class ProviderManager {
|
|
9
12
|
private providerContext: ProviderContext;
|
|
10
13
|
private loadedExtensions = new Map<string, any>();
|
|
@@ -125,11 +128,17 @@ export class ProviderManager {
|
|
|
125
128
|
}
|
|
126
129
|
const providerCode = await response.text();
|
|
127
130
|
|
|
131
|
+
// Integrity check — reject if hash doesn't match the bundled registry
|
|
132
|
+
this.verifyCodeIntegrity(providerCode, metadata.sha256, extensionId as string);
|
|
133
|
+
|
|
128
134
|
// Execute the provider code
|
|
129
135
|
const factoryName = metadata.factoryName; // Use factory name directly
|
|
130
136
|
if (!factoryName) {
|
|
131
137
|
throw new Error(`No factory function available for extension ${extensionId}`);
|
|
132
138
|
}
|
|
139
|
+
if (!FACTORY_NAME_RE.test(factoryName)) {
|
|
140
|
+
throw new Error(`Invalid factoryName '${factoryName}' for extension '${extensionId}'`);
|
|
141
|
+
}
|
|
133
142
|
let providerInstance = await this.executeProviderCode(
|
|
134
143
|
providerCode,
|
|
135
144
|
factoryName,
|
|
@@ -224,7 +233,6 @@ export class ProviderManager {
|
|
|
224
233
|
const Promise = context.Promise;
|
|
225
234
|
const Object = context.Object;
|
|
226
235
|
const fetch = context.fetch;
|
|
227
|
-
const __awaiter = context.__awaiter;
|
|
228
236
|
|
|
229
237
|
try {
|
|
230
238
|
${code}
|
|
@@ -326,7 +334,6 @@ export class ProviderManager {
|
|
|
326
334
|
Promise,
|
|
327
335
|
Object,
|
|
328
336
|
fetch: customFetch,
|
|
329
|
-
__awaiter: this.createAwaiterHelper(),
|
|
330
337
|
URL: this.providerContext.PolyURL,
|
|
331
338
|
URLSearchParams: this.providerContext.PolyURLSearchParams,
|
|
332
339
|
};
|
|
@@ -376,37 +383,6 @@ export class ProviderManager {
|
|
|
376
383
|
};
|
|
377
384
|
}
|
|
378
385
|
|
|
379
|
-
/**
|
|
380
|
-
* Create __awaiter helper for compatibility
|
|
381
|
-
*/
|
|
382
|
-
private createAwaiterHelper() {
|
|
383
|
-
return (thisArg: any, _arguments: any, P: any, generator: any) => {
|
|
384
|
-
function adopt(value: any) {
|
|
385
|
-
return value instanceof P ? value : new P((resolve: any) => resolve(value));
|
|
386
|
-
}
|
|
387
|
-
return new (P || (P = Promise))((resolve: any, reject: any) => {
|
|
388
|
-
function fulfilled(value: any) {
|
|
389
|
-
try {
|
|
390
|
-
step(generator.next(value));
|
|
391
|
-
} catch (e) {
|
|
392
|
-
reject(e);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
function rejected(value: any) {
|
|
396
|
-
try {
|
|
397
|
-
step(generator.throw(value));
|
|
398
|
-
} catch (e) {
|
|
399
|
-
reject(e);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
function step(result: any) {
|
|
403
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
404
|
-
}
|
|
405
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
406
|
-
});
|
|
407
|
-
};
|
|
408
|
-
}
|
|
409
|
-
|
|
410
386
|
/**
|
|
411
387
|
* Validate provider instance based on category
|
|
412
388
|
*/
|
|
@@ -492,6 +468,23 @@ export class ProviderManager {
|
|
|
492
468
|
|
|
493
469
|
return Promise.all(searchPromises);
|
|
494
470
|
}
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Verify SHA-256 integrity of fetched code against the bundled registry hash.
|
|
474
|
+
* Throws if hashes don't match. Warns (but allows) if no hash is present in registry.
|
|
475
|
+
*/
|
|
476
|
+
private verifyCodeIntegrity(code: string, expectedHash: string | undefined, id: string): void {
|
|
477
|
+
if (!expectedHash) {
|
|
478
|
+
console.warn(`⚠️ No integrity hash for '${id}' — skipping verification`);
|
|
479
|
+
return;
|
|
480
|
+
}
|
|
481
|
+
const actual = CryptoJS.SHA256(code).toString(CryptoJS.enc.Hex);
|
|
482
|
+
if (actual !== expectedHash) {
|
|
483
|
+
throw new Error(
|
|
484
|
+
`Integrity check failed for '${id}': expected ${expectedHash.slice(0, 12)}… got ${actual.slice(0, 12)}…`
|
|
485
|
+
);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
495
488
|
}
|
|
496
489
|
|
|
497
490
|
export default ProviderManager;
|