Previous section   Next section

Hack 97 Editing Resources with a Point and a Click

figs/moderate.giffigs/hack97.gif

One of the easier ways to edit a resource [Hack #96] is just to make use of the TiVoWeb resource editor module.

Pick up your remote and surf to the Search by Title menu under Pick Programs to Record. Ever wanted to change the title on the screen? Trick it out to what you want it to say?

In the /var/hack/tivoweb-tcl/modules directory of your TiVo, you should find a file called tvres-3.0.res.

The 3.0 in the filename refers to the TiVo OS version you're running. If, for some reason, you are still running Version 2.0 or 2.5, take a look at the appropriately named file instead.

Add the following line to the file:

Words BrowseByTime 1 20

Check out the output of dumpres.tcl [Hack #95]. Scroll down until you find the line that starts: 1 20 {Browse By Time}. Those are the two numbers we are talking about here. We are telling TiVoWeb to expose that particular resource so that we can edit it.

For convenience, TiVoWeb is going to create a new grouping in its resource editor called Words, after the first token in the line we added. Then, the particular resource will be named after the second token, BrowseByTime.

To see TiVoWeb in action, go to TiVoWeb's [Hack #65] Resource Editor, click the Update Resources link, and restart the server (Restart Full Reload). When you come back to the Resource Editor, you should find a new resource group (Figure 7-5).

Figure 7-5. The Resource Editor, with a new resource group
figs/tivo_0705.gif

Under that, the editor will provide a field for you to play with (Figure 7-6).

Figure 7-6. The TiVoWeb Resource Editor, providing an interface to change the new resource in the database
figs/tivo_0706.gif

If you change this field, you will change the menu text that comes up in the Browse By Time screen. You can do this for anything that is hooked to a resource you can spot when using dump.tcl.


  Previous section   Next section
Top