mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Implement #3069 (Skip "linear=no" items in spine) and add Ectaco JetBook to welcome wizard
This commit is contained in:
parent
97c7dd07fe
commit
a07a954e55
@ -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:
|
||||||
|
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user