Refactor combined.json

This commit is contained in:
relikd
2020-09-07 17:11:34 +02:00
parent f2b9e87f01
commit 5f1f6e4124
7 changed files with 158 additions and 129 deletions

View File

@@ -8,11 +8,11 @@ def gen_obj(bundle_id):
icon = '/app/{0}/icon.png'.format(bundle_id)
else:
icon = '/static/app-template.svg'
try:
name = mylib.json_read_meta(bundle_id, 'de')['trackCensoredName']
except Exception:
name = '< App-Name >'
return {'id': bundle_id, 'name': name, 'img': icon}
return {
'id': bundle_id,
'name': mylib.app_name(bundle_id, '< App-Name >'),
'img': icon
}
def gen_entry(obj):