mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-22 05:59:30 +02:00
Fix bug from previous version: APKPure fails to find universal APKs
This commit is contained in:
@@ -93,7 +93,11 @@ class APKPure extends AppSource {
|
|||||||
var apkUrls = apksDiv
|
var apkUrls = apksDiv
|
||||||
?.querySelectorAll('div.group-title')
|
?.querySelectorAll('div.group-title')
|
||||||
.map((e) {
|
.map((e) {
|
||||||
String? architecture = e.text.trim();
|
String architecture = e.text.trim();
|
||||||
|
if (architecture.toLowerCase() == 'unlimited' ||
|
||||||
|
architecture.toLowerCase() == 'universal') {
|
||||||
|
architecture = '';
|
||||||
|
}
|
||||||
// Only take the first APK for each architecture, ignore others for now, for simplicity
|
// Only take the first APK for each architecture, ignore others for now, for simplicity
|
||||||
// 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');
|
||||||
@@ -116,6 +120,7 @@ class APKPure extends AppSource {
|
|||||||
DateTime? releaseDate =
|
DateTime? releaseDate =
|
||||||
parseDateTimeMMMddCommayyyy(dateString);
|
parseDateTimeMMMddCommayyyy(dateString);
|
||||||
if (additionalSettings['autoApkFilterByArch'] == true &&
|
if (additionalSettings['autoApkFilterByArch'] == true &&
|
||||||
|
architecture.isNotEmpty &&
|
||||||
!supportedArchs.contains(architecture)) {
|
!supportedArchs.contains(architecture)) {
|
||||||
return const MapEntry('', '');
|
return const MapEntry('', '');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user