Tivo Now Playing RSS Feed

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

  1. Gunnyman

    Gunnyman Just a boring dude

    31,867
    882
    Jul 10, 2003
    Upstate...

    Advertisements

    nope
    Law & Order
    Living Room Tivo
    Wednesday, 10:00 PM
    Detectives investigate a series of seemingly random murders. Read more…

    is what mine says
     
  2. bushman4

    bushman4 New Member

    108
    0
    Jun 6, 2005
    Massachusett...
    I'm getting episode titles on my S1 SA...

    On another note, I ran my RSS feed through www.feedvalidator.org, and came up with a few problems:

    Code:
    Feeds should not be served with the "text/html; charset=utf-8" media type 
    I'm not sure if it's possible to change the media type of a returned page in TWP

    Code:
    line 2, column 0: This feed is an obsolete version
    <feed version="0.3"
    Code:
    modified must be an W3CDTF date
    
    <modified>2005-12-06 12:57:59</modified>
    That should be trivial

    Code:
     link must be a valid URI (187 occurrences)
    <link rel="alternate" type="text/html" href="tivo://tivo/919360" />
    I'm betting that FeedValidator doesn't recognize tivo:// as anything...

    Code:
    issued must be an ISO8601 date (187 occurrences) 
    <issued>2005-12-06 06:00:00</issued>
    Trivial as well.

    I'm no TCL wiz, but I can take a look and see if I can get it to work right... I'm struggling to get the feed to work as a news feed in xAP News (www.mi4.biz)... it works fine in FeedDemon 1.5...

    Bushman
     
  3. Arcady

    Arcady Stargate Fan

    3,959
    3
    Oct 14, 2004
    Philadelphia...
    I have this working on my DirecTivo and Mac. It's really cool. However, I am also not seeing episode titles.
     
  4. Gunnyman

    Gunnyman Just a boring dude

    31,867
    882
    Jul 10, 2003
    Upstate...
    I think we're seeing some differences between S2 Tivos and/or TWP and older tivoweb.
     
  5. bushman4

    bushman4 New Member

    108
    0
    Jun 6, 2005
    Massachusett...

    Advertisements

    Do either of you happen to run DailyMail? Do episode Names show up there?

    Looking at the module, there is only one difference between how the two pieces of code get the title... DailyMail assumes that all programs are episodic (and hence have episode titles) unless explictly defined as non-episodic.

    NowPlayingRSS assumes the oposite...

    Try this:
    Change this code:
    Code:
    set episodic [dbobj $series get Episodic]
    to This code:
    Code:
    if {$series != ""} {
    set episodic [defaultval 1 [dbobj $series get Episodic]]
    } else {
    set episodic 1
    }
    Maybe some of these items are not "episodic" or maybe the "episodic" value is bogus, or named something different.

    HTH,

    Bushman
     
  6. bushman4

    bushman4 New Member

    108
    0
    Jun 6, 2005
    Massachusett...
    BTW, I am using a Series 1 Stand Alone, with the latest and greatest TiVoWebPlus.

    And I get episode titles...

    (It looks like the comonality has more to do with either Series 1 vs. Series 2, or DTV vs. SA, since Gunny and I are both on the same TWP)

    Bushman
     
  7. Gunnyman

    Gunnyman Just a boring dude

    31,867
    882
    Jul 10, 2003
    Upstate...
    That fixed it for me.
    Nice work!
     
  8. Fofer

    Fofer Bo55man69

    93,084
    4,528
    Oct 29, 2000
    Me too! Thanks!

    I was thinking Standalone vs. DirecTiVo. I recall reading some similar notes with other modules and how these units handled episode listings differently.

    But here's another wrinkle. This change initially worked for me on one HDVR2 DirecTiVo, but not the other. I could see ep. titles on one, but not the other. :confused: These machines are otherwise identical, modded the same. So I restarted TWP, I cleared my browser cache, etc. Still no episode titles in the RSS feed for unit #2.

    Then I realized DTiVo #2 has mostly older recordings (lots of movies, some seasons of shows I am keeping around.) They were all recorded back when I was on 4.0.1b on that unit. (I am now on 6.2.) So I set up a quickie recording of something airing right now, that had an episode title.

    Sure enough, the episode title now shows up in the RSS module!


    So it's got something to do with SA/Combo, older OS vs. 6.2.

    Glad to see it working now for me though. :)
     
  9. Fofer

    Fofer Bo55man69

    93,084
    4,528
    Oct 29, 2000
    Just curious, how long after I delete a show from Now Showing should it disappear from the RSS feed?
     
  10. bushman4

    bushman4 New Member

    108
    0
    Jun 6, 2005
    Massachusett...
    It will dissappear from the "feed" immediately...

    How long it will kick around as a "news item" in your RSS aggregator application is a different story.

    Does anyone know if there is a way to expire a news item in a feed? If so, I could add a piece of code to the module to send out expiration messages for each item in the deleted list...

    I'm not an RSS whiz... maybe I'll dig out the spec and look into it.

    Bushman
     
  11. Fofer

    Fofer Bo55man69

    93,084
    4,528
    Oct 29, 2000
    Ahh... gotcha.
     
  12. bushman4

    bushman4 New Member

    108
    0
    Jun 6, 2005
    Massachusett...
    OK, I'm looking into the Spec, and answering a few more questions...

    First off, to fix the Feed Modified date replace this line:
    Code:
    puts $chan "<modified>[clock format [clock seconds] -format "%Y-%m-%d %H:%M:%S"]</modified>"  
    with:
    Code:
    puts $chan "<modified>[clock format [clock seconds] -format "%Y-%m-%dT%H:%M:%S"]Z</modified>"  
    To fix the entry modified date, replace this line (in print_nsrow):
    Code:
    set timestr [clock format $seconds -format "%Y-%m-%d %H:%M:%S"]
    with:
    Code:
    set timestr [clock format [clock seconds] -format "%Y-%m-%dT%H:%M:%S"]Z
    And to deal with empty descriptions (since the summary section of each item should not be blank) replace this line:
    Code:
    puts $chan "\x5b$eptitle[strim [dbobj $program get Description]]\x5d\x5d>"
    with this:
    Code:
      set descrip  [dbobj $program get Description]
      set trimdescrip [strim $descrip]
    if  {$trimdescrip == "" } {
        puts $chan "\x5b$eptitle No Description\x5d\x5d>"
    } else {
      puts $chan "\x5b$eptitle[strim [dbobj $program get Description]]\x5d\x5d>"
    }
    FeddValidator.org now only complains about feed version and bad links... bad links are going to stay, since it doesn't recognize "tivo://" as a URI, but the version is a different story.

    Speaking of that... is this supposed to be in RSS format, or in Atom format? It appears as though RSS feeds should all start with a "<RSS" tag, but this feed starts with "<feed"... I haven't looked into atom format yet, so maybe that's the answer.

    More later...

    Bushman
     
  13. bushman4

    bushman4 New Member

    108
    0
    Jun 6, 2005
    Massachusett...
    BTW, do these changes make it readable in any of the readers that failed before? I'm trying to bring this feed into "spec" and maybe it will be more universally used...

    Bushman
     
  14. Fofer

    Fofer Bo55man69

    93,084
    4,528
    Oct 29, 2000
    That would be great. :)

    Because now that I've tested the "episode name" by recording 5 minutes of "Dragon Tales"... and them promptly deleted it... I'm stuck looking at "Dragon Tales" in my RSS feed. [​IMG]

    :D
     
  15. Gunnyman

    Gunnyman Just a boring dude

    31,867
    882
    Jul 10, 2003
    Upstate...
    wow this has truely become a 'Community" Project!
    Awesome.
     
  16. Tenacious Lee

    Tenacious Lee Engaged-ass man

    1,944
    0
    Mar 25, 2002
    Somewhere...
    I'm not sure if it's because I haven't edited the tcl at all, aside from the variables I'm supposed to- but when I open the feed in Safari, it's just blank.

    Any clue as to why?
     
  17. ruexp67

    ruexp67 New Member

    479
    0
    Jan 16, 2002
    I am getting a blank listing when I view it with WIZZ RSS in Firefox on my PC as well. HDVR2 TWP 1.2.1

    Even at that, I cannot get this to stream at ALL. I can click on any link and get the TIVO:// link, but it simply will NOT play in VLC at all. :confused: I cut and pasted the link into VLC as described in the blog link, but no joy. I tried disabling my personal firewall and no change.

    FWIW I have not been able to get the .asx file to stream to WMP either.

    I used the Zipper to hack the tivo. Is there a component I may be missing?
     
  18. Gunnyman

    Gunnyman Just a boring dude

    31,867
    882
    Jul 10, 2003
    Upstate...
    vserver
     
  19. bushman4

    bushman4 New Member

    108
    0
    Jun 6, 2005
    Massachusett...
    I just realized that the date format that I used in the Modified tags is wrong.

    W3C format says (http://www.w3.org/TR/NOTE-datetime) that a date should be in the format:
    and then give the examples:
    Since the TiVo's time is in GMT, there is no Time Zone offset... the RSS reader application should do the offset automatically, depending on where it is running (what time zone).

    I will edit my other post to reflect the correct format, but essentially, the Global definition I mentioned can be removed again, and replace "[format "%+03d" [expr $tzoffset / 3600]]:00" with "Z"

    Bushman
     
  20. ruexp67

    ruexp67 New Member

    479
    0
    Jan 16, 2002
    Both HackMan and ps both list vserver as running.

    I'll keep digging, thanks for the suggestion though.
     

Share This Page

spam firewall

Advertisements