O'Reilly logo

TiVo Hacks by Raffi Krikorian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hack #89. Inspecting MFS Objects

Embedded in the tyDirs are the tyDbs. This is where the real data is actually hiding out.

While poking through the MFS [Hack #88] you are inevitably going to run into objects. The objects, or tyDbs as they are called, are the database objects holding the real information that the filesystem directories (tyDirs) are just organizing into a simple hierarchy.

You can peek at an object using the TiVo shell's dumpobj command. dumpobj does exactly as its name suggests: reach into the MFS database for a specified filesystem ID (FSID), extract appropriate metadata, and dump it to the screen in human-readable form.

Let's take a look at a rundown of the first television show in my /Recording/NowShowingByTitle directory. From the TiVo shell (type tivosh at the Bash prompt if you're not already in tivosh), run it on one of your FSIDs, like so:

% dumpobj 1717520 Recording 1717520/10 { ActualShowing = 1717520/16 BitRate = 0 Bookmark = 1717520/19 DeletionDate = 24855 ExpirationDate = 12213 ExpirationTime = 9000 IndexPath = /Recording/Active/1:12211:08998:1717520 /Recording/ NoReRecord/12919640:2:99999:01717520 /Recording/TmsId/SH5785730000:87788: 91001:1717520 /Recording/NowShowingByClassic/2:87788:91001:1717520 / Recording/NowShowingByExpiration/2:12213:09000:1717520 {/Recording/ NowShowingByTitle/1:2003 MTV MOVIE AWARDS:87788:91001:1717520} /Recording/ DiskUsed/10/1717520:2842624 IndexUsed = 1717520/11 1717520/12 NSecondsWatched = 3539 NVisit = 1 Part = 1717520/13 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required