View Full Version : Determining tivo version from MFS
gosquad
01-05-2003, 12:58 PM
Hey all.. I'm trying to add support for 3.x tivos in my mfsstreamweb tivoweb module, but i don't know how to determine which version the user is running. can everyone tell me what their /Setup/Version is? (go to MFS in tivoweb and click on Setup and then read Version).
I'm guessing that's the right thing to use unless someone knows better. :)
Cheers,
gosquad
keith721
01-05-2003, 01:41 PM
Here's the code snippets from my copy:
proc GetOSVersion {} {
global db
global tivoswversion
global version3
RetryTransaction {
set sws [db $db open /SwSystem/ACTIVE]
set tivoswversion [dbobj $sws get Name]
if { [PrefixMatches "3." $tivoswversion] } {
set version3 1
} else {
set version3 0
}
}
}
Here's how he calls it:
# This is the 2nd change.
# Let's put 2.5 and 3.0 in the same NowShowing.tcl.
global tivoswversion
global version3
GetOSVersion
gosquad
01-05-2003, 04:53 PM
thanks, keith! dunno how i missed 'SwSystem' though.. :)
gosquad
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.