From fc9a2904827336d3ac0fe6093718b5652185ecad Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 25 Jul 2022 00:13:33 +0100 Subject: [PATCH] Device: Move structure revision notes next to the structures --- pywidevine/device.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pywidevine/device.py b/pywidevine/device.py index 45ce92e..4e29351 100644 --- a/pywidevine/device.py +++ b/pywidevine/device.py @@ -30,6 +30,7 @@ class _Structures: "version" / Int8ub ) + # - Removed vmp and vmp_len as it should already be within the Client ID v2 = Struct( "signature" / magic, "version" / Const(Int8ub, 2), @@ -48,6 +49,7 @@ class _Structures: "client_id" / Bytes(this.client_id_len) ) + # - Removed system_id as it can be retrieved from the Client ID's DRM Certificate v1 = Struct( "signature" / magic, "version" / Const(Int8ub, 1), @@ -74,10 +76,6 @@ class Device: Structures = _Structures supported_structure = Structures.v2 - # == Bin Format Revisions == # - # Version 2: Removed vmp and vmp_len as it should already be within the Client ID - # Version 1: Removed system_id as it can be retrieved from the Client ID's DRM Certificate - def __init__( self, *_: Any,