mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Fix #3117 (Calibre inverts author names even when it doesn't need to)
This commit is contained in:
parent
d55a37c41f
commit
d668f536d6
1 changed files with 4 additions and 1 deletions
|
|
@ -78,7 +78,10 @@ def process_metadata(self, id, content, codec):
|
|||
if id == 100:
|
||||
if self.mi.authors == [_('Unknown')]:
|
||||
self.mi.authors = []
|
||||
self.mi.authors.append(content.decode(codec, 'ignore').strip())
|
||||
au = content.decode(codec, 'ignore').strip()
|
||||
self.mi.authors.append(au)
|
||||
if re.match(r'\S+?\s*,\s+\S+', au.strip()):
|
||||
self.mi.author_sort = au.strip()
|
||||
elif id == 101:
|
||||
self.mi.publisher = content.decode(codec, 'ignore').strip()
|
||||
elif id == 103:
|
||||
|
|
|
|||
Loading…
Reference in a new issue