mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2643 (AttributeError: 'BookHeader' object has no attribute 'title')
This commit is contained in:
parent
9e1a17f5be
commit
4c586ff916
@ -114,6 +114,7 @@ class BookHeader(object):
|
|||||||
if len(raw) <= 16:
|
if len(raw) <= 16:
|
||||||
self.codec = 'cp1251'
|
self.codec = 'cp1251'
|
||||||
self.extra_flags = 0
|
self.extra_flags = 0
|
||||||
|
self.title = _('Unknown')
|
||||||
self.language = 'ENGLISH'
|
self.language = 'ENGLISH'
|
||||||
self.sublanguage = 'NEUTRAL'
|
self.sublanguage = 'NEUTRAL'
|
||||||
self.exth_flag, self.exth = 0, None
|
self.exth_flag, self.exth = 0, None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user