mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-11-05 07:43:28 +01:00
Fixed type errors and HTML APK filter
This commit is contained in:
@@ -27,6 +27,10 @@ class HTML extends AppSource {
|
||||
.where((element) => element.toLowerCase().endsWith('.apk'))
|
||||
.toList();
|
||||
links.sort((a, b) => a.split('/').last.compareTo(b.split('/').last));
|
||||
if (additionalSettings['apkFilterRegEx'] != null) {
|
||||
var reg = RegExp(additionalSettings['apkFilterRegEx']);
|
||||
links = links.where((element) => reg.hasMatch(element)).toList();
|
||||
}
|
||||
if (links.isEmpty) {
|
||||
throw NoReleasesError();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user