fix: change mobile apk source

This commit is contained in:
Vitaly Gashkov
2025-08-24 10:26:32 +05:00
parent eba50dccd0
commit d03e9cadeb
+3 -7
View File
@@ -1,16 +1,12 @@
const { execSync } = require('node:child_process'); const { execSync } = require('node:child_process');
const { join } = require('node:path'); const { join } = require('node:path');
const { readdir, readFile, writeFile, rm } = require('node:fs/promises'); const { readdir, readFile, writeFile, rm } = require('node:fs/promises');
const { download } = require('molnia');
const { existsSync } = require('node:fs'); const { existsSync } = require('node:fs');
const { download } = require('molnia');
const downloadMobileApk = async () => { const downloadMobileApk = async () => {
const source = 'https://apkcombo.com/crunchyroll/com.crunchyroll.crunchyroid/download/apk'; const url = 'https://api.qqaoop.com/v11/apps/com.crunchyroll.crunchyroid/download?userId=1';
const page = await fetch(source); const filepath = join(process.cwd(), 'crunchyroll.apk');
const html = await page.text();
const route = '/r2' + html.split('/r2')[1]?.split('"')[0];
const url = `https://apkcombo.com${route}`;
const filepath = join(process.cwd(), 'crunchyroll.xapk');
await download(url, { await download(url, {
output: filepath, output: filepath,
onError: (error) => console.error(error), onError: (error) => console.error(error),