mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-13 13:26:43 +02:00
apkpure: use provided asset download links
This commit is contained in:
@ -85,19 +85,11 @@ class APKPure extends AppSource {
|
||||
}
|
||||
|
||||
String type = e['asset']['type'];
|
||||
|
||||
var downloadUri = Uri.parse("https://d.cdnpure.com/b/$type/$appId");
|
||||
var queryParameters = {
|
||||
"versionCode": versionCode,
|
||||
};
|
||||
if (architectureString.isNotEmpty) {
|
||||
queryParameters["nc"] = architectureString;
|
||||
}
|
||||
downloadUri = downloadUri.replace(queryParameters: queryParameters);
|
||||
String downloadUri = e['asset']['url'];
|
||||
|
||||
return MapEntry(
|
||||
'$appId-$versionCode-$architectureString.${type.toLowerCase()}',
|
||||
downloadUri.toString());
|
||||
downloadUri);
|
||||
})
|
||||
.nonNulls
|
||||
.toList()
|
||||
|
Reference in New Issue
Block a user