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

New TiVoWeb Module: New Episodes

Discussion in 'TiVo Series 1 - UK' started by sanderton, Nov 16, 2003.

  1. didolgi

    didolgi New Member

    12
    0
    Mar 29, 2002
    Well I've fallen in love with this module, but I've found a slight problem with it. My TiVo is in Los Angeles, but as we all know the TiVo uses GMT as its internal timeclock, so the schedule data for me shows a "day" as a period of time from 16:00-15:59 the next day. This makes perfect sense because thats midnight-midnight GMT.

    Before I start attempting to re-write this code to handle non-UK units I wonder if anybody has already attempted this?
     
  2. goony

    goony New Member

    1,749
    0
    Nov 19, 2003
    Is this module known to work on a DirecTivo running V4.0.1b? I have installed the module but the results are always empty.

    Thanks!
     
  3. marklyn

    marklyn Member

    457
    0
    Jan 21, 2002
    Austin
    This is what I get when I try to run the new episodes module (by chan):
    INTERNAL SERVER ERROR
    --cut here--
    action_showcir '' ''
    expected integer but got "18.1"
    while executing
    "lsort -integer [array names channeltablenum]"
    (procedure "getchannelsir" line 10)
    invoked from within
    "getchannelsir"
    (procedure "::action_showcir" line 4)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--

    also does similar crash by date:
    INTERNAL SERVER ERROR
    --cut here--
    action_shownewepisodes '' 'set "showdate" "13031";'
    expected integer but got "18.1"
    while executing
    "lsort -integer [array names channeltablenum]"
    (procedure "getchannelsir" line 10)
    invoked from within
    "getchannelsir"
    (procedure "::action_shownewepisodes" line 8)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--



    I've had my tivo up and running for at least 3 days so it's got a full schedule listing. Any ideas where I've gone wrong?
     
  4. sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    This is someting to do with the way TiVo stors "locals" whatever they might be. We don't have them in the UK.
     
  5. b166er

    b166er New Member

    1,324
    0
    Oct 24, 2003
    Brit in...
    Is it possible (and easy) to limit the results of this to be only programs on your favorite channels ?
     
  6. sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    I guess you could write a filter into it.
     
  7. b166er

    b166er New Member

    1,324
    0
    Oct 24, 2003
    Brit in...
    Doing it now :cool:
     
  8. Fred1

    Fred1 New Member

    142
    0
    Dec 9, 2002
    Pangbourne
    Hi

    Looks like there are a couple of useful variations on this very nice module from Stuart.

    Any chance someone could post a couple of links to the filtered versions (time and channels)

    Or even better, a version that integrates it all?

    Thanks (hopefully)
     
  9. b166er

    b166er New Member

    1,324
    0
    Oct 24, 2003
    Brit in...
    Well, this is my first stab at doing anything in TCL. A TiVoWeb API would have been useful. I never figured out how to tell if a channel is a favourite channel. So instead, I hard-coded my list of personal favourites (only about 20 channels) into the tcl file itself.

    It's not an ideal way of doing it obviously. If someone knows how to determine if a channel is a favourite then it would be much better than what I've done. I've marked my changes with #DD. I took LJ's "evening" version as a basis.

    It currently limits results to these sky channels:

    BBC1NE, BBC2, ITV1TYN, C4, FIVE, SKYONE, SKYTWO, SKY3, UKGLD, UKG2, LIVING, LIVIN2, BBC2, BBC4, ITV2, ITVTHREE, ITV4, PCOM1, PCOM2, E4, MORE4

    I deliberately left the +1 channels out of the list.
     

    Attached Files:

  10. sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Look in the code for a TiVoWeb module which allows you to filter by favourites. I think TW loads a list at startup.
     
  11. b166er

    b166er New Member

    1,324
    0
    Oct 24, 2003
    Brit in...
    Yeah I tried that. The only tivoweb module I could think of is the TWP one that lets you modify your channel preferences (received & favourite). It wasn't obvious what was going on. I think I'll get myself a tivoweb api somehow and not have to rely on someone else's code (which is more difficult being a TCL newbie also).
     
  12. b166er

    b166er New Member

    1,324
    0
    Oct 24, 2003
    Brit in...
    Ok, here they are. Two versions both modified to filter by favourites. I took the original 0.2 version by stuart and the evening 0.2 version by LJ and added a favourites filter to each of them.

    Maybe someone more advanced in TCL/Tivoweb can make a combined version that offers a menu choice for all-day or evening but that's beyond my current knowledge.

    Here they are then, I changed the version number to 0.2f (f for favorites)
     

    Attached Files:

  13. Fred1

    Fred1 New Member

    142
    0
    Dec 9, 2002
    Pangbourne
    You're a star - thanks

    Will take a look at the code myself to see if there is any chance I could contribute (or even learn) something.
     
  14. LJ

    LJ New Member

    786
    0
    Nov 11, 2001
    West...
    Just noticed this thread's active again... back when it first started I updated my What's On module to highlight new episodes and added a tick box to display only new episodes - it's about half way down this page. Feel free to grab bits of code.
     
  15. b166er

    b166er New Member

    1,324
    0
    Oct 24, 2003
    Brit in...
    Thanks LJ, I might be pilfering some code from there later :)
     
  16. marklyn

    marklyn Member

    457
    0
    Jan 21, 2002
    Austin
    OK, I'm venturing a guess that either of these two won't work on my tivoweb 1.2.1 because they are written for UK programming/line ups?

    When I try to check by channel they fail with:
    INTERNAL SERVER ERROR
    --cut here--
    action_shownewepisodes '' 'set "showdate" "13162";'
    expected integer but got "18.1"
    while executing
    "lsort -integer [array names channeltablenum]"
    (procedure "getchannelsir" line 10)
    invoked from within
    "getchannelsir"
    (procedure "::action_shownewepisodes" line 8)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--
     
  17. b166er

    b166er New Member

    1,324
    0
    Oct 24, 2003
    Brit in...
    It wasn't specifically written (by Stuart) for UK lineup, but it seems to not like the US style digital channels (e.g. "10.1"). The original 0.2 version will have the same problem and I don't know how to fix it with my limited knowledge at this stage.

    Perhaps removing any instance of -integer might do it, but you try it at your own risk. I doubt it has the power to do any real harm if it's a bad idea.
     
  18. PhilG

    PhilG New Member

    905
    0
    Jan 15, 2002
    I notice that at the very top of the thread, it says "If you have Sky, be patient!" - how patient??

    I have installed the script, done a rull restart of Tivoweb but when I select the "by channel" option, all I get is:

    Find New Episodes on:

    at the top of the screen, and nothing else seems to be happening (so far as I can tell, Explorer is not waiting for anything else from Tivoweb)??

    What did I do wrong??
     
  19. PhilG

    PhilG New Member

    905
    0
    Jan 15, 2002
    The search by day also only seems to return the headings

    Also, when I installed this module, Tivowebs "info" module stopped working.

    I get:
    INTERNAL SERVER ERROR
    --cut here--
    action_info '/' ''
    can't open object (0x00030007)

    while executing
    "db $db open /Setup"
    ("uplevel" body line 2)
    invoked from within
    "uplevel $body"
    invoked from within
    "transaction {uplevel $body}"
    (procedure "RetryTransaction" line 5)
    invoked from within
    "RetryTransaction {
    set setup [db $db open /Setup]
    set remoteaddress [dbobj $setup get RemoteAddress]
    }"
    (procedure "::action_info" line 104)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--

    I have removed the "newepisodes.itcl" script from the tivoweb modules directory, done a full restart of Tivoweb now, AND "NEW EPISODES" STILL APPEARS IN THE MENU and Info still doesn't work

    HELP!!!!!
     
  20. sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    If it still appears in the menu after removing the file then you either haven't done a fulll restart or your browser is showing a cached copy.
     

Share This Page