mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Allow send to device to send LRX files to the SONY readers. Fixes #1779 (LRX format not supported - Error converting to LRF)
This commit is contained in:
parent
0fb612bb2f
commit
cfaa53f8ff
@ -96,7 +96,7 @@ class PRS500(Device):
|
|||||||
# Location of cache.xml on storage card in device
|
# Location of cache.xml on storage card in device
|
||||||
CACHE_XML = "/Sony Reader/database/cache.xml"
|
CACHE_XML = "/Sony Reader/database/cache.xml"
|
||||||
# Ordered list of supported formats
|
# Ordered list of supported formats
|
||||||
FORMATS = ["lrf", "rtf", "pdf", "txt"]
|
FORMATS = ["lrf", "lrx", "rtf", "pdf", "txt"]
|
||||||
# Height for thumbnails of books/images on the device
|
# Height for thumbnails of books/images on the device
|
||||||
THUMBNAIL_HEIGHT = 68
|
THUMBNAIL_HEIGHT = 68
|
||||||
# Directory on card to which books are copied
|
# Directory on card to which books are copied
|
||||||
|
@ -27,12 +27,12 @@ class File(object):
|
|||||||
|
|
||||||
|
|
||||||
class PRS505(Device):
|
class PRS505(Device):
|
||||||
VENDOR_ID = 0x054c #: SONY Vendor Id
|
VENDOR_ID = 0x054c #: SONY Vendor Id
|
||||||
PRODUCT_ID = 0x031e #: Product Id for the PRS-505
|
PRODUCT_ID = 0x031e #: Product Id for the PRS-505
|
||||||
BCD = [0x229] #: Needed to disambiguate 505 and 700 on linux
|
BCD = [0x229] #: Needed to disambiguate 505 and 700 on linux
|
||||||
PRODUCT_NAME = 'PRS-505'
|
PRODUCT_NAME = 'PRS-505'
|
||||||
VENDOR_NAME = 'SONY'
|
VENDOR_NAME = 'SONY'
|
||||||
FORMATS = ['lrf', 'epub', "rtf", "pdf", "txt"]
|
FORMATS = ['lrf', 'epub', 'lrx', 'rtf', 'pdf', 'txt']
|
||||||
|
|
||||||
MEDIA_XML = 'database/cache/media.xml'
|
MEDIA_XML = 'database/cache/media.xml'
|
||||||
CACHE_XML = 'Sony Reader/database/cache.xml'
|
CACHE_XML = 'Sony Reader/database/cache.xml'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user