mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Preliminary support for the Kindle Fire
This commit is contained in:
parent
dbc74fa064
commit
5a9bf6f34f
@ -554,7 +554,8 @@ from calibre.devices.eb600.driver import (EB600, COOL_ER, SHINEBOOK,
|
|||||||
from calibre.devices.iliad.driver import ILIAD
|
from calibre.devices.iliad.driver import ILIAD
|
||||||
from calibre.devices.irexdr.driver import IREXDR1000, IREXDR800
|
from calibre.devices.irexdr.driver import IREXDR1000, IREXDR800
|
||||||
from calibre.devices.jetbook.driver import JETBOOK, MIBUK, JETBOOK_MINI
|
from calibre.devices.jetbook.driver import JETBOOK, MIBUK, JETBOOK_MINI
|
||||||
from calibre.devices.kindle.driver import KINDLE, KINDLE2, KINDLE_DX
|
from calibre.devices.kindle.driver import (KINDLE, KINDLE2, KINDLE_DX,
|
||||||
|
KINDLE_FIRE)
|
||||||
from calibre.devices.nook.driver import NOOK, NOOK_COLOR
|
from calibre.devices.nook.driver import NOOK, NOOK_COLOR
|
||||||
from calibre.devices.prs505.driver import PRS505
|
from calibre.devices.prs505.driver import PRS505
|
||||||
from calibre.devices.prst1.driver import PRST1
|
from calibre.devices.prst1.driver import PRST1
|
||||||
@ -656,9 +657,7 @@ plugins += [
|
|||||||
MIBUK,
|
MIBUK,
|
||||||
SHINEBOOK,
|
SHINEBOOK,
|
||||||
POCKETBOOK360, POCKETBOOK301, POCKETBOOK602, POCKETBOOK701, POCKETBOOK360P,
|
POCKETBOOK360, POCKETBOOK301, POCKETBOOK602, POCKETBOOK701, POCKETBOOK360P,
|
||||||
KINDLE,
|
KINDLE, KINDLE2, KINDLE_DX, KINDLE_FIRE,
|
||||||
KINDLE2,
|
|
||||||
KINDLE_DX,
|
|
||||||
NOOK, NOOK_COLOR,
|
NOOK, NOOK_COLOR,
|
||||||
PRS505, PRST1,
|
PRS505, PRST1,
|
||||||
ANDROID, S60, WEBOS,
|
ANDROID, S60, WEBOS,
|
||||||
|
@ -377,3 +377,21 @@ class KINDLE_DX(KINDLE2):
|
|||||||
PRODUCT_ID = [0x0003]
|
PRODUCT_ID = [0x0003]
|
||||||
BCD = [0x0100]
|
BCD = [0x0100]
|
||||||
|
|
||||||
|
class KINDLE_FIRE(KINDLE2):
|
||||||
|
|
||||||
|
name = 'Kindle Fire Device Interface'
|
||||||
|
description = _('Communicate with the Kindle Fire')
|
||||||
|
gui_name = 'Fire'
|
||||||
|
|
||||||
|
PRODUCT_ID = [0x0006]
|
||||||
|
BCD = [0x216, 0x100]
|
||||||
|
|
||||||
|
EBOOK_DIR_MAIN = 'Documents'
|
||||||
|
|
||||||
|
def get_main_ebook_dir(self, for_upload=False):
|
||||||
|
if for_upload:
|
||||||
|
return self.EBOOK_DIR_MAIN
|
||||||
|
return ''
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -107,6 +107,10 @@ class KindleDX(Kindle):
|
|||||||
name = 'Kindle DX'
|
name = 'Kindle DX'
|
||||||
id = 'kindledx'
|
id = 'kindledx'
|
||||||
|
|
||||||
|
class KindleFire(KindleDX):
|
||||||
|
name = 'Kindle Fire'
|
||||||
|
id = 'kindle_fire'
|
||||||
|
|
||||||
class Sony505(Device):
|
class Sony505(Device):
|
||||||
|
|
||||||
output_profile = 'sony'
|
output_profile = 'sony'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user