epgcache.dat

General discussion . (Do not post bug reports or feature requests in this section!)

Moderators: Dreamer, FredB, X05

alexi
Just can't stay away
Posts: 31
Joined: Mon Jul 26, 2010 9:55 am

epgcache.dat

Postby alexi » Sat Oct 31, 2015 5:50 am

Hi,

What is the structure of epgcache.dat file?

Alexi

Alexi

Skystar 2 eXpress HD, LogiLink VG0022A, Athlon XP
User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Re: epgcache.dat

Postby rel » Sun Nov 01, 2015 6:02 am

PEPGCacheHdr = ^TEPGCacheHdr;
TEPGCacheHdr = packed record
dwSignature: DWORD;
wVersion: WORD;
end;


PEPGCacheItemInfo = ^TEPGCacheItemInfo;
TEPGCacheItemInfo = packed record
wNID: WORD; // NID - Network
wTID: WORD; // TID - Transponder
wSID: WORD; // SID - Channel
wEventID: WORD; // Event ID
dwStartTime: DWORD; // Start-time in UNIX format
dwDuration: DWORD; // Duration in UNIX format
dwRating: DWORD; // MPAA & Parental Rating - Bit mask
wContent: WORD; // Content - Theme - Bit mask
OrgAirDate: packed array[0..7] of byte; // Unknown date format particular to Dish Net (?)
end;

PEPGCacheItemHdr = ^TEPGCacheItemHdr;
TEPGCacheItemHdr = packed record
dwItemSize: Integer; // including this , info and data parts
wSat: WORD; {Satellite, position code, e.g. 0130}
info: TEPGCacheItemInfo;
end;


Structure is simple : a header and then cache items.(items have variable length)

Each cache item also has an header (TEPGCacheItemHdr) and text data (in order of event title, short description and extended description)

Each text data item constists of a length byte and text. (for extended description length is 2 bytes, for others only 1 byte)

Texts are unicode (each char is 2 byte)
DVB Dream - because I have to dream about having time to code it

Return to “General”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest