mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-22 09:09:41 +02:00
Fix "Bad State: No element" Error on Some Direct APK Links (#2128)
This commit is contained in:
@@ -358,10 +358,12 @@ class HTML extends AppSource {
|
|||||||
.toString();
|
.toString();
|
||||||
return APKDetails(
|
return APKDetails(
|
||||||
version,
|
version,
|
||||||
[rel]
|
[rel].map((e) {
|
||||||
.map((e) =>
|
var uri = Uri.parse(e);
|
||||||
MapEntry('${e.hashCode}-${Uri.parse(e).pathSegments.last}', e))
|
var fileName =
|
||||||
.toList(),
|
uri.pathSegments.isNotEmpty ? uri.pathSegments.last : uri.origin;
|
||||||
|
return MapEntry('${e.hashCode}-$fileName', e);
|
||||||
|
}).toList(),
|
||||||
AppNames(uri.host, tr('app')));
|
AppNames(uri.host, tr('app')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user