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

Global blocklist for wishlists (standalone)

Discussion in 'TiVo Series 1 - UK' started by mikerr, May 26, 2007.

  1. mikerr

    mikerr TiVoCentral.co.uk

    2,598
    0
    Jun 2, 2005
    Up North
    Ever been annoyed that your keyword wishlist picks up cartoons?

    This script runs in the background, and cancels items from the todo list that match your blocklist.
    Note it never cancels a seasonpass or manual recording, just wishlist recordings.

    Example 1
    You set a low priority wishlist for all films to keep a few films in now playing,
    but you don't want "old" films.
    Code:
    /var/hack/blocklist.tcl -year 1970 
    (Never record films older than 1970)

    Example 2
    You have a wishlist for "Vampire", but don't want cartoons.
    Block the "Animated" and "Children" genres by putting them in /var/hack/blockgenres.txt:
    Code:
    "Animated"
    "Children"
    (Never record wishlists that match Animated or Childrens programmes)

    You can get a list of available genres by typing (for example)
    Code:
     /var/hack/blocklist.tcl -listgenres 
    or
    /var/hack/blocklist.tcl -listgenres "A*"
    There is a tivoweb module to help set up the title blocklist:
    http://archive.tivocommunity.com/tivo-vb/showthread.php?s=&threadid=153834
    http://www.denali.org.uk/blocklist

    It shares the blocklist config files from the above blocklist tivoweb module, so install that to setup your title blocklists,

    or just add titles to /var/hack/blocklist.txt:
    Code:
    "The Lost World"
    "Afro Samurai"
    "Robot Wars"
    (Those programmes are matched by wishlists, but I never want them to record)

    It auto-backgrounds:
    Code:
    /var/hack/blocklist.tcl 
    logging goes to /var/log/blocklist.

    # Version 1.3
     

    Attached Files:

  2. Pete77

    Pete77 New Member

    7,968
    0
    Aug 1, 2006
    Not Far...
    I find Kids programs are the worst offenders in being accidentally picked up by my Wishlists. Or rather I notice the kids program offenders far more than any others because there is zero chance I will be interested in them.

    On the other hand I have never used the Global Blocklist so far so I will have to get to grips with that too. I had perhaps gained the impression that it was only suitable for US Tivos as there seems to be no long term thread running about the Global Blocklist in Tivo UK.
     
  3. TCM2007

    TCM2007 New Member

    3,947
    0
    Dec 25, 2006
    remove the kids channels for CIR, should block most of them.
     
  4. Pete77

    Pete77 New Member

    7,968
    0
    Aug 1, 2006
    Not Far...
    True. I leave them in the EPG purely for when my sister and young niece and nephew visit.
     
  5. realbigmike

    realbigmike New Member

    6
    0
    May 20, 2006
    So the .tcl automatically deletes what is outlined in the blocklist from the ToDo list?

    Sorry for the dumb Q, but to install this I can copy it anywhere on the tivo and call it in the rc.sysinit.author?
     
  6. mikerr

    mikerr TiVoCentral.co.uk

    2,598
    0
    Jun 2, 2005
    Up North
    Yes, thats exactly right.

    You might want to also install the tivoweb module to easily set the config file.
     
  7. realbigmike

    realbigmike New Member

    6
    0
    May 20, 2006
    Looks like I have to pull my hard drive and edit rc.sysinit.author because blocklist.tcl hangs for me.
    I ran it from telnet and it said:
    Opening db
    closing db
    It seemed ok but didnt do anything to my ToDo list so I added it to rc.sysinit.author in hopes it would work. My tivo still starts but ftp, telnet, and TWP are down unfortunately. Maybe I had a different blocklist in my TWP than the one u have mikerrr.
     
  8. TCM2007

    TCM2007 New Member

    3,947
    0
    Dec 25, 2006
    That will be caused by either a problem in how you edited rc.sysinit.author, or failing to background the command with an &
     
  9. Oct 2, 2007 #9 of 43
    realbigmike

    realbigmike New Member

    6
    0
    May 20, 2006
    It seems to be running fine but it does not delete any shows from the ToDo List.
    Code:
    master:/hack/scripts #
    master:/hack/scripts # ./blocklist.tcl &
    [2] 256
    master:/hack/scripts #
    master:/hack/scripts # Opening db
    closing db
    Opening db
    closing db
    Opening db
    closing db
    Opening db
    closing db
    Opening db
    closing db
    
    I have TWP installed in /hack/TivoWebPlus, not /var/hack is this the problem? Just a guess, I'm noob.
    I opened up the tcl script and the only thing I found that may be wrong for me is
    set blocklist [load_list "/var/hack/blocklist.txt"]
    set blockpatt [load_list "/var/hack/blockpatt.txt"]

    I store your blocklist.tcl in /hack/scripts/
     
  10. mikerr

    mikerr TiVoCentral.co.uk

    2,598
    0
    Jun 2, 2005
    Up North
    Those files are created by the tivoweb module,

    check /var/hack/blocklist.txt actually exists.
     
  11. threadkiller

    threadkiller Dark side Nrth Devon

    523
    0
    Dec 12, 2002
    your better of using Sandertons startup script editor, if you have Tivoweb, easier & safer than editing rc.sysinit.author directly
     
  12. realbigmike

    realbigmike New Member

    6
    0
    May 20, 2006
    threadkiller, I looked up Sanderton's editor but it looks like you have fix it if your tivo wipes out /var/hack/ as it sometimes does.

    Hackman has a nice easy module for editing it, but ftp and textpad works well too. But yeah, if you mess this it you have to pull the hard drive.

    So back to blocklist.tcl . . . in /var/hack/ I do have the 2 files that were created and they are 0kb.

    Just an idea- the blocklist.tcl should only run after a guide update is indexed, this is when tivo adds shows to the ToDo List and the block list. It seems excessive to run it every 10 minutes don't you think? It is a necessary service though, IMO.
     
  13. mikerr

    mikerr TiVoCentral.co.uk

    2,598
    0
    Jun 2, 2005
    Up North
    If those two files are empty (0kb), then there is nothing to block... what did you expect ? ;)

    Install the tivoweb module to set them up, or just add titles to block in /var/hack/blocklist.txt:

    Code:
    % cat /var/hack/blocklist.txt
    "The Lost World"
    "Afro Samurai"
    "Robot Wars"
    [etc]
    % 
    IIRC the todo items "came back" after an hour or so (or maybe less),
    thats why its set to every ten minutes. I should probably relook at that sometime.
     
  14. realbigmike

    realbigmike New Member

    6
    0
    May 20, 2006
    I have items in my blocklist in TivoWebPlus though. TWP2.0 comes with the blocklist already built in (ui_todo.itcl), is this not what you based this program on. I figured your tcl script would pick up on that and use the data. Did I misunderstand something ?

    Looks like it is storing my blocklist data somewhere else because in ui_todo.itcl there is the line that is commented out tho:

    #set blocklist [gbl_savefile "/var/hack/etc/blocklist.txt" $blocklist]

    I haven't found where it is storing my blocklist data, the ones in /var/hack/ or /var/hack/etc/ were 0kb, empty files.
     
  15. mikerr

    mikerr TiVoCentral.co.uk

    2,598
    0
    Jun 2, 2005
    Up North
    so long as you have titles in /var/hack/blocklist.txt as in post 13, it should work.
     
  16. mikerr

    mikerr TiVoCentral.co.uk

    2,598
    0
    Jun 2, 2005
    Up North
    I've revamped this module quite a bit:

    it now has the ability to block whole genres and older films.

    See first post.
     
  17. alan_m_2004

    alan_m_2004 New Member

    77
    0
    Jan 6, 2005
    Hello,

    I've installed blocklist.tcl to both my tivos.

    It seems to work fine on one, when I run it on the second I get;
    /var/hack #blocklist.tcl
    /var/hack/blocklist.tcl: proc: command not found
    /var/hack/blocklist.tcl: return: bad non-numeric arg `[string'

    I'm not to sure what that means.

    Thanks in advance,

    Alan.
     
  18. mikerr

    mikerr TiVoCentral.co.uk

    2,598
    0
    Jun 2, 2005
    Up North
    Have you edited the file maybe?
    first line should be
    Code:
    #!/tvbin/tivosh
     
  19. alan_m_2004

    alan_m_2004 New Member

    77
    0
    Jan 6, 2005
    Hi MikeErr,

    That was one of the first things I checked;

    /var/hack #less blocklist.tcl
    WARNING: terminal is not fully functional
    blocklist.tcl (press RETURN)
    #!/tvbin/tivosh
    #
    # Blocklist.tcl v1.3
    #
    # Removes wishlist items from the todo list based on blocklists

    Reading through the tcl code I can't see any obvious calls to external commands . Are there any dependencies on other programs?

    Thanks in advance (and for providing such programs)

    Alan.
     
  20. mikerr

    mikerr TiVoCentral.co.uk

    2,598
    0
    Jun 2, 2005
    Up North
    "proc" is a tcl command, so its trying to run it as a shell script, not a tcl script.
    Re upload it in binary mode maybe?

    This hack doesn't have any dependancies on any other programs.
    It does expect to see some entries in /var/hack/blocklist.txt, or it won't actually block anything ...
     

Share This Page