mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
Kindle support for OSX and Windows
This commit is contained in:
parent
fae7bf3504
commit
d599956a72
@ -10,7 +10,7 @@ def devices():
|
||||
from calibre.devices.prs505.driver import PRS505
|
||||
from calibre.devices.prs700.driver import PRS700
|
||||
from calibre.devices.cybookg3.driver import CYBOOKG3
|
||||
#from calibre.devices.kindle.driver import KINDLE
|
||||
from calibre.devices.kindle.driver import KINDLE
|
||||
return (PRS500, PRS505, PRS700, CYBOOKG3)
|
||||
|
||||
import time
|
||||
@ -31,4 +31,4 @@ def strftime(epoch, zone=time.gmtime):
|
||||
src = time.strftime("%w, %d %m %Y %H:%M:%S GMT", zone(epoch)).split()
|
||||
src[0] = INVERSE_DAY_MAP[int(src[0][:-1])]+','
|
||||
src[2] = INVERSE_MONTH_MAP[int(src[2])]
|
||||
return ' '.join(src)
|
||||
return ' '.join(src)
|
||||
|
@ -16,13 +16,18 @@ class KINDLE(USBMS):
|
||||
PRODUCT_ID = 0x0001
|
||||
BCD = [0x399]
|
||||
|
||||
VENDOR_NAME = 'AMAZON'
|
||||
WINDOWS_MAIN_MEM = 'KINDLE'
|
||||
VENDOR_NAME = 'KINDLE'
|
||||
WINDOWS_MAIN_MEM = 'INTERNAL_STORAGE'
|
||||
WINDOWS_CARD_MEM = 'CARD_STORAGE'
|
||||
|
||||
OSX_MAIN_MEM = 'Kindle Internal Storage Media'
|
||||
OSX_CARD_MEM = 'Kindle Card Storage Media'
|
||||
|
||||
MAIN_MEMORY_VOLUME_LABEL = 'Kindle Main Memory'
|
||||
STORAGE_CARD_VOLUME_LABEL = 'Kindle Storage Card'
|
||||
|
||||
EBOOK_DIR_MAIN = "documents"
|
||||
SUPPORTS_SUB_DIRS = True
|
||||
|
||||
def delete_books(self, paths, end_session=True):
|
||||
for path in paths:
|
||||
|
Loading…
x
Reference in New Issue
Block a user