mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 09:23:14 +02:00
Fix #934564 (Incorrect metadata parsing from odt files)
This commit is contained in:
parent
c7f706348c
commit
294687eecd
1 changed files with 3 additions and 1 deletions
|
|
@ -153,7 +153,9 @@ def get_metadata(stream):
|
|||
mi = MetaInformation(None, [])
|
||||
if data.has_key('title'):
|
||||
mi.title = data['title']
|
||||
if data.has_key('creator'):
|
||||
if data.get('initial-creator', '').strip():
|
||||
mi.authors = string_to_authors(data['initial-creator'])
|
||||
elif data.has_key('creator'):
|
||||
mi.authors = string_to_authors(data['creator'])
|
||||
if data.has_key('description'):
|
||||
mi.comments = data['description']
|
||||
|
|
|
|||
Loading…
Reference in a new issue