diff --git a/cmd/fdroidcl/show.go b/cmd/fdroidcl/show.go index ecd85d5..10ede53 100644 --- a/cmd/fdroidcl/show.go +++ b/cmd/fdroidcl/show.go @@ -30,8 +30,23 @@ func findApps(ids []string) []*fdroidcl.App { } result := make([]*fdroidcl.App, len(ids)) for i, id := range ids { - app, _ := apps[id] - result[i] = app + app, e := apps[id] + if e { + result[i] = app + continue + } + var found *fdroidcl.App + for j := range index.Apps { + app = &index.Apps[j] + if strings.Contains(strings.ToLower(app.ID), id) { + if found != nil { + found = nil + break + } + found = app + } + } + result[i] = found } return result }