mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 05:15:21 +01:00
Throw away empty icon specifications in icon rule evaluation
This commit is contained in:
parent
87eb1fb164
commit
0a02aa4827
1 changed files with 2 additions and 1 deletions
|
|
@ -117,7 +117,8 @@ def __call__(self, id_, fmts, cache_index, db, icon_cache, icon_bitmap_cache,
|
|||
template_cache=template_cache)
|
||||
if not rule_icons:
|
||||
continue
|
||||
icon_list = [ic.strip() for ic in rule_icons.split(':')]
|
||||
icon_list = [ic.strip() for ic in rule_icons.split(':') if ic.strip()]
|
||||
print(icon_list)
|
||||
icons.extend(icon_list)
|
||||
if icon_list and not kind.endswith('_composed'):
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue