Curday.dat Data Format
Posted: Tue Aug 03, 2010 3:22 pm
I've been attempting to get to know the curday.dat channel data format this morning through "reverse engineering" (basically just trial-and-error hex editing :p), here's what I've found so far.
The curday.dat file, which contains listings for the current day, essentially has the following format:
HEADER
CHANNEL INFORMATION for channel X
PROGRAM INFORMATION for program X
CHANNEL INFORMATION for channel X
PROGRAM INFORMATION for program X
...and so on...
CHANNEL/PROGRAM INFORMATION for TV Guide copyright block (which is registered as channel PRV002)
I have not gotten into looking into the header too much yet, but it seems to have some information on the location of the TV Guide machine. In a hex editor, the ASCII side of the header looks like this:
The first thing to note here is the word Hawthorne, meaning Hawthorne, CA, which is an area near Los Angeles where this machine seems to have been located. Interestingly, KHHR, which also shows up at the bottom of the screen in diagnostic mode, seems to be the code of Hawthorne's local airport. (?) I haven't done a ton of research into what the rest means, although the 91 may be of significance because 91 days after January 1st is April 1st (on non-leap years), and that is how the dates are stored in Prevue's listings system. Even so, changing the 91s to 92 does not seem to change anything. The date that curday.dat reflects seems to be stored in another file, but I haven't confirmed that yet.
One other cool thing I noticed is that typing shift-D in the guide does indeed reload the current listings, which is quite convenient for hacking around with curday.dat. More to follow.
The curday.dat file, which contains listings for the current day, essentially has the following format:
HEADER
CHANNEL INFORMATION for channel X
PROGRAM INFORMATION for program X
CHANNEL INFORMATION for channel X
PROGRAM INFORMATION for program X
...and so on...
CHANNEL/PROGRAM INFORMATION for TV Guide copyright block (which is registered as channel PRV002)
I have not gotten into looking into the header too much yet, but it seems to have some information on the location of the TV Guide machine. In a hex editor, the ASCII side of the header looks like this:
Code: Select all
AE3366N..4YYNNYYNNl..0.DREV 5.KHHR.Hawthorne.91.91.131.1348
One other cool thing I noticed is that typing shift-D in the guide does indeed reload the current listings, which is quite convenient for hacking around with curday.dat. More to follow.