From 9353289d6f087fa37b92080b5bd62c1bd542e946 Mon Sep 17 00:00:00 2001 From: Jan Sperling Date: Tue, 25 Feb 2020 00:43:08 +0100 Subject: [PATCH] add support for SNK 40th collection bundle format also fixed some python3 stuff --- bplist.py | 18 +++++++++++++----- extract.py | 2 ++ tidy.py | 6 ++++-- 3 files changed, 19 insertions(+), 7 deletions(-) mode change 100644 => 100755 extract.py mode change 100644 => 100755 tidy.py diff --git a/bplist.py b/bplist.py index 376ecf8..0bc2351 100644 --- a/bplist.py +++ b/bplist.py @@ -30,6 +30,7 @@ import struct from datetime import datetime, timedelta +import plistlib class BPListReader(object): def __init__(self, s): @@ -198,13 +199,20 @@ def __resolveObject(self, idx): def parse(self): # read header - if self.data[:8] != b'bplist00': + if self.data[:5] == b'