mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-23 09:29: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),
|
||||
allowInsecure: additionalSettings['allowInsecure'] == true))
|
||||
.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')));
|
||||
}
|
||||
}
|
||||
|
@@ -240,7 +240,7 @@ class App {
|
||||
late String name;
|
||||
String? installedVersion;
|
||||
late String latestVersion;
|
||||
List<MapEntry<String, String>> apkUrls = [];
|
||||
List<MapEntry<String, String>> apkUrls = []; // Key is name, value is URL
|
||||
List<MapEntry<String, String>> otherAssetUrls = [];
|
||||
late int preferredApkIndex;
|
||||
late Map<String, dynamic> additionalSettings;
|
||||
|
Reference in New Issue
Block a user