josephw / titl

Tools for iTunes Libraries
60 stars 12 forks source link

Unknown types 0x1FD, 0x1FE #23

Open josephw opened 9 years ago

josephw commented 9 years ago

Original issue 23 created by josephw on 2013-06-21T21:52:52.000Z:

When parsing my library file (from iTunes 11.0.2), I encounter the following:

Caused by: org.kafsemo.titl.UnknownHohmException: Unknown type: 509 (0x1FD) Hex: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x08 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x31 0x00 0x32 0x00 0x33 0x00 0x34 ASCII: .........................1.2.3.4 at org.kafsemo.titl.ParseLibrary.drain(ParseLibrary.java:454) at org.kafsemo.titl.ParseLibrary.parse(ParseLibrary.java:94) at org.kafsemo.titl.ParseLibrary.parse(ParseLibrary.java:80) at org.kafsemo.titl.tools.ExportRatings.main(ExportRatings.java:44) ... 5 more

I then add 0x1FD as a case before line 368, just to eat the unknown type and get the same problem again:

Caused by: org.kafsemo.titl.UnknownHohmException: Unknown type: 510 (0x1FE) Hex: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xFE 0x00 0x02 0x00 0x01 0x04 0x72 0x61 0x69 0x64 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xC8 0xCF 0xCA 0xFB 0x48 0x2B 0x00 0x00 0x00 0x00 0x00 0x02 0x03 0x6D 0x70 0x33 0x00 0x00 ... ASCII: ...................raid...........................H+.......mp3.................................. ...

If I add that case too, it goes worse:

Caused by: org.kafsemo.titl.ItlException: Expected 8 zero bytes in HOHM block. Was: 0x1 at offset 1 at org.kafsemo.titl.ParseLibrary.expectZeroBytes(ParseLibrary.java:876) at org.kafsemo.titl.ParseLibrary.readGenericHohm(ParseLibrary.java:541) at org.kafsemo.titl.ParseLibrary.drain(ParseLibrary.java:371) at org.kafsemo.titl.ParseLibrary.parse(ParseLibrary.java:94) at org.kafsemo.titl.ParseLibrary.parse(ParseLibrary.java:80) at org.kafsemo.titl.tools.ExportRatings.main(ExportRatings.java:44) ... 5 more