Add XAPK support (incomplete - OBB not copied)

This commit is contained in:
Imran Remtulla
2023-05-06 13:20:58 -04:00
parent 33d3fc2d8e
commit cc3c4cc79f
5 changed files with 139 additions and 32 deletions

View File

@@ -57,9 +57,9 @@ class APKPure extends AppSource {
} catch (err) {
// ignore
}
String type = html.querySelector('a.info-tag')?.text.trim() ?? 'APK';
List<MapEntry<String, String>> apkUrls = [
MapEntry('$appId.apk', 'https://d.$host/b/APK/$appId?version=latest')
MapEntry('$appId.apk', 'https://d.$host/b/$type/$appId?version=latest')
];
String author = html
.querySelector('span.info-sdk')