Improve asterisk handling

This commit is contained in:
relikd
2020-09-21 16:18:12 +02:00
parent 7edf470684
commit 2349b2ca8d
9 changed files with 37 additions and 39 deletions

View File

@@ -42,13 +42,12 @@ def get_name(bundle_id, langs=['us', 'de'], fallback='< App-Name >'):
def process(bundle_ids):
print('writing index: app names ...')
if bundle_ids == ['*']:
bundle_ids = list(mylib.enum_data_appids())
print(' full reset')
mylib.rm_file(index_fname()) # rebuild from ground up
load_json_if_not_already()
did_change = False
for bid in bundle_ids:
for bid in mylib.appids_in_data(bundle_ids):
names = download_itunes.app_names(bid)
if not names:
mylib.err('index-app-names', 'could not load: {}'.format(bid))