mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
...
This commit is contained in:
parent
bfb7a3107e
commit
75613b4eb5
@ -372,8 +372,10 @@ class BrowseServer(object):
|
||||
if meta['is_custom'] and category not in displayed_custom_fields:
|
||||
continue
|
||||
# get the icon files
|
||||
if category in self.icon_map:
|
||||
icon = '_'+quote(self.icon_map[category.partition('.')[0]])
|
||||
main_cat = (category.partition('.')[0]) if hasattr(category,
|
||||
'partition') else category
|
||||
if main_cat in self.icon_map:
|
||||
icon = '_'+quote(self.icon_map[main_cat])
|
||||
elif category in category_icon_map:
|
||||
icon = category_icon_map[category]
|
||||
elif meta['is_custom']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user