Tivo Now Playing RSS Feed

Discussion in 'TiVo Underground' started by BOfH, Nov 16, 2005.

  1. Tenacious Lee

    Tenacious Lee Engaged-ass man

    1,944
    0
    Mar 25, 2002
    Somewhere...

    Advertisements

    Ditto. Just started up TiVoTool and was able to pull a listing of shows. vserver is running fine.

    Hmm.
     
  2. bushman4

    bushman4 New Member

    108
    0
    Jun 6, 2005
    Massachusett...
    Are you using TiVoWeb or TiVoWebPlus?

    Do you have the TiVoWebPlus variable set correctly?

    Bushman
     
  3. Tenacious Lee

    Tenacious Lee Engaged-ass man

    1,944
    0
    Mar 25, 2002
    Somewhere...
    Yep and yep.
     
  4. Tenacious Lee

    Tenacious Lee Engaged-ass man

    1,944
    0
    Mar 25, 2002
    Somewhere...
    Here's a sample of the rss feed generated, which I can view in Firefox/MSIE from work. It looks like a great deal of the variables are somehow getting skipped over, although I can't find where in the code the problem is.

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <feed version="0.3"
    xmlns="http://purl.org/atom/ns#"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xml:lang="en">
    <title>Tivo Now Playing</title>
    <link rel="alternate" type="text/html" href="http://zaphod.homedns.org/tivo/nowshowing" />
    <tagline>What's on Jae's Tivo?</tagline>
    <modified>2005-12-08 22:21:09</modified>
    <copyright>Copyright 2005</copyright>
    <generator url="http://blog.durdle.com/nowplayingrss/" version="0.3">NowPlayingRSS</generator>
    The Tyra Banks Show^12/8^Salvaging quick marriages.^A couple who wed just weeks into their relationship and a couple whose shotgun wedding was a disaster try to salvage their marriages.
    King of the Hill^12/8^Be True to Your Fool^After Bill gives lice to the other guys, they refuse to drink beer with him.
    Yoga Zone^12/8^No Episode Title^
    Late Night With Conan O'Brien^12/8^Lindsay Lohan; Colin Hanks; Coldplay.^Actress Lindsay Lohan; actor Colin Hanks; Coldplay performs.
    The Simpsons^12/7^The Strong Arms of the Ma^Marge retreats to the basement to lift weights after she is mugged.
    </feed>
    
     
  5. bushman4

    bushman4 New Member

    108
    0
    Jun 6, 2005
    Massachusett...

    Advertisements

    OK, I did a fair bit of research about Feed Formats.

    Turns out, the original BoFH version is really an ATOM 0.3 format, not a RSS 2.0 format...

    I did a re-write to convert it from ATOM format to RSS 2.0... now the only issue that FeedValidator.org has with it is the MIME type of the returned feed, which I'm not sure if it's possible to change in TWP.

    Major Changes:
    1. the Publish Date of each "news item" is the record date of the show, rather than "now"
    2. The "more info" link is set to take you to the TWP info page for the show.
    3. The bottom of the description has a "-View-" link that should launch VLC or whatever your tivo:// URI handler prefers.
    4. All times are in GMT, since that is the native time of the TiVo... your RSS client should then convert it to local time for you...

    If you want to run both modules in parallel, you will need to modify the existing module to have a different name. I did this:

    * rename nowplayingrss.itcl to nowplayingatom.itcl
    * change the last line from:
    Code:
    register_module "nowplayingrss" "Now Playing RSS" "Now Playing List as RSS"
    to:
    Code:
    register_module "nowplayingatom" "Now Playing ATOM" "Now Playing List as ATOM"
    Then upload this new module (after saving it and removing the .txt extension) to your TivoWeb Modules directory, and do a quick restart.

    If someone could check this out with other readers, I'd appreciate it.

    Thanks,

    Bushman

    PS, all props to BoFH for his intial work on this module... without him, I never would have thought to modify it...

    EDIT: New version posted on Feb 8, 2006. See post #72 in this thread for more info. The version attached to this message is the updated version
     

    Attached Files:

  6. Tenacious Lee

    Tenacious Lee Engaged-ass man

    1,944
    0
    Mar 25, 2002
    Somewhere...
    Hmm. Just tried your version, bushman and I'm still getting no articles. Very strange.
     
  7. Gunnyman

    Gunnyman Just a boring dude

    31,876
    906
    Jul 10, 2003
    Upstate...
    go into teh script and make sure the variable for tivourl is changed to match your tivo's IP.
     
  8. Fofer

    Fofer Bo55man69

    93,122
    4,543
    Oct 29, 2000
    New one workin' for ya, Gunny? I'll try it out when I get home.
     
  9. Tenacious Lee

    Tenacious Lee Engaged-ass man

    1,944
    0
    Mar 25, 2002
    Somewhere...
    My tivo's address is 192.168.1.222. I have this mapped in NetInfo Manager to 'tivo'.
    I've tried setting the variable in nowplayingrss.itcl to 'tivo' ,'192.168.1.222', and 'mydomain.com/tivo'

    Apache has a VirtualHost/proxy set up to send connections at mydomain.com/tivo to the TiVo.

    TiVoWeb+ has a prefix set to tivo in tivoweb.cfg, because otherwise the css didn't take (not sure why)

    When I connect to http://tivo and then click on nowplayingrss from the menu, it actually takes me to http://tivo/tivo/nowplayingrss, which gives safari a problem (it thinks for a second, then goes to feed:http:// and gives me an error that it could not be located)

    If I go to feed://192.168.1.222/nowplayingrss directly, it pulls up the rss page- only it says there are no articles.

    Looking at the code I pasted from yesterday, I'm very confused why none of the channel or item information for each show is included when outputting the data (which only shows up in not safari)
     
  10. Gunnyman

    Gunnyman Just a boring dude

    31,876
    906
    Jul 10, 2003
    Upstate...
    yep and it works in my RSS widget too :D
     
  11. bushman4

    bushman4 New Member

    108
    0
    Jun 6, 2005
    Massachusett...
    People who have tried the RSS version, do the item titles show up correctly in your RSS Reader? Not the episode names (ie, the problem that was happening before... Dragon Tales anyone? ;) ) but the title portion of the RSS items.

    In FeedDemon, the encoded titles show up fine, but in the homebrew xAP News application, the titles are blank because of the encoding...

    Just curious if your readers are OK with the encoded title. It's in the spec that they should handle encoded titles...

    Thanks,

    Bushman
     
  12. TubaMan-Z

    TubaMan-Z Love good tuba

    63
    0
    Apr 7, 2004
    Mantorville, MN
    bushman4,

    I've installed your RSS-corrected nowplayingrss.itcl module and am trying it out as a Firefox Live Bookmark. In general things work well. However, for those shows that I have marked SUID, I get the info screen that Gunnyman reported back on 11-16-05 (post #3 in this thread). All of my SUID shows are older than the oldest non-SUID show with my newest SUID show being recorded on 12/5 and the oldest non-SUID show recorded on 12/10.

    FYI - Using Live Bookmarks for this is not the best. All I get is a list of the same icons - no text at all.
     
  13. km

    km Member

    99
    0
    Dec 1, 2001
    Atlanta....
    Is there a way to actually use this with Firefox Live Bookmarks? Firefox doesn't seem to like the utf-8/CDATA encoding of the Titles.
     
  14. bushman4

    bushman4 New Member

    108
    0
    Jun 6, 2005
    Massachusett...
    Sure...

    Change:
    Code:
      puts -nonewline $chan "<!"
      puts -nonewline $chan "\x5b"
      puts -nonewline $chan "CDATA"
      puts -nonewline $chan "\x5b"
      puts -nonewline $chan "$title"
      puts -nonewline $chan "\x5d\x5d"
      puts $chan ">"
    to:
    Code:
      puts -nonewline $chan "$title"
    and then do a quick restart...

    Bushman
     
  15. km

    km Member

    99
    0
    Dec 1, 2001
    Atlanta....
    Thanks for the tip! However, it turns out that the CDATA is really needed because of the "&" that often appear in Titles and Descriptions.

    The issue is really that firefox is sensitive to any white space preceeding CDATA and the easiest fix to satisfy firefox is

    116c116
    < puts $chan "<title>"
    ---
    > puts -nonewline $chan "<title>"
    127c127
    < puts $chan "<description>"
    ---
    > puts -nonewline $chan "<description>"
     
  16. km

    km Member

    99
    0
    Dec 1, 2001
    Atlanta....
    By the way, I think the comment

    # Are you using TivoWebPlus? 1 if yes, 0 if no.
    set tivowebplus 1

    is not really correct. What it controls is whether fsid/11 or fsid/12 is used for the link to the showing. That's not a Tivoweb issue at all, it really speaks to the structure of the MFS on the tivo, which is dependent on the version of the tivo software not tivoweb.

    For example, on my tivo series 1 with 2.0 software, the correct setting would be 0 even with TivoWebPlus.
     
  17. bushman4

    bushman4 New Member

    108
    0
    Jun 6, 2005
    Massachusett...
    Do you know when to use each one? I only have a S1 SA, with 3.0 software, and TWP... that setting was there from when the Bastard wrote the original script.

    If someone can provide me with rules, I can program them in...

    Bushman
     
  18. twynne

    twynne New Member

    15
    0
    Apr 17, 2002
    London
    Really looking forward to getting this working, but having a couple of teething problems:

    1. In my RSS reader (I'm trialing Greatnews if it matters), the date shows up correctly but the time is showing 12:00am on every recording. Any ideas what causes this and if it can be fixed??

    2. Like someone else in this thread, I can't get streaming to work for anything. I've installed/run vserver, and get the message 'waiting for connections on port 8074' when run manually from a telnet prompt. Tivo:// links do launch VLC, but it just does nothing. I have downloaded and installed the latest plugins for VLC. Is there anything else I'm missing?

    Many thanks,

    Tom

    Oh, this is a UK S1 Tivo running 2.5.
     
  19. twynne

    twynne New Member

    15
    0
    Apr 17, 2002
    London
    Quick update - got streaming working. Turns out it was the vstream modules for VLC not being the correct version. I had VLC 0.8.4a and modules 0.8.2. Managed to find the correct version of the modules and it works fine.

    Now if I could just sort out the time showing incorrectly in my RSS reader. Does anyone else have this problem with the RSS module, or do you think it's an issue with my reader?

    Cheers,

    Tom
     
  20. twynne

    twynne New Member

    15
    0
    Apr 17, 2002
    London
    Bushman - I thought I'd try your updated version to see if it resolved my 'time' issues (see above) but I can't even get it to work in Tivoweb. I first tried running the two in parallel. When that failed I removed both and added the new version alone - still no joy. I then removed it and put the old version back and it works fine.

    Is there any possibility that this only works with TWP?

    Cheers,

    Tom
     

Share This Page

spam firewall

Advertisements