mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5241 (Support for KoboReader ePub)
This commit is contained in:
parent
4c9f560901
commit
138882aabd
@ -454,7 +454,7 @@ from calibre.devices.hanvon.driver import N516, EB511, ALEX
|
|||||||
from calibre.devices.edge.driver import EDGE
|
from calibre.devices.edge.driver import EDGE
|
||||||
from calibre.devices.teclast.driver import TECLAST_K3
|
from calibre.devices.teclast.driver import TECLAST_K3
|
||||||
from calibre.devices.sne.driver import SNE
|
from calibre.devices.sne.driver import SNE
|
||||||
from calibre.devices.misc import PALMPRE
|
from calibre.devices.misc import PALMPRE, KOBO
|
||||||
|
|
||||||
from calibre.ebooks.metadata.fetch import GoogleBooks, ISBNDB, Amazon
|
from calibre.ebooks.metadata.fetch import GoogleBooks, ISBNDB, Amazon
|
||||||
from calibre.library.catalog import CSV_XML, EPUB_MOBI
|
from calibre.library.catalog import CSV_XML, EPUB_MOBI
|
||||||
@ -536,7 +536,8 @@ plugins += [
|
|||||||
EDGE,
|
EDGE,
|
||||||
SNE,
|
SNE,
|
||||||
ALEX,
|
ALEX,
|
||||||
PALMPRE
|
PALMPRE,
|
||||||
|
KOBO,
|
||||||
]
|
]
|
||||||
plugins += [x for x in list(locals().values()) if isinstance(x, type) and \
|
plugins += [x for x in list(locals().values()) if isinstance(x, type) and \
|
||||||
x.__name__.endswith('MetadataReader')]
|
x.__name__.endswith('MetadataReader')]
|
||||||
|
@ -28,3 +28,24 @@ class PALMPRE(USBMS):
|
|||||||
|
|
||||||
EBOOK_DIR_MAIN = 'E-books'
|
EBOOK_DIR_MAIN = 'E-books'
|
||||||
|
|
||||||
|
class KOBO(USBMS):
|
||||||
|
|
||||||
|
name = 'Kobo Reader Device Interface'
|
||||||
|
gui_name = 'Kobo Reader'
|
||||||
|
description = _('Communicate with the Kobo Reader')
|
||||||
|
author = 'Kovid Goyal'
|
||||||
|
|
||||||
|
supported_platforms = ['windows', 'osx', 'linux']
|
||||||
|
|
||||||
|
# Ordered list of supported formats
|
||||||
|
FORMATS = ['epub', 'pdf']
|
||||||
|
|
||||||
|
VENDOR_ID = [0x2237]
|
||||||
|
PRODUCT_ID = [0x4161]
|
||||||
|
BCD = [0x0110]
|
||||||
|
|
||||||
|
VENDOR_NAME = 'KOBO_INC'
|
||||||
|
WINDOWS_MAIN_MEM = '.KOBOEREADER'
|
||||||
|
|
||||||
|
EBOOK_DIR_MAIN = 'e-books'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user