mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-30 20:40:16 +02:00
Fix broken thrid-party f-droid search (#1094)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user