From 454286b08b62edd393babd65eea424d99308d474 Mon Sep 17 00:00:00 2001 From: Mike Vastola Date: Wed, 14 Nov 2018 18:01:25 -0500 Subject: [PATCH] Small fix to bug in K4/Mobi DeDRM with unicode filenames. Fixes #658 --- src/k4mobidedrm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k4mobidedrm.py b/src/k4mobidedrm.py index 1ce1f35..c6ab3ab 100644 --- a/src/k4mobidedrm.py +++ b/src/k4mobidedrm.py @@ -269,7 +269,7 @@ def decryptBook(infile, outdir, kDatabaseFiles, androidFiles, serials, pids): re.match('^{0-9A-F-}{36}$', orig_fn_root) ): # Kindle for PC / Mac / Android / Fire / iOS clean_title = cleanup_name(book.getBookTitle()) - outfilename = '{}_{}'.format(orig_fn_root, clean_title) + outfilename = u'{}_{}'.format(orig_fn_root, clean_title) else: # E Ink Kindle, which already uses a reasonable name outfilename = orig_fn_root