mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #1471976 [Folder Device Interface add ppt extension](https://bugs.launchpad.net/calibre/+bug/1471976)
This commit is contained in:
parent
a0cefcf704
commit
9bce68c323
@ -17,7 +17,7 @@ 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 = list(BOOK_EXTENSIONS)
|
||||
FORMATS = list(BOOK_EXTENSIONS) + ['ppt', 'pptx']
|
||||
|
||||
VENDOR_ID = [0xffff]
|
||||
PRODUCT_ID = [0xffff]
|
||||
@ -40,7 +40,7 @@ class FOLDER_DEVICE(USBMS):
|
||||
BCD = [0xffff]
|
||||
DEVICE_PLUGBOARD_NAME = 'FOLDER_DEVICE'
|
||||
|
||||
THUMBNAIL_HEIGHT = 68 # Height for thumbnails on device
|
||||
THUMBNAIL_HEIGHT = 68 # Height for thumbnails on device
|
||||
|
||||
CAN_SET_METADATA = ['title', 'authors']
|
||||
SUPPORTS_SUB_DIRS = True
|
||||
@ -58,7 +58,7 @@ class FOLDER_DEVICE(USBMS):
|
||||
|
||||
def __init__(self, path):
|
||||
if not os.path.isdir(path):
|
||||
raise IOError, 'Path is not a folder'
|
||||
raise IOError('Path is not a folder')
|
||||
path = USBMS.normalize_path(path)
|
||||
if path.endswith(os.sep):
|
||||
self._main_prefix = path
|
||||
@ -105,5 +105,3 @@ class FOLDER_DEVICE(USBMS):
|
||||
@classmethod
|
||||
def save_settings(cls, config_widget):
|
||||
return FOLDER_DEVICE_FOR_CONFIG.save_settings(config_widget)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user