diff --git a/lib/app_sources/apkpure.dart b/lib/app_sources/apkpure.dart index 3fe3237..fe5e549 100644 --- a/lib/app_sources/apkpure.dart +++ b/lib/app_sources/apkpure.dart @@ -109,11 +109,16 @@ class APKPure extends AppSource { '') ?.group(0) ?.trim(); - String? type = apkInfo - ?.querySelector('div.info-top span.tag') - ?.text - .trim() ?? - 'APK'; + var types = apkInfo + ?.querySelectorAll('div.info-top span.tag') + .map((e) => e.text.trim()) + .map((t) => t == 'APKs' ? 'APK' : t) ?? + []; + String type = types.length == 0 + ? 'APK' + : types.length == 1 + ? types.first + : types.last; String? dateString = apkInfo ?.querySelector('div.info-bottom span.time') ?.text