diff --git a/fdroid/index.go b/fdroid/index.go index 1716c19..119ea7e 100644 --- a/fdroid/index.go +++ b/fdroid/index.go @@ -59,6 +59,7 @@ type App struct { } type Localization struct { + Name string `json:"name"` Summary string `json:"summary"` Description string `json:"description"` } @@ -274,6 +275,9 @@ func LoadIndexJSON(r io.Reader) (*Index, error) { english, enOK = app.Localized["en-US"] } + if app.Name == "" && enOK { + app.Name = english.Name + } // TODO: why does the json index contain html escapes? app.Name = html.UnescapeString(app.Name)