mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Assume dc:creator without a role is an author when reading opf files.
This commit is contained in:
parent
9c214536b7
commit
8e62e77168
@ -130,6 +130,8 @@ class OPFReader(MetaInformation):
|
||||
role = elem.get('role')
|
||||
if not role:
|
||||
role = elem.get('opf:role')
|
||||
if not role:
|
||||
role = 'aut'
|
||||
if role == 'aut':
|
||||
raw = self.ENTITY_PATTERN.sub(entity_to_unicode, elem.string)
|
||||
au = raw.split(',')
|
||||
|
Loading…
x
Reference in New Issue
Block a user