mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-24 19:33:45 +02:00
Improved APKPure compatibility by prioritizing APK when available (over XAPK)
This commit is contained in:
@@ -109,11 +109,16 @@ class APKPure extends AppSource {
|
|||||||
'')
|
'')
|
||||||
?.group(0)
|
?.group(0)
|
||||||
?.trim();
|
?.trim();
|
||||||
String? type = apkInfo
|
var types = apkInfo
|
||||||
?.querySelector('div.info-top span.tag')
|
?.querySelectorAll('div.info-top span.tag')
|
||||||
?.text
|
.map((e) => e.text.trim())
|
||||||
.trim() ??
|
.map((t) => t == 'APKs' ? 'APK' : t) ??
|
||||||
'APK';
|
[];
|
||||||
|
String type = types.length == 0
|
||||||
|
? 'APK'
|
||||||
|
: types.length == 1
|
||||||
|
? types.first
|
||||||
|
: types.last;
|
||||||
String? dateString = apkInfo
|
String? dateString = apkInfo
|
||||||
?.querySelector('div.info-bottom span.time')
|
?.querySelector('div.info-bottom span.time')
|
||||||
?.text
|
?.text
|
||||||
|
|||||||
Reference in New Issue
Block a user