Skip to content

Commit

Permalink
Update kfxdedrm as suggested in #440
Browse files Browse the repository at this point in the history
  • Loading branch information
noDRM committed Dec 21, 2023
1 parent 5492dcd commit bf2471e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DeDRM_plugin/kfxdedrm.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def decrypt_voucher(self, totalpids):
# Belt and braces. PIDs should be unicode strings, but just in case...
if isinstance(pid, bytes):
pid = pid.decode('ascii')
for dsn_len,secret_len in [(0,0), (16,0), (16,40), (32,40), (40,0), (40,40)]:
for dsn_len,secret_len in [(0,0), (16,0), (16,40), (32,0), (32,40), (40,0), (40,40)]:
if len(pid) == dsn_len + secret_len:
break # split pid into DSN and account secret
else:
Expand Down

0 comments on commit bf2471e

Please sign in to comment.