attempted switch to dio (still using http for partial dnwloads/headers)

This commit is contained in:
Imran Remtulla
2024-03-17 01:51:53 -04:00
parent 9dae24ace6
commit ab43856b90
27 changed files with 321 additions and 170 deletions

View File

@@ -45,7 +45,7 @@ class APKCombo extends AppSource {
if (res.statusCode != 200) {
throw getObtainiumHttpError(res);
}
var html = parse(res.body);
var html = parse(res.data);
return html
.querySelectorAll('#variants-tab > div > ul > li')
.map((e) {
@@ -96,7 +96,7 @@ class APKCombo extends AppSource {
if (preres.statusCode != 200) {
throw getObtainiumHttpError(preres);
}
var res = parse(preres.body);
var res = parse(preres.data);
String? version = res.querySelector('div.version')?.text.trim();
if (version == null) {
throw NoVersionError();