From 64e5478ad10fad93bf7bdc032f36ecbb8ee95250 Mon Sep 17 00:00:00 2001 From: Aldo Bleeker <2095835+ableeker@users.noreply.github.com> Date: Mon, 20 Sep 2021 00:13:09 +0200 Subject: [PATCH] Fix --- DeDRM_plugin/topazextract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeDRM_plugin/topazextract.py b/DeDRM_plugin/topazextract.py index d7e608e..66f09fd 100644 --- a/DeDRM_plugin/topazextract.py +++ b/DeDRM_plugin/topazextract.py @@ -350,7 +350,7 @@ class TopazBook: # use 8 digit pids here pid = pid[0:8] if isinstance(pid, str): - pid = pid.encode('utf-8') + pid = pid.encode('latin-1') print("Trying: {0}".format(pid)) bookKeys = [] data = keydata