This commit is contained in:
Kovid Goyal 2008-05-30 19:03:26 -07:00
parent 1ca2299f5c
commit 2c063eb03a
2 changed files with 4 additions and 1 deletions

View File

@ -285,6 +285,7 @@ class BooksModel(QAbstractTableModel):
'authors' : au, 'authors' : au,
'cover' : self.db.cover(row), 'cover' : self.db.cover(row),
'tags' : tags, 'tags' : tags,
'comments': self.db.comments(row),
} }
if series is not None: if series is not None:
mi['tag order'] = {series:self.db.books_in_series_of(row)} mi['tag order'] = {series:self.db.books_in_series_of(row)}

View File

@ -626,7 +626,9 @@ class Main(MainWindow, Ui_MainWindow):
for a in aus: for a in aus:
aus2.extend(a.split('&')) aus2.extend(a.split('&'))
try: 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: except:
print 'Error setting metadata in book:', mi['title'] print 'Error setting metadata in book:', mi['title']
traceback.print_exc() traceback.print_exc()