Handle "unknown_details" structure.

This commit is contained in:
Markus Birth 2021-08-22 21:48:05 +02:00
parent 4a833e18e4
commit a519764693
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -146,6 +146,11 @@ class OnepifEntry():
if k in ["openContents", "secureContents"]:
# handle open/secure groups of properties
for k2, v2 in v.items():
if k2 == "unknown_details":
# special handling aka. black magic
if "sections" in v2:
k2 = "sections"
v2 = v2["sections"]
if k2 == "sections":
# handle section
for s in v2: