From 3e4da5429e6c0501a2d4549b9d657e3bd3114fda Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 10 Jul 2017 10:20:26 +0530 Subject: [PATCH] Nook driver: Remove the % character from filenames sent to the Nook. Fixes #1703284 [%-sign in filename confuses Nook reader](https://bugs.launchpad.net/calibre/+bug/1703284) --- src/calibre/devices/nook/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/nook/driver.py b/src/calibre/devices/nook/driver.py index f5b04402d2..7ee1919b52 100644 --- a/src/calibre/devices/nook/driver.py +++ b/src/calibre/devices/nook/driver.py @@ -80,7 +80,7 @@ class NOOK(USBMS): fsync(coverfile) def sanitize_path_components(self, components): - return [x.replace('#', '_') for x in components] + return [x.replace('#', '_').replace('%', '_') for x in components] class NOOK_COLOR(NOOK):