mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 04:53:33 +02:00
Fix regression that broke MOBI output in the GUI
This commit is contained in:
parent
ff97a9279f
commit
b27a2625cb
1 changed files with 4 additions and 1 deletions
|
|
@ -1541,7 +1541,10 @@ def _build_exth(self):
|
|||
exth.write(data)
|
||||
nrecs += 1
|
||||
if term == 'rights' :
|
||||
rights = unicode(oeb.metadata.rights[0]).encode('utf-8')
|
||||
try:
|
||||
rights = unicode(oeb.metadata.rights[0]).encode('utf-8')
|
||||
except:
|
||||
rights = 'Unknown'
|
||||
exth.write(pack('>II', EXTH_CODES['rights'], len(rights) + 8))
|
||||
exth.write(rights)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue