mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #934564 (Incorrect metadata parsing from odt files)
This commit is contained in:
parent
c7f706348c
commit
294687eecd
@ -153,7 +153,9 @@ def get_metadata(stream):
|
|||||||
mi = MetaInformation(None, [])
|
mi = MetaInformation(None, [])
|
||||||
if data.has_key('title'):
|
if data.has_key('title'):
|
||||||
mi.title = data['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'])
|
mi.authors = string_to_authors(data['creator'])
|
||||||
if data.has_key('description'):
|
if data.has_key('description'):
|
||||||
mi.comments = data['description']
|
mi.comments = data['description']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user