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:
|
if meta['is_custom'] and category not in displayed_custom_fields:
|
||||||
continue
|
continue
|
||||||
# get the icon files
|
# get the icon files
|
||||||
if category in self.icon_map:
|
main_cat = (category.partition('.')[0]) if hasattr(category,
|
||||||
icon = '_'+quote(self.icon_map[category.partition('.')[0]])
|
'partition') else category
|
||||||
|
if main_cat in self.icon_map:
|
||||||
|
icon = '_'+quote(self.icon_map[main_cat])
|
||||||
elif category in category_icon_map:
|
elif category in category_icon_map:
|
||||||
icon = category_icon_map[category]
|
icon = category_icon_map[category]
|
||||||
elif meta['is_custom']:
|
elif meta['is_custom']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user