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

Now Playing (more PHP code) - Part II

Discussion in 'TiVo Home Media Features & TiVoToGo' started by windracer, Oct 26, 2007.

  1. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Now that TTG has been enabled for the Series3 platform I thought I'd try to revive a really old thread in case any of the new S3/THD owners were interested.

    Every now and then I get PM'ed asking how I make the Now Playing pages linked to in my sig. Here's how:

    The PHP code that generates the NPLs for each TiVo can be found in this old thread:

    http://archive2.tivocommunity.com/tivo-vb/showthread.php?t=218365

    In a nutshell:

    The PHP program connects to the TiVo web server, then parses out the XML into what you see in my sig. It can also create RSS feeds, so you can actually "subscribe" to your own feeds and get updates when any of your TiVo boxes record a show during the day (why? why not?). :D

    I have my own little web server at home, running Linux (which is the same server I run Galleon and pyTiVo on). Every hour, a scheduled job runs the PHP code and refreshes the Now Playing Files.

    Check it out, it's pretty cool. :up:
     
  2. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    I guess no one else thinks this is cool? :rolleyes:
     
  3. greg_burns

    greg_burns Now in HD

    6,384
    0
    May 21, 2004
    Slower...
    I do, but PHP just ain't my thing. :p
     
  4. clam729

    clam729 Member

    205
    2
    Nov 27, 2004
    I still think it's cool ;) I have a new version with bug fixes, new features, new urls, prelim channel logos, etc.

    Give me a day or two to give it a final check and I'll upload a copy to this thread...
     
  5. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Excellent! :up:
     
  6. gonzotek

    gonzotek tivo_xml developer

    2,401
    3
    Sep 24, 2004
    Outside...
    Awesome!
     
  7. clam729

    clam729 Member

    205
    2
    Nov 27, 2004
    Status update. I am away from home, so editing has been limited.

    The following changes have been made:
    -alot of cosmetic fixes/changes
    -display of the <highdefinition> tag
    -PHP updates (still on 4, haven't switch to 5 yet)
    -channel logo downloads from the TiVo, however, I still haven't made the channel logo <-> XML connection

    Still in progress
    -need to update the URLs for IMDB and Zap2It support
    -update the "forum" copy of the code
     
  8. JohnBrowning

    JohnBrowning New Member

    295
    0
    Jul 15, 2004
    Plano, TX
    Sure they do! They just don't want everyone to see what porn they're watching!! :p
     
  9. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Note to clam729: ability to filter pr0n out of NPL. :D :p
     
  10. Airey001

    Airey001 New Member

    31
    0
    Oct 20, 2005
    LOL alway must hide those videos.

    And this is something i was interested in also thanks for posting this and thank those that are updating the code.

    I have been busy playing with and hacking my new iPod Touch! And really haven't been playing with my tivos all the much recently. Epically since 9.1 broke alot of stuff.
     
  11. clam729

    clam729 Member

    205
    2
    Nov 27, 2004
    Already in there ;)
    I have an array that you can put keywords, titles, etc. in that you want filtered out.
     
  12. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
  13. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    *bump*

    Hey clam729, did you ever release that newer version you were working on late last year?

    I just noticed the other day that the old (original) version I am using is missing an icon for an in-progress transfer (i.e., the blue dot) and it made me think of this. I'd like to have those HD and filter enhancements.
     
  14. clam729

    clam729 Member

    205
    2
    Nov 27, 2004
    Been a while since I replied to this and even looked at my PHP code. I had an idea tonight, fired up the editor and added some new/more code/features.

    The previous version of the PHP script would pull back the basic XML data from your TiVo(s) and display it in a webpage. Each show has more XML data - you can see this when you click the title link from my page. Now my PHP script will pull down the basic XML data - THEN - loop through each show and pull it's XML data down as well - process it and expand/enhance the show's listing on the webpage.

    The new listing will include ratings, series and show genres, actors, advisorys, director, producer, etc. - I even have the images linked for advisory's and ratings.

    Data pulling is fairly quick. I was able to pull the initial data and 80 shows/movies split between 2 TiVos in less than one minute.
     
  15. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Sounds cool ... where can we get the new code?
     
  16. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    *bump for clam729*

    I'm back from vacation and would like to try out the new stuff. Ready to share it?
     
  17. clam729

    clam729 Member

    205
    2
    Nov 27, 2004
    Not quite yet - still some kinks to work out. Still trying to get the new parser 100% working. I am able to pull all data I need, now I'm at the part of "prettying it up" for the web output.
     
  18. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Some mods I made (with azitnay's help) to index.php include the addition of a header to the main file, stripping out the Tribune notification from each description, and adding a breakdown of sizes (Suggestions, freespace, etc.) to the end. Check the links in my sig for examples and let me know if you want any of that code (I can't remember if you've added that since or not).
     
  19. wmcbrine

    wmcbrine Ziphead

    10,363
    22
    Aug 2, 2003
    How are you doing the Season Passes?
     
  20. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Excel. :eek:

    Sorry, no magic there.
     

Share This Page