Fix #1994 (Save to disk or send to device changes author sort order)

This commit is contained in:
Kovid Goyal 2009-04-23 18:43:11 -07:00
parent 84d7790836
commit fa341347de

View File

@ -117,7 +117,11 @@ class MetadataUpdater(object):
def update(self, mi):
recs = []
if mi.authors:
from calibre.ebooks.mobi.from_any import config
if mi.author_sort and config().parse().prefer_author_sort:
authors = mi.author_sort
recs.append((100, authors.encode(self.codec, 'replace')))
elif mi.authors:
authors = '; '.join(mi.authors)
recs.append((100, authors.encode(self.codec, 'replace')))
if mi.publisher: