mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-11 01:20:16 +02:00
F-Droid small fix
This commit is contained in:
@@ -86,13 +86,11 @@ class FDroid extends AppSource {
|
|||||||
var res = await sourceRequest(
|
var res = await sourceRequest(
|
||||||
'https://gitlab.com/fdroid/fdroiddata/-/raw/master/metadata/$appId.yml');
|
'https://gitlab.com/fdroid/fdroiddata/-/raw/master/metadata/$appId.yml');
|
||||||
var lines = res.body.split('\n');
|
var lines = res.body.split('\n');
|
||||||
String author = lines
|
var authorLines = lines.where((l) => l.startsWith('AuthorName: '));
|
||||||
.where((l) => l.startsWith('AuthorName: '))
|
if (authorLines.isNotEmpty) {
|
||||||
.first
|
details.names.author =
|
||||||
.split(': ')
|
authorLines.first.split(': ').sublist(1).join(': ');
|
||||||
.sublist(1)
|
}
|
||||||
.join(': ');
|
|
||||||
details.names.author = author;
|
|
||||||
var changelogUrls = lines.where((l) => l.startsWith('Changelog: '));
|
var changelogUrls = lines.where((l) => l.startsWith('Changelog: '));
|
||||||
if (changelogUrls.isNotEmpty) {
|
if (changelogUrls.isNotEmpty) {
|
||||||
details.changeLog = changelogUrls.first;
|
details.changeLog = changelogUrls.first;
|
||||||
|
Reference in New Issue
Block a user