mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-24 09:59:41 +02:00
Fix broken "Download Asset" function for HTML source (#1998)
This commit is contained in:
@@ -353,7 +353,12 @@ class HTML extends AppSource {
|
|||||||
forAPKDownload: true),
|
forAPKDownload: true),
|
||||||
allowInsecure: additionalSettings['allowInsecure'] == true))
|
allowInsecure: additionalSettings['allowInsecure'] == true))
|
||||||
.toString();
|
.toString();
|
||||||
return APKDetails(version, [rel].map((e) => MapEntry(e, e)).toList(),
|
return APKDetails(
|
||||||
|
version,
|
||||||
|
[rel]
|
||||||
|
.map((e) =>
|
||||||
|
MapEntry('${e.hashCode}-${Uri.parse(e).pathSegments.last}', e))
|
||||||
|
.toList(),
|
||||||
AppNames(uri.host, tr('app')));
|
AppNames(uri.host, tr('app')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -240,7 +240,7 @@ class App {
|
|||||||
late String name;
|
late String name;
|
||||||
String? installedVersion;
|
String? installedVersion;
|
||||||
late String latestVersion;
|
late String latestVersion;
|
||||||
List<MapEntry<String, String>> apkUrls = [];
|
List<MapEntry<String, String>> apkUrls = []; // Key is name, value is URL
|
||||||
List<MapEntry<String, String>> otherAssetUrls = [];
|
List<MapEntry<String, String>> otherAssetUrls = [];
|
||||||
late int preferredApkIndex;
|
late int preferredApkIndex;
|
||||||
late Map<String, dynamic> additionalSettings;
|
late Map<String, dynamic> additionalSettings;
|
||||||
|
Reference in New Issue
Block a user