mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:22:40 +02:00
Make Metadata.format_field work with the new identifiers dict
This commit is contained in:
parent
0a31b6ac00
commit
ce6a3e6cd7
1 changed files with 2 additions and 0 deletions
|
|
@ -595,6 +595,8 @@ def format_field_extended(self, key, series_with_index=True):
|
|||
elif key == 'series_index':
|
||||
res = self.format_series_index(res)
|
||||
elif datatype == 'text' and fmeta['is_multiple']:
|
||||
if isinstance(res, dict):
|
||||
res = [k + ':' + v for k,v in res.items()]
|
||||
res = u', '.join(sorted(res, key=sort_key))
|
||||
elif datatype == 'series' and series_with_index:
|
||||
res = res + ' [%s]'%self.format_series_index()
|
||||
|
|
|
|||
Loading…
Reference in a new issue