mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-11-13 03:19:11 +01:00
Fix APKPure downloads (#1250)
This commit is contained in:
@@ -71,7 +71,8 @@ class APKPure extends AppSource {
|
|||||||
DateTime? releaseDate = parseDateTimeMMMddCommayyyy(dateString);
|
DateTime? releaseDate = parseDateTimeMMMddCommayyyy(dateString);
|
||||||
String type = html.querySelector('a.info-tag')?.text.trim() ?? 'APK';
|
String type = html.querySelector('a.info-tag')?.text.trim() ?? 'APK';
|
||||||
List<MapEntry<String, String>> apkUrls = [
|
List<MapEntry<String, String>> apkUrls = [
|
||||||
MapEntry('$appId.apk', 'https://d.$host/b/$type/$appId?version=latest')
|
MapEntry('$appId.apk',
|
||||||
|
'https://d.${hosts.contains(host) ? 'cdnpure.com' : host}/b/$type/$appId?version=latest')
|
||||||
];
|
];
|
||||||
String author = html
|
String author = html
|
||||||
.querySelector('span.info-sdk')
|
.querySelector('span.info-sdk')
|
||||||
|
|||||||
Reference in New Issue
Block a user