Permalink
Browse files

Small fix to bug in K4/Mobi DeDRM with unicode filenames.

Fixes #658
  • Loading branch information...
mvastola committed Nov 14, 2018
1 parent 9b001bf commit 454286b08b62edd393babd65eea424d99308d474
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 454286b

Please sign in to comment.