TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Main TiVo Forums > TiVo Series 1 - UK
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 06-28-2007, 10:12 AM   #1
anderson
Registered User
 
anderson's Avatar
 
Join Date: Mar 2003
Location: London, England
Posts: 17
Change all season passes to record at best

I've just bought a new 37" LCD. Now while medium quality recordings looked fine on my old 28" CRT, now they look awful.

Does anyone know of a quick & clever way I can set them all to 'best' without labouriously going through each of my hundreds of season passes manually?
anderson is offline   Reply With Quote
Old 06-28-2007, 10:30 AM   #2
mikerr
TiVoCentral.co.uk
 
Join Date: Jun 2005
Location: Up North
Posts: 2,597
Hundreds?

Its easiest to do it in tivoweb, but haven't seen a bulk edit module.
__________________
TivoCentral.co.uk -
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
mikerr is offline   Reply With Quote
Old 06-28-2007, 01:36 PM   #3
TCM2007
Registered User
 
TCM2007's Avatar
 
Join Date: Dec 2006
Posts: 3,947
I had the same thing a while ago and wrote a script to do it, but I'm afraid I can't find it now.

It was only a half dozen lines long IIRC; how's your TCL?!

You need network access to run it though.
TCM2007 is offline   Reply With Quote
Old 06-28-2007, 03:37 PM   #4
anderson
Registered User
 
anderson's Avatar
 
Join Date: Mar 2003
Location: London, England
Posts: 17
Well, 172 to be exact, so probably a good opportunity to have a clear-out.

Yeah, have network access and was thinking along the lines of a script. Complete novice to TCL I'm afraid.

I found what is probably the easiest solution though, my cleaner is going to do it for a tenner via TiVo Web. Sometimes the lo-tech solutions are the easiest I guess.
anderson is offline   Reply With Quote
Old 06-28-2007, 04:26 PM   #5
Raisltin Majere
The 96 YNWA
 
Join Date: Mar 2004
Location: Devon
Posts: 1,387
I thought this might be a chance to try out a bit of tcl, and came up with the following.

Code:
#! /tvbin/tivosh

set db [dbopen]

ForeachMfsFile fsid name type "/SeasonPass" "" {
	RetryTransaction {
		set objPass [db $db openid $fsid]
		dbobj $objPass set RecordQuality 100
	}

}
puts "All seasonpasses set to best quality"

dbclose $db
Then I wrote another one to loop through and output the recording quality to the console and it seemed to have worked.

DISCLAIMER: I don't know any tcl and have never tried to write any before, do not underestimate my tendancy to break absolutely everything
Raisltin Majere is offline   Reply With Quote
Old 06-28-2007, 05:04 PM   #6
TCM2007
Registered User
 
TCM2007's Avatar
 
Join Date: Dec 2006
Posts: 3,947
Looks right to me.
TCM2007 is offline   Reply With Quote
Old 06-28-2007, 05:09 PM   #7
Raisltin Majere
The 96 YNWA
 
Join Date: Mar 2004
Location: Devon
Posts: 1,387
Quote:
Originally Posted by TCM2007
Looks right to me.


Well, I figured it out by looking at other scripts so I probably stole most of it from you


Raisltin Majere is offline   Reply With Quote
Old 06-29-2007, 01:20 PM   #8
Pete77
Registered User
 
Join Date: Aug 2006
Location: Not Far From London
Posts: 7,967
Quote:
Originally Posted by Raisltin Majere
Code:
#! /tvbin/tivosh

set db [dbopen]

ForeachMfsFile fsid name type "/SeasonPass" "" {
	RetryTransaction {
		set objPass [db $db openid $fsid]
		dbobj $objPass set RecordQuality 100
	}

}
puts "All seasonpasses set to best quality"

dbclose $db
Uncanny. I actually understand quite a bit of what that code is trying to do, which I have to say is the first time I've ever had that experience when looking at a block of Tivo TCL code. Of course it helps that I know its only trying to do one specific thing I have already been told about.

Perhaps TCL isn't so different from Basic after all if only one learns the basic TCL commands dictionary and understands how to set conditionals to make it loop back to the appropriate previous marker in the code or carry on to the end as appropriate.
__________________
601E with 2 x 250Gb Samsung HA250JCs, Cachecard + 512MB, TivoWeb 1.9.4, TivoWebPlus 2.0.1, Bufferhack, Autospace, Endpad, Tracker, DailyMail and Highlights
Pete77 is offline   Reply With Quote
Old 07-01-2007, 10:31 AM   #9
mikerr
TiVoCentral.co.uk
 
Join Date: Jun 2005
Location: Up North
Posts: 2,597
I put the above into a tivoweb module, so you can change them all to basic/best etc at a stroke.

Isn't there some way of making a module proc replace a previous one in tcl/tivoweb ?
I'd like this to replace http://tivo/ui/seasonpass but don't really want to edit it into ui.itcl ...
Attached Files
File Type: zip seasonpassquality.zip (2.0 KB, 39 views)
__________________
TivoCentral.co.uk -
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by mikerr : 07-01-2007 at 11:02 AM.
mikerr is offline   Reply With Quote
Old 07-01-2007, 11:24 AM   #10
Pete77
Registered User
 
Join Date: Aug 2006
Location: Not Far From London
Posts: 7,967
Quote:
Originally Posted by mikerr
I put the above into a tivoweb module, so you can change them all to basic/best etc at a stroke..
Great work Mike.

But don't forget to add this to the Wikipedia list of TivoWeb add-on modules.
__________________
601E with 2 x 250Gb Samsung HA250JCs, Cachecard + 512MB, TivoWeb 1.9.4, TivoWebPlus 2.0.1, Bufferhack, Autospace, Endpad, Tracker, DailyMail and Highlights
Pete77 is offline   Reply With Quote
Old 07-01-2007, 12:24 PM   #11
TCM2007
Registered User
 
TCM2007's Avatar
 
Join Date: Dec 2006
Posts: 3,947
Quote:
Originally Posted by mikerr
I put the above into a tivoweb module, so you can change them all to basic/best etc at a stroke.

Isn't there some way of making a module proc replace a previous one in tcl/tivoweb ?
I'd like this to replace http://tivo/ui/seasonpass but don't really want to edit it into ui.itcl ...
Just make the module load after the one you want to replace (they load alphabetically) and simply include a new procedure with the same name as the one you want to replace; TCL will use the most recently loaded proc with that name.
TCM2007 is offline   Reply With Quote
Old 07-01-2007, 04:19 PM   #12
mikerr
TiVoCentral.co.uk
 
Join Date: Jun 2005
Location: Up North
Posts: 2,597
Thanks, that did the trick.

Attached version silently replaces the tivoweb version of the seasonpass page http://tivo/ui/seasonpass
with no extra menu to clutter up the front page.

- adds a column to show current recording quality.
- allows you to bulk edit recording quality
Attached Files
File Type: zip vseasonpassquality.zip (2.0 KB, 60 views)
__________________
TivoCentral.co.uk -
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
mikerr is offline   Reply With Quote
Old 07-01-2007, 06:01 PM   #13
TCM2007
Registered User
 
TCM2007's Avatar
 
Join Date: Dec 2006
Posts: 3,947
Quote:
Originally Posted by Pete77
Great work Mike.

But don't forget to add this to the Wikipedia list of TivoWeb add-on modules.
What Wikipedia list of TiVoweb modules? Do you mean alt.org?
TCM2007 is offline   Reply With Quote
Old 07-01-2007, 06:16 PM   #14
mikerr
TiVoCentral.co.uk
 
Join Date: Jun 2005
Location: Up North
Posts: 2,597
This one:
http://www.alt.org/wiki/index.php/TiVoWeb%20Modules

[edit] now superceded with this list
tivoweb modules

Last edited by mikerr : 09-11-2007 at 03:52 AM.
mikerr is offline   Reply With Quote
Reply
Forum Jump




Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media

(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVoŽ is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 09:16 AM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |