mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-16 14:46:44 +02:00
APKPure, SourceHut, Bugfixes
This commit is contained in:
@ -66,14 +66,14 @@ class FDroid extends AppSource {
|
||||
String? appId = tryInferringAppId(standardUrl);
|
||||
String host = Uri.parse(standardUrl).host;
|
||||
return getAPKUrlsFromFDroidPackagesAPIResponse(
|
||||
await get(Uri.parse('https://$host/api/v1/packages/$appId')),
|
||||
await sourceRequest('https://$host/api/v1/packages/$appId'),
|
||||
'https://$host/repo/$appId',
|
||||
standardUrl);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Map<String, List<String>>> search(String query) async {
|
||||
Response res = await get(Uri.parse('https://search.$host/?q=$query'));
|
||||
Response res = await sourceRequest('https://search.$host/?q=$query');
|
||||
if (res.statusCode == 200) {
|
||||
Map<String, List<String>> urlsWithDescriptions = {};
|
||||
parse(res.body).querySelectorAll('.package-header').forEach((e) {
|
||||
|
Reference in New Issue
Block a user