diff --git a/ncmdump.py b/ncmdump.py index 0c69dc2..445d9e6 100644 --- a/ncmdump.py +++ b/ncmdump.py @@ -28,8 +28,9 @@ def dump(input_path, output_path = None, skip = True): header = f.read(8) assert binascii.b2a_hex(header) == b'4354454e4644414d' - # key data f.seek(2, 1) + + # key data key_length = f.read(4) key_length = struct.unpack(' 1024 ** 2 * 16 else 'mp3'} - # crc32 - crc32 = f.read(4) - crc32 = struct.unpack('