Fix broken thrid-party f-droid search (#1094)

This commit is contained in:
Imran Remtulla
2023-11-18 14:53:43 -05:00
parent 6102ab4be8
commit 4c53b58fd8
3 changed files with 9 additions and 5 deletions

View File

@@ -706,7 +706,8 @@ class SourceProvider {
// Returns errors in [results, errors] instead of throwing them
Future<List<dynamic>> getAppsByURLNaive(List<String> urls,
{List<String> alreadyAddedUrls = const []}) async {
{List<String> alreadyAddedUrls = const [],
AppSource? sourceOverride}) async {
List<App> apps = [];
Map<String, dynamic> errors = {};
for (var url in urls) {
@@ -714,7 +715,7 @@ class SourceProvider {
if (alreadyAddedUrls.contains(url)) {
throw ObtainiumError(tr('appAlreadyAdded'));
}
var source = getSource(url);
var source = sourceOverride ?? getSource(url);
apps.add(await getApp(
source,
url,