diff --git a/pyplayready/__init__.py b/pyplayready/__init__.py index f71132f..958acde 100644 --- a/pyplayready/__init__.py +++ b/pyplayready/__init__.py @@ -10,4 +10,4 @@ from .session import * from .xml_key import * from .xmrlicense import * -__version__ = "0.4.0" +__version__ = "0.4.1" diff --git a/pyplayready/main.py b/pyplayready/main.py index 55cbf06..71dc1b5 100644 --- a/pyplayready/main.py +++ b/pyplayready/main.py @@ -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()) diff --git a/pyproject.toml b/pyproject.toml index 1867c6d..68a6a5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "pyplayready" -version = "0.4.0" +version = "0.4.1" description = "pyplayready CDM (Content Decryption Module) implementation in Python." license = "CC BY-NC-ND 4.0" authors = ["DevLARLEY, Erevoc", "DevataDev"]