From 5eb1b69c058e38ffed18ba1efe5ed37021acbe20 Mon Sep 17 00:00:00 2001 From: derrod Date: Fri, 1 May 2020 15:15:39 +0200 Subject: [PATCH] [models] Fix JSON manifest chunkinfo sha hash This needs to be bytes() for __repr__() to work. --- legendary/models/json_manifest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/models/json_manifest.py b/legendary/models/json_manifest.py index d5a13b3..ac88137 100644 --- a/legendary/models/json_manifest.py +++ b/legendary/models/json_manifest.py @@ -115,7 +115,7 @@ class JSONCDL(CDL): _ci.guid = guid_from_json(guid) _ci.file_size = blob_to_num(cfl.pop(guid)) _ci.hash = blob_to_num(chl.pop(guid)) - _ci.sha_hash = csl.pop(guid) # todo; figure out if we have to decode this somehow + _ci.sha_hash = bytes.fromhex(csl.pop(guid)) _ci.group_num = blob_to_num(dgl.pop(guid)) _ci.window_size = 1024*1024 _cdl.elements.append(_ci)