From b262e115d31cdeed154afb05fd0837d0081ce062 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Thu, 21 Jul 2022 17:28:04 +0100 Subject: [PATCH] Add ability to use Privacy mode on test command --- pywidevine/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pywidevine/main.py b/pywidevine/main.py index b2564d6..06df1a9 100644 --- a/pywidevine/main.py +++ b/pywidevine/main.py @@ -117,8 +117,10 @@ def license_(device: Path, pssh: str, server: str, type_: str, raw: bool, privac @main.command() @click.argument("device", type=Path) +@click.option("-p", "--privacy", is_flag=True, default=False, + help="Use Privacy Mode, off by default.") @click.pass_context -def test(ctx: click.Context, device: Path): +def test(ctx: click.Context, device: Path, privacy: bool): """ Test the CDM code by getting Content Keys for Bitmovin's Art of Motion example. https://bitmovin.com/demos/drm @@ -152,7 +154,8 @@ def test(ctx: click.Context, device: Path): pssh=pssh, server=license_server, type_=LicenseType.Name(license_type), - raw=raw + raw=raw, + privacy=privacy )