crextractor 1.3.0 → 1.3.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/crextractor.js +6 -1
- package/package.json +2 -2
package/crextractor.js
CHANGED
|
@@ -17,7 +17,7 @@ const downloadMobileApk = async () => {
|
|
|
17
17
|
const downloadTvApk = async () => {
|
|
18
18
|
const source = 'https://webservices.aptoide.com/webservices/3/getApkInfo';
|
|
19
19
|
const formData = new FormData();
|
|
20
|
-
formData.append('identif', 'id:
|
|
20
|
+
formData.append('identif', 'id:71666229');
|
|
21
21
|
formData.append('mode', 'json');
|
|
22
22
|
const response = await fetch(source, {
|
|
23
23
|
method: 'POST',
|
|
@@ -100,6 +100,11 @@ const extract = async ({ target = 'mobile', output, cleanup = false } = {}) => {
|
|
|
100
100
|
console.log('Downloading APK...');
|
|
101
101
|
const apkPath = target === 'tv' ? await downloadTvApk() : await downloadMobileApk();
|
|
102
102
|
|
|
103
|
+
if (existsSync(apkPath)) {
|
|
104
|
+
console.error('Unable to find APK (possibly a download error)');
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
|
|
103
108
|
console.log('Decompiling APK...');
|
|
104
109
|
const decompiledDir = decompileApk(apkPath);
|
|
105
110
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crextractor",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Utility for extracting credentials from the Crunchyroll Android app",
|
|
5
5
|
"main": "crextractor.js",
|
|
6
6
|
"bin": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"node": ">=20"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"molnia": "^0.1.
|
|
38
|
+
"molnia": "^0.1.7"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "^5.9.2"
|