diff --git a/README.md b/README.md index 30dd68d..8df0a21 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Calibre plugins for [CrossPoint Reader](https://github.com/crosspoint-reader). ### CrossPoint Reader -A wireless device plugin that uploads EPUB files to CrossPoint Reader over WebSocket. The plugin auto-discovers devices on the local network via UDP broadcast. +A wireless device plugin that uploads EPUB and XTC files to CrossPoint Reader over WebSocket. The plugin auto-discovers devices on the local network via UDP broadcast. See [crosspoint_reader/README.md](crosspoint_reader/README.md) for protocol details and configuration. diff --git a/crosspoint_reader-v0.1.1.zip b/crosspoint_reader-v0.1.1.zip deleted file mode 100644 index eafef8e..0000000 Binary files a/crosspoint_reader-v0.1.1.zip and /dev/null differ diff --git a/crosspoint_reader-v0.1.5.zip b/crosspoint_reader-v0.1.5.zip new file mode 100644 index 0000000..f864f35 Binary files /dev/null and b/crosspoint_reader-v0.1.5.zip differ diff --git a/crosspoint_reader/README.md b/crosspoint_reader/README.md index fa0b7dd..0653173 100644 --- a/crosspoint_reader/README.md +++ b/crosspoint_reader/README.md @@ -1,7 +1,7 @@ # CrossPoint Reader Calibre Plugin This plugin adds CrossPoint Reader as a wireless device in Calibre. It uploads -EPUB files over WebSocket to the CrossPoint web server. +EPUB and XTC files over WebSocket to the CrossPoint web server. Protocol: - Connect to ws://:/ diff --git a/crosspoint_reader/driver.py b/crosspoint_reader/driver.py index 8dc9f7e..557b5f3 100644 --- a/crosspoint_reader/driver.py +++ b/crosspoint_reader/driver.py @@ -21,15 +21,15 @@ class CrossPointDevice(DeviceConfig, DevicePlugin): description = 'CrossPoint Reader wireless device' supported_platforms = ['windows', 'osx', 'linux'] author = 'CrossPoint Reader' - version = (0, 1, 4) + version = (0, 1, 5) # Invalid USB vendor info to avoid USB scans matching. VENDOR_ID = [0xFFFF] PRODUCT_ID = [0xFFFF] BCD = [0xFFFF] - FORMATS = ['epub'] - ALL_FORMATS = ['epub'] + FORMATS = ['epub', 'xtc'] + ALL_FORMATS = ['epub', 'xtc'] SUPPORTS_SUB_DIRS = True MUST_READ_METADATA = False MANAGES_DEVICE_PRESENCE = True @@ -151,7 +151,7 @@ def save_settings(self, config_widget): config_widget.save() def _list_files_recursive(self, path='/'): - """Return a flat list of (lpath, size) for all EPUB files on device.""" + """Return a flat list of (lpath, size) for all EPUB and XTC files on device.""" results = [] try: entries = self._http_get_json('/api/files', params={'path': path}) @@ -168,7 +168,7 @@ def _list_files_recursive(self, path='/'): entry_path = path + '/' + name if entry.get('isDirectory'): results.extend(self._list_files_recursive(entry_path)) - elif entry.get('isEpub'): + elif entry.get('isEpub') or entry.get('isXTC'): results.append((entry_path, entry.get('size', 0))) return results