From c1451ad966a77822c68dcc95e4b000e5be586f8e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 16 May 2013 23:45:28 +0530 Subject: [PATCH] Nook driver: Scan for ebooks in the entire main memory, not just under My Files --- src/calibre/devices/nook/driver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/devices/nook/driver.py b/src/calibre/devices/nook/driver.py index 180d56be77..fafc1b5062 100644 --- a/src/calibre/devices/nook/driver.py +++ b/src/calibre/devices/nook/driver.py @@ -27,7 +27,7 @@ class NOOK(USBMS): # Ordered list of supported formats FORMATS = ['epub', 'pdb', 'pdf'] - VENDOR_ID = [0x2080, 0x18d1] # 0x18d1 is for softrooted nook + VENDOR_ID = [0x2080, 0x18d1] # 0x18d1 is for softrooted nook PRODUCT_ID = [0x001] BCD = [0x322] @@ -53,7 +53,6 @@ class NOOK(USBMS): except ImportError: import Image, ImageDraw - coverdata = getattr(metadata, 'thumbnail', None) if coverdata and coverdata[2]: cover = Image.open(cStringIO.StringIO(coverdata[2])) @@ -87,12 +86,13 @@ class NOOK_COLOR(NOOK): PRODUCT_ID = [0x002, 0x003, 0x004] if isosx: - PRODUCT_ID.append(0x005) # Nook HD+ + PRODUCT_ID.append(0x005) # Nook HD+ BCD = [0x216] WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['EBOOK_DISK', 'NOOK_TABLET', 'NOOK_SIMPLETOUCH'] EBOOK_DIR_MAIN = 'My Files' + # SCAN_FROM_ROOT = True NEWS_IN_FOLDER = False def upload_cover(self, path, filename, metadata, filepath):