mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix transient error during startup when using subtititle templates in the cover browser
This commit is contained in:
parent
07395c8c3a
commit
b95d0a537d
@ -133,6 +133,8 @@ if pictureflow is not None:
|
||||
def subtitle(self, index):
|
||||
try:
|
||||
db = self.model.db.new_api
|
||||
if not self.template_inited:
|
||||
self.init_template(db)
|
||||
field = db.pref('cover_browser_subtitle_field', 'rating')
|
||||
if field and field != 'none':
|
||||
book_id = self.model.id(index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user