Implement #3069 (Skip "linear=no" items in spine) and add Ectaco JetBook to welcome wizard

This commit is contained in:
Kovid Goyal 2009-08-04 10:15:58 -06:00
parent 97c7dd07fe
commit a07a954e55
2 changed files with 10 additions and 1 deletions

View File

@ -150,7 +150,8 @@ class EbookIterator(object):
self.language = self.opf.language self.language = self.opf.language
if self.language: if self.language:
self.language = self.language.lower() self.language = self.language.lower()
self.spine = [SpineItem(i.path) for i in self.opf.spine] self.spine = [SpineItem(i.path) for i in self.opf.spine if i.is_linear]
self.spine += [SpineItem(i.path) for i in self.opf.spine if not i.is_linear]
cover = self.opf.cover cover = self.opf.cover
if self.ebook_ext in ('lit', 'mobi', 'prc', 'opf') and cover: if self.ebook_ext in ('lit', 'mobi', 'prc', 'opf') and cover:

View File

@ -63,6 +63,14 @@ class Kindle(Device):
manufacturer = 'Amazon' manufacturer = 'Amazon'
id = 'kindle' id = 'kindle'
class JetBook(Device):
output_profile = 'jetbook5'
output_format = 'EPUB'
name = 'JetBook'
manufacturer = 'Ectaco'
id = 'jetbook'
class KindleDX(Kindle): class KindleDX(Kindle):
output_profile = 'kindle_dx' output_profile = 'kindle_dx'