mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-27 00:53:07 +02:00
Fix #643
This commit is contained in:
parent
1ca2299f5c
commit
2c063eb03a
2 changed files with 4 additions and 1 deletions
|
|
@ -285,6 +285,7 @@ def get_metadata(self, rows):
|
|||
'authors' : au,
|
||||
'cover' : self.db.cover(row),
|
||||
'tags' : tags,
|
||||
'comments': self.db.comments(row),
|
||||
}
|
||||
if series is not None:
|
||||
mi['tag order'] = {series:self.db.books_in_series_of(row)}
|
||||
|
|
|
|||
|
|
@ -626,7 +626,9 @@ def sync_to_device(self, on_card):
|
|||
for a in aus:
|
||||
aus2.extend(a.split('&'))
|
||||
try:
|
||||
set_metadata(f, MetaInformation(mi['title'], aus2), f.name.rpartition('.')[2])
|
||||
smi = MetaInformation(mi['title'], aus2)
|
||||
smi.comments = mi.get('comments', None)
|
||||
set_metadata(f, smi, f.name.rpartition('.')[2])
|
||||
except:
|
||||
print 'Error setting metadata in book:', mi['title']
|
||||
traceback.print_exc()
|
||||
|
|
|
|||
Loading…
Reference in a new issue