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 // Unclear why there can even be multiple APKs for the same version and arch
var apkInfo = e.nextElementSibling?.querySelector('div.info'); var apkInfo = e.nextElementSibling?.querySelector('div.info');
String? versionCode = RegExp('[0-9]+') String? versionCode = RegExp('[0-9]+')
.firstMatch(apkInfo .firstMatch(
?.querySelector('div.info-top span.code') apkInfo?.querySelector('div.info-top .code')?.text ??
?.text ?? '')
'')
?.group(0) ?.group(0)
?.trim(); ?.trim();
var types = apkInfo var types = apkInfo