mirror of
https://git.gay/ready-dl/pyplayready.git
synced 2025-08-06 22:15:51 +00:00
+ Fixed crash on export-device for v2 devices
This commit is contained in:
parent
78fb7be3b7
commit
46ddaaf5b0
3 changed files with 6 additions and 5 deletions
|
@ -277,9 +277,10 @@ def export_device(ctx: click.Context, prd_path: Path, out_dir: Optional[Path] =
|
|||
log.info(f"L{device.security_level} {device.get_name()}")
|
||||
log.info(f"Saving to: {out_path}")
|
||||
|
||||
group_key_path = out_path / "zgpriv.dat"
|
||||
group_key_path.write_bytes(device.group_key.dumps())
|
||||
log.info("Exported Group Key as zgpriv.dat")
|
||||
if device.group_key:
|
||||
group_key_path = out_path / "zgpriv.dat"
|
||||
group_key_path.write_bytes(device.group_key.dumps())
|
||||
log.info("Exported Group Key as zgpriv.dat")
|
||||
|
||||
private_key_path = out_path / "zprivencr.dat"
|
||||
private_key_path.write_bytes(device.encryption_key.dumps())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue