TiVoWeb module: Now Playing with Folders and Sort

Discussion in 'TiVo Underground' started by LJ, Jan 18, 2003.

  1. Jan 18, 2003 #1 of 116
    LJ

    LJ New Member

    786
    0
    Nov 11, 2001
    West...

    Advertisements

    Just posted a new module to my website.

    Enjoy :)
     
  2. Jan 18, 2003 #2 of 116
    SteveTheITGuy

    SteveTheITGuy New Member

    71
    0
    Oct 27, 2002
    LJ,

    Yet another excelent idea by LJ!!

    However, when I ran it, I received the following error message (did a full restart too):

    --cut here--
    action_npf '/' ''
    invalid command name "print_nowplayingrow"
    while executing
    "print_nowplayingrow $chan $rec2 [lindex $show 0] $rcount"
    ("uplevel" body line 3)
    invoked from within
    "uplevel $body"
    invoked from within
    "transaction {uplevel $body}"
    (procedure "RetryTransaction" line 5)
    invoked from within
    "RetryTransaction {
    set rec2 [db $db openid [lindex $show 1]]
    print_nowplayingrow $chan $rec2 [lindex $show 0] $rcount
    incr rcoun..."
    (procedure "::action_npf" line 350)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--


    Let me know if you need me to do anything.

    Steve
     
  3. Jan 18, 2003 #3 of 116
    LJ

    LJ New Member

    786
    0
    Nov 11, 2001
    West...
    Oops! Posted version 2.1 which should fix that!
     
  4. Jan 18, 2003 #4 of 116
    SteveTheITGuy

    SteveTheITGuy New Member

    71
    0
    Oct 27, 2002
    LJ,

    Works like a champ! Thanks.

    So... where are you storing the folder info -- kinside the tivo db or inside another text file in the tivoweb-tcl directory. If the tivoweb dir, where and what is the name of the file???
     
  5. Jan 18, 2003 #5 of 116
    LJ

    LJ New Member

    786
    0
    Nov 11, 2001
    West...

    Advertisements

    Glad that fixed it!

    The folder data is stored in a file called 'npf' in /var/hack. (I did have it in /var/tmp, but it looks like that directory gets cleared when your TiVo reboots :eek: :D)

    The file stores a list of lists. The first entry of each sub-list is the folder name. Then there are zero or more fsids for programmes you've assigned to that folder.

    Possible future enhancements that've come to mind so far:

    * Sort the folder list - at the moment it stays in whatever order you create the folders. Into alphabetic order would be the easiest option ;)

    * Auto-assign new recordings to folders - maybe by series or keyword or a combination of both... not sure yet. Ideas anyone?

    I notice TiVo have gone for a grouping option on the new kit they showed at CES. Maybe that's a possibility too...
     
  6. Jan 18, 2003 #6 of 116
    SteveTheITGuy

    SteveTheITGuy New Member

    71
    0
    Oct 27, 2002
    LJ,

    I think both those "future" enhancements are good ideas. The 2nd one really seems cool. I would figure the best option would be based on the ID that points to the series program ID (FSID???) then you could do it for every episode easily.

    I 'm hoping that Tivo will add the folder option (and the MP3 player !!!) for our Series 1 Tivos too. Only time will tell.
     
  7. Jan 18, 2003 #7 of 116
    Vespa

    Vespa Curious

    105
    0
    Jan 4, 2002
    37.1400(N)...
    Umm...what is the link?

    Update: Never mind...found it in your profile.
     
  8. Jan 19, 2003 #8 of 116
    LJ

    LJ New Member

    786
    0
    Nov 11, 2001
    West...
    Just posted version 2.3 which adds auto-assignment by Series and folder sorting.

    (Version 2.2 added a new sort order: 'By Folder' and added the 'Mins' column back into the Assign view.)

    Suggestions for other features anyone? :)
     
  9. Jan 19, 2003 #9 of 116
    SteveTheITGuy

    SteveTheITGuy New Member

    71
    0
    Oct 27, 2002
    LJ,

    More great features added! Good job.

    While I was organizing my forlders, I came up with a few minor suggestions:

    1) Have a category for "unassigned" to quickly find the programs you do not current have assigned to anything - showing all programs makes you sift through everything to find the "unassigned" ones.

    2) Give the ability to sort programs by group and/or by program title within the assign listing. Would also be nice to sort by program name to make assigning easier.
     
  10. Jan 19, 2003 #10 of 116
    TivoDoc

    TivoDoc New Member

    81
    0
    Dec 22, 2002
    New Jersey
    Sorry to be asking a dumb-ass question but I just got the Tivo-web working a few weeks ago and this is the first additional module I am loading.

    Do I simply transfer the text file 'npf.txt' to the modules directory or is there an 'itcl' file as well?

    Jeff
     
  11. Jan 19, 2003 #11 of 116
    SteveTheITGuy

    SteveTheITGuy New Member

    71
    0
    Oct 27, 2002
    TivoDoc,

    No trouble:

    1) Rename the file with the itcl extension (in your case npf.itcl)
    2) FTP it to you tivoweb-tcl/modules directory
    3) Do a "Quick Restart" from tivoweb.

    Good luck.
     
  12. Jan 20, 2003 #12 of 116
    jodell

    jodell TiVo geek

    138
    2
    Jul 9, 2002
    Irvine, CA
    LJ,

    Very cool addition to TivoWeb. Thanks for the hard work.

    Jeff
     
  13. Jan 20, 2003 #13 of 116
    km

    km Member

    99
    0
    Dec 1, 2001
    Atlanta....
    This module helps organize the now playing list on a single Tivo.

    Any chance of adding support to unify the now playing list of
    more than one Tivo? It comes to mind since you are now storing
    persistant info in /var/hack. Perhaps one tivo could store
    the now playing info from others and present a unifed view
    through the module.

    Quite a leap I guess.
     
  14. Jan 20, 2003 #14 of 116
    LJ

    LJ New Member

    786
    0
    Nov 11, 2001
    West...
    :)
    *nod* I agree.
    *nod* I guess this solves 1) - you could just sort by assigned folder.

    jodell: Glad you like it. :) Now we just need to persuade TiVo to put it in the series 1 UI ! ;)

    *nod* Give me a second TiVo to play with and I'll have a look :D
     
  15. Jan 20, 2003 #15 of 116
    LJ

    LJ New Member

    786
    0
    Nov 11, 2001
    West...
    Just posted version 2.4 - this version rearranges the menu lines to be a bit more intuitive - the sort line only appears when it's active. Also adds sorting to the assignment screen.
     
  16. Jan 30, 2003 #16 of 116
    LJ

    LJ New Member

    786
    0
    Nov 11, 2001
    West...
    Just posted version 2.5 to my website - this one adds a new 'Unassigned' menu option. It also defaults to 'by folder' sort next time if the sort line isn't displayed. Have also renamed it from npf.itcl to folders.itcl so it appears in alphabetic order in the menu line.
     
  17. Jan 30, 2003 #17 of 116
    TimTrace

    TimTrace Join the TiVolution!

    138
    0
    Aug 24, 2001
    St. Louis...
    I love you, man.

    I do, however, get this message when I try to view show details:

    INTERNAL SERVER ERROR
    --cut here--
    action_showing '/868299/11' ''
    can't read "genrenums": no such variable
    while executing
    "lsearch $genrenums $genre"
    ("foreach" body line 2)
    invoked from within
    "foreach genre $genres {
    set genreindex [lsearch $genrenums $genre]
    if { $genreindex != -1 } {
    if { $genrestr != "" } {
    append ..."
    ("uplevel" body line 255)
    invoked from within
    "uplevel $body"
    invoked from within
    "transaction {uplevel $body}"
    (procedure "RetryTransaction" line 5)
    invoked from within
    "RetryTransaction {
    if { [regexp {([0-9]*)/(.*)} $objectid junk fsid subobjid] } {
    set showing [db $db openidconstruction $fsid $subobjid]
    } els..."
    (procedure "::action_showing" line 47)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--
     
  18. Jan 31, 2003 #18 of 116
    LJ

    LJ New Member

    786
    0
    Nov 11, 2001
    West...
    That'll be because TiVo changed the genres - there's a fix for that here.
     
  19. Feb 17, 2003 #19 of 116
    stevehaley

    stevehaley New Member

    65
    0
    Feb 22, 2002
    London
    Could you add the series no to the view please.
     
  20. Mar 10, 2003 #20 of 116
    sterl1i

    sterl1i New Member

    21
    0
    May 14, 2002
    Missouri
    I have my Tivo Series2 hooked up to a Linksys USB 10/100tx adapter and then to my Linksys router. I can get the updates from Tivo and my router shows the Tivo but I can't FTP it to access the files.

    How do I do this?
     

Share This Page

spam firewall

Advertisements