mirror of
https://github.com/vitalygashkov/crextractor.git
synced 2026-07-15 17:40:03 +02:00
fix: change mobile apk source
This commit is contained in:
+3
-7
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user