A better /nowplaying/index.html

Discussion in 'TiVo Home Media Features & TiVoToGo' started by gman622, Mar 28, 2005.

  1. TiVo Steve

    TiVo Steve New Member

    326
    0
    Nov 8, 2005
    Seattle WA.
    I'm using Firefox 1.5 on a Linux box (running VectorLinux SOHO 5.1 and Galleon 1.92) and it works great!
     
  2. morac

    morac Cat God TCF Club

    12,420
    1,221
    Mar 14, 2003
    NJ
    If you are in the program info screen hit the info button to open up extra info.
     
  3. Feb 5, 2006 #103 of 168
    gman622

    gman622 New Member

    111
    0
    Feb 17, 2005
    awhile ago i updated this to support files transferring from pc to tivo (they show up in blue). today i made a small change to edit out the copyright tribune media... message that appears after every description.
    by the way this (as well as the Pie Chart ) works fine in Firefox 1.5.
     
  4. Feb 5, 2006 #104 of 168
    morac

    morac Cat God TCF Club

    12,420
    1,221
    Mar 14, 2003
    NJ
    There are a few errors in your new version and a problem in the old and new versions:

    1. On line 574, the script will output the quality as "Unknown" if there is no source channel define. This should probably be changed to SourceSize.

    2. On the same note, a few shows that I recorded on my TiVo are showing up as "PC:GREG" for some reason and the "details:show" link is missing. Your code seems to check if their is a source channel and if not it labels it as "PC:GREG". For whatever reason, there was no source channel for this recording even though it was recorded on the TiVo. Also even if there is no source channel, the option to display the program info should probably be allowed.

    3. The whole algorithm for calculating quality seems to have a few flaws in it. A number of shows I recorded on High show as Medium. Currently the code takes the total size and divides this by (the show length in milliseconds divided by 1000). This has been like this for a while.

    I recorded Smallville and if you look at the TiVoVideoDetails page for it on the TiVo it shows up as HIGH, but shows up as Medium here. It's sourcesize is 1391460352 and it's duration is 3601000. Using the algorithm in your code that would give it a Bps of around 386409. Since you code treats anything with a Bps between 300000 and 400000 as Medium, it is listed as Medium even though it was recorded on High quality.

    Since my TiVo's source is digital cable which is a cleaner signal, higher quality recordings don't always require more Bps.
    It might be better to just read the value on the TiVoVideoDetails page since your code already reads that page to get the Expiration time.

    I pulled in your changes and corrected #1 and #3 in my version (#3 by replacing the precalculated quality with the actual when it checks for the expiration time). As for #2, it should work as is, but I decided to key off the "ProgramId" key since that should always be set for shows recorded on the TiVo. I wouldn't think PC downloads would have that set, but I'm not positive.
     
  5. Feb 5, 2006 #105 of 168
    gman622

    gman622 New Member

    111
    0
    Feb 17, 2005
    i use the sourcechannel field in the xml file as a check for a .tivo file; if it isn't then there really isn't any notion of quality. the sourcesize is already in it's own column.

    that's my pc's name, i should have mentioned to do a search in the file and change that to whatever you like as a "source"

    that's strange, i've never had that happen. every show i've ever recorded had a sourcechannel. does this recording have a sourcestation?

    i don't think the signal has anything to with thie size of the recording (except on the old tivo's that have vbr recording). i never really futzed around with the algorithm because my recordings have been very very consistent as far as bps goes.

    that would be the way to go but i didn't want to mess with my code that much and like i said my recordings have all been exactly the same size (within plus or minus 1 or 2 MB )


    maybe that is the better key to use; anyway that would be an easy change to make. just change line 574 from:
    Code:
    "not(t:Details/t:SourceChannel)"
    to:
    Code:
    "not(t:Details/t:ProgramId)"
     
  6. Jul 9, 2006 #106 of 168
    oyarzun

    oyarzun New Member

    1
    0
    Jul 9, 2006
    NC
    The download link no longer exists is there anywhere I can download the file? Thanks.

    Found it searching "tivo now playing xhtml" on google. It's the first link.
     
  7. Jul 9, 2006 #107 of 168
    gonzotek

    gonzotek tivo_xml developer

    2,538
    59
    Sep 24, 2004
    Outside...
  8. Jul 9, 2006 #108 of 168
    tedbill

    tedbill New Member

    60
    0
    Feb 11, 2002
    I took what Gonzotek has posted on his web page, pasted it into a text editor, made the changes to line 9 and 14, and saved it off as an XHTML file. When I try to open the file in FireFox I get the following:

    XML Parsing Error: not well-formed Location: file:///c:/WINDOWS/Desktop/Untitled.xhtml Line Number 560, Column 55: <xsl:value-of select="$hr"/>:<xsl:if test="$min < 10">0</xsl:if><xsl:value-of select="$min"/>

    Any idea what I'm doing wrong?
     
  9. Jul 9, 2006 #109 of 168
    marty.mc

    marty.mc New Member

    10
    0
    May 29, 2006
    Same error here tedbill... what a bummer, I am really wanting to check this out!
     
  10. Jul 9, 2006 #110 of 168
    marty.mc

    marty.mc New Member

    10
    0
    May 29, 2006
    Seems to have something to do with using the "<" instead of "&lt" but I cannot
    figure out how to get the latter to work either...
     
  11. Jul 9, 2006 #111 of 168
    marty.mc

    marty.mc New Member

    10
    0
    May 29, 2006
    Well I seemed to have figured out it was a prob with <![CDATA[ and ]]> not being
    placed correctly. I started adding them in around the error(s) and it would pass
    but find OTHER errors! Argh! What a recipe for a headache. Hopefully the original
    author will throw us a line, otherwise we're outta' luck...?
     
  12. morac

    morac Cat God TCF Club

    12,420
    1,221
    Mar 14, 2003
    NJ
    My link still works if you want to grab my version of the code. It is based off the latest version of gman's code.
     
  13. marty.mc

    marty.mc New Member

    10
    0
    May 29, 2006
    Thanks morac. I can't seem to get a break on this... it works better than the other
    I had downloaded, but now I get a mostly blank browser window except for a
    disabled drop down menu thingy... argh.

    I can access both TiVo's via the built in Now Playing using Firefox, so they are there
    and running and accessable from this PC.

    Bummer. Dude. :cool:
     
  14. tedbill

    tedbill New Member

    60
    0
    Feb 11, 2002
    Thanks Morac, that did it for me! Neat tool . . .
     
  15. marty.mc

    marty.mc New Member

    10
    0
    May 29, 2006
    It's working for me now... I think maybe I wasn't giving it enough time to download
    the shows... but it is giving me warning about the certificate, which it didn't do the
    last attempts... hmm. Well, thanks all!

    I saw the formula earlier in this thread for how to calculate space on your TiVo... but
    looking at it makes my head hurt! Anyone know the usable drive capacity of the
    standard Series 2 80 hour TiVo?
     
  16. jlc4

    jlc4 Member

    61
    0
    Apr 2, 2006
    Did you use too much bandwidth? Could someone who has this repost in a different location? I'd like to check this out.

    Thanks!
     
  17. marty.mc

    marty.mc New Member

    10
    0
    May 29, 2006
    look 4-5 posts back... morac posted a link
     
  18. gman622

    gman622 New Member

    111
    0
    Feb 17, 2005
    I've been trying to get this to work with Opera 9 (they support xsltprocessor now) - unfortunately it doesn't seem possible. There's no way to do a cross-domain request (even one that's on the local network).
    I even tried making an opera widget which would allow the cross-domain request, but they don't work with https sites.
    One hacky workaround would be to write a script that downloads the xml files every few minutes.
     
  19. morac

    morac Cat God TCF Club

    12,420
    1,221
    Mar 14, 2003
    NJ
    That's one of the reasons (of many) that I don't switch to Opera. It's a good browser, but it lacks some of the features and flexibility of Firefox. The main thing I like about Opera is it's page zooming features, but fortunately the same feature will be in Firefox 3.0.
     
  20. gman622

    gman622 New Member

    111
    0
    Feb 17, 2005
    this page is the only reason I open up firefox. there are many reasons why I prefer Opera, but let's just say they're both very good browsers (and miles ahead of IE) and leave it at that. :p
    i did submit a bug report to opera to allow cross-domain requests for local files (the file:// protocol).
    there is a way to get this to work using a reverse-proxy and Apache but that doesn't seem worth the hassle just to serve one page to myself. today i wote a little Python script that retrieves all the xml files every five minutes. not a great solution but at least it now works in Opera.
     

Share This Page