]> xmof Git - DeDRM.git/commit
Fix kgenpids string vs bytes usage for python3 for calibre 5.1.
authorJeremy Whiting <jpwhiting@kde.org>
Fri, 2 Oct 2020 06:19:49 +0000 (00:19 -0600)
committerJeremy Whiting <jpwhiting@kde.org>
Sun, 4 Oct 2020 04:36:35 +0000 (22:36 -0600)
commitdca0cf7d00ae40f04f99a94f0f47567dad1b9c72
tree6a40109448ebc7c0df9510983eeacb77e4c850ae
parent62e0a69089b7061fe91022d3118352e001af66b0
Fix kgenpids string vs bytes usage for python3 for calibre 5.1.

In order to properly get pids etc. we need to pass bytes to MD5 and SHA1
instead of unicode strings. Also ord() is no longer needed since
data is bytes value gets int and we need chr() to get characters from
the mapping bytearrays.
DeDRM_plugin/kgenpids.py