react-native-consumet 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +4 -0
  2. package/android/src/main/java/com/consumet/ConsumetModule.kt +67 -39
  3. package/lib/commonjs/extractors/megaup.js +51 -27
  4. package/lib/commonjs/extractors/megaup.js.map +1 -1
  5. package/lib/commonjs/providers/anime/animepahe.js.map +1 -1
  6. package/lib/commonjs/providers/meta/anilist.js.map +1 -1
  7. package/lib/module/extractors/megaup.js +51 -27
  8. package/lib/module/extractors/megaup.js.map +1 -1
  9. package/lib/module/providers/anime/animepahe.js.map +1 -1
  10. package/lib/module/providers/meta/anilist.js.map +1 -1
  11. package/lib/typescript/commonjs/src/extractors/megaup.d.ts +8 -1
  12. package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +1 -1
  13. package/lib/typescript/commonjs/src/providers/anime/animepahe.d.ts.map +1 -1
  14. package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
  15. package/lib/typescript/module/src/extractors/megaup.d.ts +8 -1
  16. package/lib/typescript/module/src/extractors/megaup.d.ts.map +1 -1
  17. package/lib/typescript/module/src/providers/anime/animepahe.d.ts.map +1 -1
  18. package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
  19. package/package.json +191 -192
  20. package/src/extractors/megaup.ts +59 -103
  21. package/src/providers/anime/animepahe.ts +0 -1
  22. package/src/providers/meta/anilist.ts +0 -3
  23. package/android/src/main/assets/crypto-js.js +0 -1
  24. package/android/src/main/assets/megacloud.decodedpng.js +0 -606
  25. package/android/src/main/assets/megacloud.getsrcs.js +0 -714
  26. package/lib/commonjs/extractors/megacloud/megacloud.decodedpng.js +0 -10
  27. package/lib/commonjs/extractors/megacloud/megacloud.decodedpng.js.map +0 -1
  28. package/lib/commonjs/extractors/megacloud/megacloud.getsrcs.js +0 -864
  29. package/lib/commonjs/extractors/megacloud/megacloud.getsrcs.js.map +0 -1
  30. package/lib/module/extractors/megacloud/megacloud.decodedpng.js +0 -6
  31. package/lib/module/extractors/megacloud/megacloud.decodedpng.js.map +0 -1
  32. package/lib/module/extractors/megacloud/megacloud.getsrcs.js +0 -864
  33. package/lib/module/extractors/megacloud/megacloud.getsrcs.js.map +0 -1
  34. package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.decodedpng.d.ts +0 -2
  35. package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.decodedpng.d.ts.map +0 -1
  36. package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.getsrcs.d.ts +0 -1
  37. package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.getsrcs.d.ts.map +0 -1
  38. package/lib/typescript/module/src/extractors/megacloud/megacloud.decodedpng.d.ts +0 -2
  39. package/lib/typescript/module/src/extractors/megacloud/megacloud.decodedpng.d.ts.map +0 -1
  40. package/lib/typescript/module/src/extractors/megacloud/megacloud.getsrcs.d.ts +0 -1
  41. package/lib/typescript/module/src/extractors/megacloud/megacloud.getsrcs.d.ts.map +0 -1
  42. package/src/extractors/megacloud/megacloud.decodedpng.ts +0 -553
  43. package/src/extractors/megacloud/megacloud.getsrcs.ts +0 -862
package/package.json CHANGED
@@ -1,192 +1,191 @@
1
- {
2
- "name": "react-native-consumet",
3
- "version": "0.3.0",
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
- "source": "./src/index.ts",
6
- "main": "./lib/commonjs/index.js",
7
- "module": "./lib/module/index.js",
8
- "typesVersions": {
9
- "*": {
10
- "*": [
11
- "lib/typescript/commonjs/src/index.d.ts",
12
- "lib/typescript/module/src/index.d.ts"
13
- ]
14
- }
15
- },
16
- "exports": {
17
- ".": {
18
- "import": {
19
- "types": "./lib/typescript/module/src/index.d.ts",
20
- "default": "./lib/module/index.js"
21
- },
22
- "require": {
23
- "types": "./lib/typescript/commonjs/src/index.d.ts",
24
- "default": "./lib/commonjs/index.js"
25
- }
26
- },
27
- "./package.json": "./package.json"
28
- },
29
- "files": [
30
- "src",
31
- "lib",
32
- "android",
33
- "ios",
34
- "cpp",
35
- "*.podspec",
36
- "react-native.config.js",
37
- "!ios/build",
38
- "!android/build",
39
- "!android/gradle",
40
- "!android/gradlew",
41
- "!android/gradlew.bat",
42
- "!android/local.properties",
43
- "!**/__tests__",
44
- "!**/test",
45
- "!**/__fixtures__",
46
- "!**/__mocks__",
47
- "!**/.*"
48
- ],
49
- "scripts": {
50
- "example": "yarn workspace react-native-consumet-bare-example",
51
- "test": "jest",
52
- "typecheck": "tsc",
53
- "lint": "eslint \"**/*.{js,ts,tsx}\"",
54
- "clean": "del-cli android/build lib \"apps/*/android/.gradle\" \"apps/*/android/build\" \"apps/*/android/app/build\" \"apps/*/ios/build\" \"apps/*/ios/Pods\"",
55
- "prepare": "bob build",
56
- "release": "release-it",
57
- "prettier": "prettier --write \"**/*.{js,ts,tsx,json}\""
58
- },
59
- "keywords": [
60
- "react-native",
61
- "ios",
62
- "android"
63
- ],
64
- "repository": {
65
- "type": "git",
66
- "url": "git+https://github.com/2004durgesh/react-native-consumet.git"
67
- },
68
- "author": "Durgesh Kumar Dwivedi <durgeshdwivedi81@gmail.com> (https://github.com/2004durgesh)",
69
- "license": "GPL-3.0-only",
70
- "bugs": {
71
- "url": "https://github.com/2004durgesh/react-native-consumet/issues"
72
- },
73
- "homepage": "https://github.com/2004durgesh/react-native-consumet#readme",
74
- "publishConfig": {
75
- "registry": "https://registry.npmjs.org/"
76
- },
77
- "devDependencies": {
78
- "@babel/preset-env": "^7.26.9",
79
- "@commitlint/config-conventional": "^19.6.0",
80
- "@eslint/compat": "^1.2.7",
81
- "@eslint/eslintrc": "^3.3.0",
82
- "@eslint/js": "^9.22.0",
83
- "@evilmartians/lefthook": "^1.5.0",
84
- "@react-native-community/cli": "15.0.1",
85
- "@react-native/eslint-config": "^0.78.0",
86
- "@release-it/conventional-changelog": "^9.0.2",
87
- "@types/crypto-js": "^4.2.2",
88
- "@types/jest": "^29.5.5",
89
- "@types/react": "^19.0.0",
90
- "babel-jest": "^29.7.0",
91
- "commitlint": "^19.6.1",
92
- "del-cli": "^5.1.0",
93
- "eslint": "^9.22.0",
94
- "eslint-config-prettier": "^10.1.1",
95
- "eslint-plugin-prettier": "^5.2.3",
96
- "eslint-plugin-unused-imports": "^4.1.4",
97
- "jest": "^29.7.0",
98
- "prettier": "^3.0.3",
99
- "react": "19.0.0",
100
- "react-native": "0.78.1",
101
- "react-native-builder-bob": "^0.38.3",
102
- "release-it": "^17.10.0",
103
- "ts-jest": "^29.3.1",
104
- "ts-node": "^10.9.2",
105
- "turbo": "^1.10.7",
106
- "typescript": "^5.2.2"
107
- },
108
- "peerDependencies": {
109
- "react": "*",
110
- "react-native": "*"
111
- },
112
- "workspaces": [
113
- "apps/bare-example",
114
- "apps/expo-example"
115
- ],
116
- "packageManager": "yarn@3.6.1",
117
- "commitlint": {
118
- "extends": [
119
- "@commitlint/config-conventional"
120
- ]
121
- },
122
- "release-it": {
123
- "git": {
124
- "commitMessage": "chore: release ${version}",
125
- "tagName": "v${version}"
126
- },
127
- "npm": {
128
- "publish": true
129
- },
130
- "github": {
131
- "release": true
132
- },
133
- "plugins": {
134
- "@release-it/conventional-changelog": {
135
- "preset": {
136
- "name": "conventionalcommits"
137
- },
138
- "infile": "CHANGELOG.md"
139
- }
140
- }
141
- },
142
- "react-native-builder-bob": {
143
- "source": "src",
144
- "output": "lib",
145
- "targets": [
146
- "codegen",
147
- [
148
- "module",
149
- {
150
- "esm": true
151
- }
152
- ],
153
- [
154
- "commonjs",
155
- {
156
- "esm": true
157
- }
158
- ],
159
- [
160
- "typescript",
161
- {
162
- "project": "tsconfig.build.json"
163
- }
164
- ]
165
- ]
166
- },
167
- "codegenConfig": {
168
- "name": "RNConsumetSpec",
169
- "type": "modules",
170
- "jsSrcsDir": "src",
171
- "outputDir": {
172
- "ios": "ios/generated",
173
- "android": "android/generated"
174
- },
175
- "android": {
176
- "javaPackageName": "com.consumet"
177
- },
178
- "includesGeneratedCode": true
179
- },
180
- "create-react-native-library": {
181
- "type": "turbo-module",
182
- "languages": "kotlin-objc",
183
- "version": "0.49.0"
184
- },
185
- "dependencies": {
186
- "ascii-url-encoder": "^1.2.0",
187
- "axios": "^1.8.4",
188
- "cheerio": "1.0.0-rc.12",
189
- "crypto-js": "^4.2.0",
190
- "react-native-consumet": "^0.2.1"
191
- }
192
- }
1
+ {
2
+ "name": "react-native-consumet",
3
+ "version": "0.4.1",
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
+ "source": "./src/index.ts",
6
+ "main": "./lib/commonjs/index.js",
7
+ "module": "./lib/module/index.js",
8
+ "typesVersions": {
9
+ "*": {
10
+ "*": [
11
+ "lib/typescript/commonjs/src/index.d.ts",
12
+ "lib/typescript/module/src/index.d.ts"
13
+ ]
14
+ }
15
+ },
16
+ "exports": {
17
+ ".": {
18
+ "import": {
19
+ "types": "./lib/typescript/module/src/index.d.ts",
20
+ "default": "./lib/module/index.js"
21
+ },
22
+ "require": {
23
+ "types": "./lib/typescript/commonjs/src/index.d.ts",
24
+ "default": "./lib/commonjs/index.js"
25
+ }
26
+ },
27
+ "./package.json": "./package.json"
28
+ },
29
+ "files": [
30
+ "src",
31
+ "lib",
32
+ "android",
33
+ "ios",
34
+ "cpp",
35
+ "*.podspec",
36
+ "react-native.config.js",
37
+ "!ios/build",
38
+ "!android/build",
39
+ "!android/gradle",
40
+ "!android/gradlew",
41
+ "!android/gradlew.bat",
42
+ "!android/local.properties",
43
+ "!**/__tests__",
44
+ "!**/test",
45
+ "!**/__fixtures__",
46
+ "!**/__mocks__",
47
+ "!**/.*"
48
+ ],
49
+ "scripts": {
50
+ "example": "yarn workspace react-native-consumet-bare-example",
51
+ "test": "jest",
52
+ "typecheck": "tsc",
53
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
54
+ "clean": "del-cli android/build lib \"apps/*/android/.gradle\" \"apps/*/android/build\" \"apps/*/android/app/build\" \"apps/*/ios/build\" \"apps/*/ios/Pods\"",
55
+ "prepare": "bob build",
56
+ "release": "release-it",
57
+ "prettier": "prettier --write \"**/*.{js,ts,tsx,json}\""
58
+ },
59
+ "keywords": [
60
+ "react-native",
61
+ "ios",
62
+ "android"
63
+ ],
64
+ "repository": {
65
+ "type": "git",
66
+ "url": "git+https://github.com/2004durgesh/react-native-consumet.git"
67
+ },
68
+ "author": "Durgesh Kumar Dwivedi <durgeshdwivedi81@gmail.com> (https://github.com/2004durgesh)",
69
+ "license": "GPL-3.0-only",
70
+ "bugs": {
71
+ "url": "https://github.com/2004durgesh/react-native-consumet/issues"
72
+ },
73
+ "homepage": "https://github.com/2004durgesh/react-native-consumet#readme",
74
+ "publishConfig": {
75
+ "registry": "https://registry.npmjs.org/"
76
+ },
77
+ "devDependencies": {
78
+ "@babel/preset-env": "^7.26.9",
79
+ "@commitlint/config-conventional": "^19.6.0",
80
+ "@eslint/compat": "^1.2.7",
81
+ "@eslint/eslintrc": "^3.3.0",
82
+ "@eslint/js": "^9.22.0",
83
+ "@evilmartians/lefthook": "^1.5.0",
84
+ "@react-native-community/cli": "15.0.1",
85
+ "@react-native/eslint-config": "^0.78.0",
86
+ "@release-it/conventional-changelog": "^9.0.2",
87
+ "@types/crypto-js": "^4.2.2",
88
+ "@types/jest": "^29.5.5",
89
+ "@types/react": "^19.0.0",
90
+ "babel-jest": "^29.7.0",
91
+ "commitlint": "^19.6.1",
92
+ "del-cli": "^5.1.0",
93
+ "eslint": "^9.22.0",
94
+ "eslint-config-prettier": "^10.1.1",
95
+ "eslint-plugin-prettier": "^5.2.3",
96
+ "eslint-plugin-unused-imports": "^4.1.4",
97
+ "jest": "^29.7.0",
98
+ "prettier": "^3.0.3",
99
+ "react": "19.0.0",
100
+ "react-native": "0.78.1",
101
+ "react-native-builder-bob": "^0.38.3",
102
+ "release-it": "^17.10.0",
103
+ "ts-jest": "^29.3.1",
104
+ "ts-node": "^10.9.2",
105
+ "turbo": "^1.10.7",
106
+ "typescript": "^5.2.2"
107
+ },
108
+ "peerDependencies": {
109
+ "react": "*",
110
+ "react-native": "*"
111
+ },
112
+ "workspaces": [
113
+ "apps/bare-example",
114
+ "apps/expo-example"
115
+ ],
116
+ "packageManager": "yarn@3.6.1",
117
+ "commitlint": {
118
+ "extends": [
119
+ "@commitlint/config-conventional"
120
+ ]
121
+ },
122
+ "release-it": {
123
+ "git": {
124
+ "commitMessage": "chore: release ${version}",
125
+ "tagName": "v${version}"
126
+ },
127
+ "npm": {
128
+ "publish": true
129
+ },
130
+ "github": {
131
+ "release": true
132
+ },
133
+ "plugins": {
134
+ "@release-it/conventional-changelog": {
135
+ "preset": {
136
+ "name": "conventionalcommits"
137
+ },
138
+ "infile": "CHANGELOG.md"
139
+ }
140
+ }
141
+ },
142
+ "react-native-builder-bob": {
143
+ "source": "src",
144
+ "output": "lib",
145
+ "targets": [
146
+ "codegen",
147
+ [
148
+ "module",
149
+ {
150
+ "esm": true
151
+ }
152
+ ],
153
+ [
154
+ "commonjs",
155
+ {
156
+ "esm": true
157
+ }
158
+ ],
159
+ [
160
+ "typescript",
161
+ {
162
+ "project": "tsconfig.build.json"
163
+ }
164
+ ]
165
+ ]
166
+ },
167
+ "codegenConfig": {
168
+ "name": "RNConsumetSpec",
169
+ "type": "modules",
170
+ "jsSrcsDir": "src",
171
+ "outputDir": {
172
+ "ios": "ios/generated",
173
+ "android": "android/generated"
174
+ },
175
+ "android": {
176
+ "javaPackageName": "com.consumet"
177
+ },
178
+ "includesGeneratedCode": true
179
+ },
180
+ "create-react-native-library": {
181
+ "type": "turbo-module",
182
+ "languages": "kotlin-objc",
183
+ "version": "0.49.0"
184
+ },
185
+ "dependencies": {
186
+ "ascii-url-encoder": "^1.2.0",
187
+ "axios": "^1.8.4",
188
+ "cheerio": "1.0.0-rc.12",
189
+ "crypto-js": "^4.2.0"
190
+ }
191
+ }
@@ -1,22 +1,44 @@
1
1
  //extractor for https://animekai.to
2
2
 
3
+ // The code for this is now fetched from outside consumet:
4
+ // https://raw.githubusercontent.com/amarullz/kaicodex/refs/heads/main/generated/kai_codex.js
5
+ // as this repository auto-updates the extraction keys when they change.
6
+ // If something breaks in the future, blame this part.
7
+
3
8
  import { type ISource, type IVideo, VideoExtractor } from '../models';
9
+ import { type AxiosAdapter } from 'axios';
10
+ import { type ProxyConfig } from '../models/types';
11
+
12
+ interface KaiCodex {
13
+ rc4: (key: string, str: string) => string;
14
+ safeBtoa: (s: string) => string;
15
+ safeAtob: (s: string) => string;
16
+ reverseString: (s: string) => string;
17
+ replaceChars: (s: string, f: string, r: string) => string;
18
+ enc: (n: string) => string;
19
+ dec: (n: string) => string;
20
+ decMega: (n: string) => string;
21
+ }
4
22
 
5
23
  export class MegaUp extends VideoExtractor {
6
24
  protected serverName: string = 'MegaUp';
7
25
  protected sources: IVideo[] = [];
26
+ private KAICODEX!: KaiCodex;
27
+ private kaicodexReady: Promise<void>;
28
+
29
+ /* Old decrypting functions in case the new ones break
8
30
 
9
31
  #reverseIt = (n: string) => {
10
32
  return n.split('').reverse().join('');
11
33
  };
12
34
  #base64UrlEncode = (str: string) => {
13
- return btoa(str).replace(/\+/g, '-').replace(/\//g, '_').replace(/[=]+$/, '');
35
+ return btoa(str).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
14
36
  };
15
37
  #substitute = (input: string, keys: string, values: string) => {
16
38
  const map = Object.fromEntries(keys.split('').map((key, i) => [key, values[i] || '']));
17
39
  const a = input
18
40
  .split('')
19
- .map((char) => map[char] || char)
41
+ .map(char => map[char] || char)
20
42
  .join('');
21
43
  return a;
22
44
  };
@@ -26,18 +48,13 @@ export class MegaUp extends VideoExtractor {
26
48
  f = '';
27
49
 
28
50
  for (let w = 0; w < 256; w++) {
29
- // @ts-ignore
30
51
  c = (c + v[w] + n.charCodeAt(w % n.length)) % 256;
31
- // @ts-ignore
32
52
  [v[w], v[c]] = [v[c], v[w]];
33
53
  }
34
54
  for (let a = (c = 0), w = 0; a < t.length; a++) {
35
55
  w = (w + 1) % 256;
36
- // @ts-ignore
37
56
  c = (c + v[w]) % 256;
38
- // @ts-ignore
39
57
  [v[w], v[c]] = [v[c], v[w]];
40
- // @ts-ignore
41
58
  f += String.fromCharCode(t.charCodeAt(a) ^ v[(v[w] + v[c]) % 256]);
42
59
  }
43
60
 
@@ -50,115 +67,54 @@ export class MegaUp extends VideoExtractor {
50
67
  .replace(/_/g, '/');
51
68
  return atob(n);
52
69
  };
70
+
71
+ */
72
+
73
+ constructor(
74
+ protected proxyConfig?: ProxyConfig,
75
+ protected adapter?: AxiosAdapter
76
+ ) {
77
+ super(proxyConfig, adapter);
78
+ this.kaicodexReady = this.loadKAICODEX();
79
+ }
80
+
81
+ private async loadKAICODEX(): Promise<void> {
82
+ const extraction_code =
83
+ 'https://raw.githubusercontent.com/amarullz/kaicodex/refs/heads/main/generated/kai_codex.js';
84
+
85
+ const response = await fetch(extraction_code);
86
+ const originalCode = await response.text();
87
+
88
+ const wrappedCode = `
89
+ ${originalCode}
90
+ return KAICODEX;
91
+ `;
92
+
93
+ // eslint-disable-next-line no-new-func
94
+ const fn = new Function(wrappedCode);
95
+ this.KAICODEX = fn();
96
+ }
53
97
 
54
98
  GenerateToken = (n: string) => {
55
- n = encodeURIComponent(n);
56
- return (n = this.#base64UrlEncode(
57
- this.#substitute(
58
- this.#base64UrlEncode(
59
- this.#transform(
60
- 'sXmH96C4vhRrgi8',
61
- this.#reverseIt(
62
- this.#reverseIt(
63
- this.#base64UrlEncode(
64
- this.#transform(
65
- 'kOCJnByYmfI',
66
- this.#substitute(
67
- this.#substitute(
68
- this.#reverseIt(this.#base64UrlEncode(this.#transform('0DU8ksIVlFcia2', n))),
69
- '1wctXeHqb2',
70
- '1tecHq2Xbw'
71
- ),
72
- '48KbrZx1ml',
73
- 'Km8Zb4lxr1'
74
- )
75
- )
76
- )
77
- )
78
- )
79
- )
80
- ),
81
- 'hTn79AMjduR5',
82
- 'djn5uT7AMR9h'
83
- )
84
- ));
99
+ return this.KAICODEX.enc(n);
85
100
  };
101
+
86
102
  DecodeIframeData = (n: string) => {
87
- n = `${n}`;
88
- n = this.#transform(
89
- '0DU8ksIVlFcia2',
90
- this.#base64UrlDecode(
91
- this.#reverseIt(
92
- this.#substitute(
93
- this.#substitute(
94
- this.#transform(
95
- 'kOCJnByYmfI',
96
- this.#base64UrlDecode(
97
- this.#reverseIt(
98
- this.#reverseIt(
99
- this.#transform(
100
- 'sXmH96C4vhRrgi8',
101
- this.#base64UrlDecode(
102
- this.#substitute(this.#base64UrlDecode(n), 'djn5uT7AMR9h', 'hTn79AMjduR5')
103
- )
104
- )
105
- )
106
- )
107
- )
108
- ),
109
- 'Km8Zb4lxr1',
110
- '48KbrZx1ml'
111
- ),
112
- '1tecHq2Xbw',
113
- '1wctXeHqb2'
114
- )
115
- )
116
- )
117
- );
118
- return decodeURIComponent(n);
103
+ return this.KAICODEX.dec(n);
119
104
  };
105
+
120
106
  Decode = (n: string) => {
121
- n = this.#substitute(
122
- this.#transform(
123
- 'XvxVdt4eTSnCyG',
124
- this.#base64UrlDecode(
125
- this.#reverseIt(
126
- this.#transform(
127
- 'ENZqBfw54cgsJ',
128
- this.#base64UrlDecode(
129
- this.#reverseIt(
130
- this.#substitute(
131
- this.#transform(
132
- 'HCcYA9gQqxUD',
133
- this.#base64UrlDecode(
134
- this.#substitute(
135
- this.#reverseIt(this.#base64UrlDecode(n)),
136
- 'OdilCbZWmrtUeYg',
137
- 'YirdmeZblOtgCWU'
138
- )
139
- )
140
- ),
141
- 'K9lQq2SsnjkObe',
142
- 'l9j2sSnekQOqKb'
143
- )
144
- )
145
- )
146
- )
147
- )
148
- )
149
- ),
150
- 'nMW7qCTpe6SQhco',
151
- 'nqce7WMQC6pSTho'
152
- );
153
- return decodeURIComponent(n);
107
+ return this.KAICODEX.decMega(n);
154
108
  };
155
109
 
156
110
  override extract = async (videoUrl: URL): Promise<ISource> => {
157
111
  try {
112
+ await this.kaicodexReady;
113
+
158
114
  const url = videoUrl.href.replace(/\/(e|e2)\//, '/media/');
159
115
  const res = await this.client.get(url);
160
116
 
161
- const decrypted = JSON.parse(this.Decode(res.data.result).replace(/\\/g, ''));
117
+ const decrypted = JSON.parse(this.KAICODEX.decMega(res.data.result).replace(/\\/g, ''));
162
118
  const data: ISource = {
163
119
  sources: decrypted.sources.map((s: { file: string }) => ({
164
120
  url: s.file,
@@ -12,7 +12,6 @@ import {
12
12
  MediaFormat,
13
13
  } from '../../models';
14
14
  import { Kwik } from '../../extractors';
15
- import { USER_AGENT } from '../../utils';
16
15
 
17
16
  class AnimePahe extends AnimeParser {
18
17
  override readonly name = 'AnimePahe';
@@ -8,7 +8,6 @@ import {
8
8
  type IAnimeResult,
9
9
  type ISource,
10
10
  type IAnimeEpisode,
11
- SubOrSub,
12
11
  type IEpisodeServer,
13
12
  Genres,
14
13
  MangaParser,
@@ -23,7 +22,6 @@ import {
23
22
  import {
24
23
  anilistSearchQuery,
25
24
  anilistMediaDetailQuery,
26
- kitsuSearchQuery,
27
25
  anilistTrendingQuery,
28
26
  anilistPopularQuery,
29
27
  anilistAiringScheduleQuery,
@@ -32,7 +30,6 @@ import {
32
30
  anilistSiteStatisticsQuery,
33
31
  anilistCharacterQuery,
34
32
  anilistStaffInfoQuery,
35
- range,
36
33
  getDays,
37
34
  capitalizeFirstLetter,
38
35
  } from '../../utils';