angra
07-27-2002, 11:37 AM
Hi all,
I'm in the process of making a tool to do some minimalist backup and restores of user-space data on my tivo, and I'm (sort of) spinning my wheels on one problem.
One of the things I'm backing up is season passes - now, since the important data in a SP points to objects, I need something immutable to store for backups. In other words, storing a pointer to a particular object item (say, via a fsid) would not make sense, since, in the event of a catastrophic failure and rebuild, the series and station info might live at new FSID's (I assume...?).
So, what I was planning to do is to store tmsid's. These seem immutable. The only problem is, I cant find a direct way to go from a series/program tmsid to a fsid. Getting the station ID seems pretty easy, at least.
I looked in /GuideIndexV2/tms.index and /GuideIndexV2/tms.key, and that hasn't quite gotten me there yet. I have been reading through the index.itcl source included with the search module for tivoweb - they have a routine which does some parsing of program.key and program.index. unfortunately, the tms* files aren't quite analogous, or so it seems. Also, tms.index does not seem to have a constant record size(!), which confuses me further.
Anyway, I guess I am soliciting suggestions that will either help me understand /GuideIndexV2/tms.{index, key}, or another method to investigate to quickly translate a tmsid to a fsid for a series.
p.s. what tmsid types can a season pass be linked to? EP seems right out, SH is an obvious yes, but what about MV, and SP? Can those have season passes attached to them?
Thanks, all
I'm in the process of making a tool to do some minimalist backup and restores of user-space data on my tivo, and I'm (sort of) spinning my wheels on one problem.
One of the things I'm backing up is season passes - now, since the important data in a SP points to objects, I need something immutable to store for backups. In other words, storing a pointer to a particular object item (say, via a fsid) would not make sense, since, in the event of a catastrophic failure and rebuild, the series and station info might live at new FSID's (I assume...?).
So, what I was planning to do is to store tmsid's. These seem immutable. The only problem is, I cant find a direct way to go from a series/program tmsid to a fsid. Getting the station ID seems pretty easy, at least.
I looked in /GuideIndexV2/tms.index and /GuideIndexV2/tms.key, and that hasn't quite gotten me there yet. I have been reading through the index.itcl source included with the search module for tivoweb - they have a routine which does some parsing of program.key and program.index. unfortunately, the tms* files aren't quite analogous, or so it seems. Also, tms.index does not seem to have a constant record size(!), which confuses me further.
Anyway, I guess I am soliciting suggestions that will either help me understand /GuideIndexV2/tms.{index, key}, or another method to investigate to quickly translate a tmsid to a fsid for a series.
p.s. what tmsid types can a season pass be linked to? EP seems right out, SH is an obvious yes, but what about MV, and SP? Can those have season passes attached to them?
Thanks, all