From 3467ba839b371d3d0464b9b7076f502a738aa9a1 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Mon, 8 Aug 2011 17:25:27 +0100 Subject: [PATCH] Make the folder device accept all ebook extensions listed in ebooks.BOOK_EXTENSIONS. --- src/calibre/devices/folder_device/driver.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/folder_device/driver.py b/src/calibre/devices/folder_device/driver.py index c08448051d..c819e71d0f 100644 --- a/src/calibre/devices/folder_device/driver.py +++ b/src/calibre/devices/folder_device/driver.py @@ -6,6 +6,7 @@ Created on 15 May 2010 import os from calibre.devices.usbms.driver import USBMS, BookList +from calibre.ebooks import BOOK_EXTENSIONS # This class is added to the standard device plugin chain, so that it can # be configured. It has invalid vendor_id etc, so it will never match a @@ -16,8 +17,8 @@ class FOLDER_DEVICE_FOR_CONFIG(USBMS): description = _('Use an arbitrary folder as a device.') author = 'John Schember/Charles Haley' supported_platforms = ['windows', 'osx', 'linux'] - FORMATS = ['epub', 'fb2', 'mobi', 'azw', 'lrf', 'tcr', 'pmlz', 'lit', - 'rtf', 'rb', 'pdf', 'oeb', 'txt', 'pdb', 'prc'] + FORMATS = BOOK_EXTENSIONS + VENDOR_ID = [0xffff] PRODUCT_ID = [0xffff] BCD = [0xffff]