APKPure: Fix bug with versionCode not found

This commit is contained in:
Imran Remtulla
2024-10-20 12:10:11 -04:00
parent 862e85f882
commit d121463bad

View File

@@ -95,10 +95,9 @@ class APKPure extends AppSource {
// Unclear why there can even be multiple APKs for the same version and arch
var apkInfo = e.nextElementSibling?.querySelector('div.info');
String? versionCode = RegExp('[0-9]+')
.firstMatch(apkInfo
?.querySelector('div.info-top span.code')
?.text ??
'')
.firstMatch(
apkInfo?.querySelector('div.info-top .code')?.text ??
'')
?.group(0)
?.trim();
var types = apkInfo