4 Commits
Author SHA1 Message Date
Vitaly Gashkov cbdde54471 1.3.4 2025-11-04 19:49:27 +05:00
Vitaly Gashkov 777eb4ee2b fix: update tv app id 2025-11-04 19:48:37 +05:00
Vitaly Gashkov b2c672dfa6 1.3.3 2025-10-25 12:14:11 +05:00
Vitaly Gashkov 828f4fa1d5 fix: correct checking for downloaded apk 2025-10-25 12:13:35 +05:00
3 changed files with 8 additions and 11 deletions
+5 -8
View File
@@ -16,13 +16,10 @@ const downloadMobileApk = async () => {
const downloadTvApk = async () => { const downloadTvApk = async () => {
const source = 'https://webservices.aptoide.com/webservices/3/getApkInfo'; const source = 'https://webservices.aptoide.com/webservices/3/getApkInfo';
const formData = new FormData(); const body = new FormData();
formData.append('identif', 'id:71666229'); body.append('identif', 'id:72075737');
formData.append('mode', 'json'); body.append('mode', 'json');
const response = await fetch(source, { const response = await fetch(source, { method: 'POST', body });
method: 'POST',
body: formData,
});
const json = await response.json(); const json = await response.json();
const url = json.apk.path; const url = json.apk.path;
const filepath = join(process.cwd(), 'crunchyroll.apk'); const filepath = join(process.cwd(), 'crunchyroll.apk');
@@ -100,7 +97,7 @@ const extract = async ({ target = 'mobile', output, cleanup = false } = {}) => {
console.log('Downloading APK...'); console.log('Downloading APK...');
const apkPath = target === 'tv' ? await downloadTvApk() : await downloadMobileApk(); const apkPath = target === 'tv' ? await downloadTvApk() : await downloadMobileApk();
if (existsSync(apkPath)) { if (!existsSync(apkPath)) {
console.error('Unable to find APK (possibly a download error)'); console.error('Unable to find APK (possibly a download error)');
return; return;
} }
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "crextractor", "name": "crextractor",
"version": "1.3.2", "version": "1.3.4",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "crextractor", "name": "crextractor",
"version": "1.3.2", "version": "1.3.4",
"funding": [ "funding": [
{ {
"type": "individual", "type": "individual",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "crextractor", "name": "crextractor",
"version": "1.3.2", "version": "1.3.4",
"description": "Utility for extracting credentials from the Crunchyroll Android app", "description": "Utility for extracting credentials from the Crunchyroll Android app",
"main": "crextractor.js", "main": "crextractor.js",
"bin": { "bin": {