1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change all season passes to record at best

Discussion in 'TiVo Series 1 - UK' started by anderson, Jun 28, 2007.

  1. anderson

    anderson New Member

    17
    0
    Mar 5, 2003
    London, England
    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?
     
  2. mikerr

    mikerr TiVoCentral.co.uk

    2,598
    0
    Jun 2, 2005
    Up North
    Hundreds? ;)

    Its easiest to do it in tivoweb, but haven't seen a bulk edit module.
     
  3. TCM2007

    TCM2007 New Member

    3,947
    0
    Dec 25, 2006
    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.
     
  4. anderson

    anderson New Member

    17
    0
    Mar 5, 2003
    London, England
    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.
     
  5. Raisltin Majere

    Raisltin Majere The 96 YNWA

    1,515
    0
    Mar 12, 2004
    Devon
    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
     
  6. TCM2007

    TCM2007 New Member

    3,947
    0
    Dec 25, 2006
    Looks right to me.
     
  7. Raisltin Majere

    Raisltin Majere The 96 YNWA

    1,515
    0
    Mar 12, 2004
    Devon
    :eek:

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

    :eek:
     
  8. Pete77

    Pete77 New Member

    7,968
    0
    Aug 1, 2006
    Not Far...
    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.
     
  9. Jul 1, 2007 #9 of 14
    mikerr

    mikerr TiVoCentral.co.uk

    2,598
    0
    Jun 2, 2005
    Up North
    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:

  10. Pete77

    Pete77 New Member

    7,968
    0
    Aug 1, 2006
    Not Far...
    Great work Mike.

    But don't forget to add this to the Wikipedia list of TivoWeb add-on modules.
     
  11. TCM2007

    TCM2007 New Member

    3,947
    0
    Dec 25, 2006
    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.
     
  12. mikerr

    mikerr TiVoCentral.co.uk

    2,598
    0
    Jun 2, 2005
    Up North
    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:

  13. TCM2007

    TCM2007 New Member

    3,947
    0
    Dec 25, 2006
    What Wikipedia list of TiVoweb modules? Do you mean alt.org?
     
  14. mikerr

    mikerr TiVoCentral.co.uk

    2,598
    0
    Jun 2, 2005
    Up North

Share This Page