From cfaa53f8ff927d343f63fb507c0268e7d06a3f08 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 6 Feb 2009 13:05:11 -0800 Subject: [PATCH] Allow send to device to send LRX files to the SONY readers. Fixes #1779 (LRX format not supported - Error converting to LRF) --- src/calibre/devices/prs500/driver.py | 2 +- src/calibre/devices/prs505/driver.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/devices/prs500/driver.py b/src/calibre/devices/prs500/driver.py index cca71376d4..2f1caaee9d 100755 --- a/src/calibre/devices/prs500/driver.py +++ b/src/calibre/devices/prs500/driver.py @@ -96,7 +96,7 @@ class PRS500(Device): # Location of cache.xml on storage card in device CACHE_XML = "/Sony Reader/database/cache.xml" # 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 THUMBNAIL_HEIGHT = 68 # Directory on card to which books are copied diff --git a/src/calibre/devices/prs505/driver.py b/src/calibre/devices/prs505/driver.py index 8d505683aa..9308af2c5a 100644 --- a/src/calibre/devices/prs505/driver.py +++ b/src/calibre/devices/prs505/driver.py @@ -27,12 +27,12 @@ class File(object): class PRS505(Device): - VENDOR_ID = 0x054c #: SONY Vendor Id - PRODUCT_ID = 0x031e #: Product Id for the PRS-505 + VENDOR_ID = 0x054c #: SONY Vendor Id + PRODUCT_ID = 0x031e #: Product Id for the PRS-505 BCD = [0x229] #: Needed to disambiguate 505 and 700 on linux PRODUCT_NAME = 'PRS-505' VENDOR_NAME = 'SONY' - FORMATS = ['lrf', 'epub', "rtf", "pdf", "txt"] + FORMATS = ['lrf', 'epub', 'lrx', 'rtf', 'pdf', 'txt'] MEDIA_XML = 'database/cache/media.xml' CACHE_XML = 'Sony Reader/database/cache.xml'