APKPure URL parsing bugfix (#1926)

This commit is contained in:
Imran Remtulla
2024-11-01 13:17:19 -04:00
parent 0e14e17236
commit b1f9375bb1

View File

@@ -164,9 +164,15 @@ class APKPure extends AppSource {
String host = Uri.parse(standardUrl).host; String host = Uri.parse(standardUrl).host;
var res0 = await sourceRequest('$standardUrl/versions', additionalSettings); var res0 = await sourceRequest('$standardUrl/versions', additionalSettings);
var decodedStandardUrl = standardUrl;
try {
decodedStandardUrl = Uri.decodeFull(decodedStandardUrl);
} catch (e) {
//
}
var versionLinks = await grabLinksCommon(res0, { var versionLinks = await grabLinksCommon(res0, {
'skipSort': true, 'skipSort': true,
'customLinkFilterRegex': '${Uri.decodeFull(standardUrl)}/download/[^/]+\$' 'customLinkFilterRegex': '$decodedStandardUrl/download/[^/]+\$'
}); });
var supportedArchs = (await DeviceInfoPlugin().androidInfo).supportedAbis; var supportedArchs = (await DeviceInfoPlugin().androidInfo).supportedAbis;