mirror of
https://github.com/noDRM/DeDRM_tools.git
synced 2024-12-29 04:37:39 +06:00
getPidList()
now returns pids as bytes instead of bytearrays
This commit is contained in:
parent
ad5cb056f0
commit
6732be1434
@ -296,14 +296,14 @@ def getPidList(md1, md2, serials=[], kDatabases=[]):
|
|||||||
|
|
||||||
for kDatabase in kDatabases:
|
for kDatabase in kDatabases:
|
||||||
try:
|
try:
|
||||||
pidlst.extend(getK4Pids(md1, md2, kDatabase))
|
pidlst.extend(map(bytes,getK4Pids(md1, md2, kDatabase)))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Error getting PIDs from database {0}: {1}".format(kDatabase[0],e.args[0]))
|
print("Error getting PIDs from database {0}: {1}".format(kDatabase[0],e.args[0]))
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
||||||
for serialnum in serials:
|
for serialnum in serials:
|
||||||
try:
|
try:
|
||||||
pidlst.extend(getKindlePids(md1, md2, serialnum))
|
pidlst.extend(map(bytes,getKindlePids(md1, md2, serialnum)))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Error getting PIDs from serial number {0}: {1}".format(serialnum ,e.args[0]))
|
print("Error getting PIDs from serial number {0}: {1}".format(serialnum ,e.args[0]))
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
Loading…
Reference in New Issue
Block a user