Add Hoop Name V9, Pes.

pull/98/head
tatarize 2020-07-25 16:45:22 -09:00 zatwierdzone przez GitHub
rodzic b7ae68b1eb
commit b4ccdf5fb1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -199,7 +199,11 @@ def read_pes_header_version_8(f, out, threadlist):
def read_pes_header_version_9(f, out, threadlist):
f.seek(4, 1)
read_pes_metadata(f, out)
f.seek(45, 1) # this is 36 in version 6 and 24 in version 5
f.seek(14, 1)
v = read_pes_string(f)
if v is not None and len(v) > 0:
out.metadata("hoop_name", v)
f.seek(30, 1) # this is 36 in version 6 and 24 in version 5
v = read_pes_string(f)
if v is not None and len(v) > 0:
out.metadata("image_file", v)