mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow sending KFX files to connected kindle devices. Fixes #1666040 [Enhancement: Add an option to send .kfx to kindle](https://bugs.launchpad.net/calibre/+bug/1666040)
This commit is contained in:
parent
0119ef97b2
commit
84ea982525
@ -335,7 +335,7 @@ class KINDLE2(KINDLE):
|
||||
name = 'Kindle 2/3/4/Touch/PaperWhite/Voyage Device Interface'
|
||||
description = _('Communicate with the Kindle 2/3/4/Touch/PaperWhite/Voyage eBook reader.')
|
||||
|
||||
FORMATS = ['azw', 'mobi', 'azw3', 'prc', 'azw1', 'tpz', 'azw4', 'pobi', 'pdf', 'txt']
|
||||
FORMATS = ['azw', 'mobi', 'azw3', 'prc', 'azw1', 'tpz', 'azw4', 'kfx', 'pobi', 'pdf', 'txt']
|
||||
DELETE_EXTS = KINDLE.DELETE_EXTS + ['.mbp1', '.mbs', '.sdr', '.han']
|
||||
# On the Touch, there's also .asc files, but not using the same basename
|
||||
# (for X-Ray & End Actions), azw3f & azw3r files, but all of them are in
|
||||
@ -415,7 +415,7 @@ class KINDLE2(KINDLE):
|
||||
return vals
|
||||
|
||||
def formats_to_scan_for(self):
|
||||
ans = USBMS.formats_to_scan_for(self) | {'azw3'}
|
||||
ans = USBMS.formats_to_scan_for(self) | {'azw3', 'kfx'}
|
||||
return ans
|
||||
|
||||
def books(self, oncard=None, end_session=True):
|
||||
@ -563,7 +563,7 @@ class KINDLE_FIRE(KINDLE2):
|
||||
name = 'Kindle Fire Device Interface'
|
||||
description = _('Communicate with the Kindle Fire')
|
||||
gui_name = 'Fire'
|
||||
FORMATS = ['azw3', 'azw', 'mobi', 'prc', 'azw1', 'tpz', 'azw4', 'pobi', 'pdf', 'txt']
|
||||
FORMATS = ['azw3', 'azw', 'mobi', 'prc', 'azw1', 'tpz', 'azw4', 'kfx', 'pobi', 'pdf', 'txt']
|
||||
|
||||
PRODUCT_ID = [0x0006]
|
||||
BCD = [0x216, 0x100]
|
||||
|
@ -19,7 +19,7 @@ class DeviceDefaults(object):
|
||||
# Amazon devices
|
||||
({'vendor':0x1949}, {
|
||||
'format_map': ['azw3', 'mobi', 'azw',
|
||||
'azw1', 'azw4', 'pdf'],
|
||||
'azw1', 'azw4', 'kfx', 'pdf'],
|
||||
'send_to': ['documents', 'books', 'kindle'],
|
||||
}
|
||||
),
|
||||
@ -61,5 +61,3 @@ class DeviceDefaults(object):
|
||||
return ans
|
||||
|
||||
return {}
|
||||
|
||||
|
||||
|
@ -35,7 +35,7 @@ BOOK_EXTENSIONS = ['lrf', 'rar', 'zip', 'rtf', 'lit', 'txt', 'txtz', 'text', 'ht
|
||||
'epub', 'fb2', 'djv', 'djvu', 'lrx', 'cbr', 'cbz', 'cbc', 'oebzip',
|
||||
'rb', 'imp', 'odt', 'chm', 'tpz', 'azw1', 'pml', 'pmlz', 'mbp', 'tan', 'snb',
|
||||
'xps', 'oxps', 'azw4', 'book', 'zbf', 'pobi', 'docx', 'docm', 'md',
|
||||
'textile', 'markdown', 'ibook', 'ibooks', 'iba', 'azw3', 'ps', 'kepub']
|
||||
'textile', 'markdown', 'ibook', 'ibooks', 'iba', 'azw3', 'ps', 'kepub', 'kfx']
|
||||
|
||||
|
||||
class HTMLRenderer(object):
|
||||
|
Loading…
x
Reference in New Issue
Block a user