mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-24 19:33:45 +02:00
attempted switch to dio (still using http for partial dnwloads/headers)
This commit is contained in:
@@ -61,8 +61,8 @@ class APKPure extends AppSource {
|
||||
var res = await sourceRequest('$standardUrl/download', additionalSettings);
|
||||
var resChangelog = await sourceRequest(standardUrl, additionalSettings);
|
||||
if (res.statusCode == 200 && resChangelog.statusCode == 200) {
|
||||
var html = parse(res.body);
|
||||
var htmlChangelog = parse(resChangelog.body);
|
||||
var html = parse(res.data);
|
||||
var htmlChangelog = parse(resChangelog.data);
|
||||
String? version = html.querySelector('span.info-sdk span')?.text.trim();
|
||||
if (version == null) {
|
||||
throw NoVersionError();
|
||||
|
||||
Reference in New Issue
Block a user