mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-20 17:53:46 +02:00
Fix error in Vivo Store search when no result found (#2494)
This commit is contained in:
@@ -70,12 +70,14 @@ class VivoAppStore extends AppSource {
|
||||
throw NoReleasesError();
|
||||
}
|
||||
Map<String, List<String>> results = {};
|
||||
var resultsJson = json['data']['appSearchResponse']['value'];
|
||||
for (var item in (resultsJson as List<dynamic>)) {
|
||||
results['$appDetailUrl${item['id']}'] = [
|
||||
item['title_zh'].toString(),
|
||||
item['developer'].toString(),
|
||||
];
|
||||
var resultsJson = json['data']['appSearchResponse']?['value'];
|
||||
if (resultsJson != null) {
|
||||
for (var item in (resultsJson as List<dynamic>)) {
|
||||
results['$appDetailUrl${item['id']}'] = [
|
||||
item['title_zh'].toString(),
|
||||
item['developer'].toString(),
|
||||
];
|
||||
}
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
Reference in New Issue
Block a user