Dave Burke : Freelance .NET Web Developer specializing in Online Communities

More fun with feeds: My Netflix Queue CSBlogs Mod

Under the category "because with RSS I now can..." I added a Netflix DVD Queue mod to my blog.  You'll find it here.  Creating this CS mod was an opportunity for me to use Scott Mitchell's excellent SkmRSS library.  There are additional bits on SkmRSS on a recent post here.  The mod is also made possible because Netflix provides several RSS feeds of not only your queue, but to what you've got at home (which may be fun yet to add to this mod), along with recommendations, top 100 most popular rentals, and so on.

Steps in the CS mod were the usual:  Add a netflix.aspx page which loads a view, which loads the skins containing the controls, write the codebehind classes in the csblogs project.  Then update the SiteUrls.config, BlogUrls.cs and resources.xml.  In this case, however, we're binding a RssFeed object to a SkmRSS control and not to a simple asp:repeater in the NetflixList.ascx, so base binding gets tricky, given the deply inherited nature of CS.  To resolve the problem of SkmRSS binding to a null (the [cached] feed hasn't been retrieved yet), I added some hackery to the CS\Controls\TempletedWebControls.cs base class:

public override void DataBind() {
    this.EnsureChildControls();
    if (this.GetType().Name != "NetflixList")
    {
        base.DataBind ();
    }
}


I've put together a zip with codebits, the skins, controls, and codebehind if anyone else feels the need to put their Netflix Queue online, as well.  Let me know if you do so I can check it out!


Technorati Tags: , ,

Comments (6) | Post RSS RSS comment feed

Posted on 1/15/2006 2:13:00 PM by Dave Burke
Categories: Community Server
Tags:

Related posts

Comments (6) -

1/16/2006 5:59:03 AM Permalink

Gonna have to try this out this week.   Always innovating up there in Vermont.

Dave Kekish |

1/16/2006 6:35:33 AM Permalink

Something to do...  

How's the Bob Newhart show, Dave?  I had that in my queue for a long time but it never seemed to find it's way to the top.  Glad to see "From the Earth to the Moon" is in your queue.  I just watched it myself.  My favorite episode is "Spider," of course.

daveburke |

1/16/2006 8:55:18 AM Permalink

As tioming would have it,  I watched the Newhart show this weekend (had to do something to occupy my time with the kids).   They were still funny, though not as funny as I remembered it.  

I noticed your going through the stargate series.  My wife loves that show (I think its not bad myself).   I buy her the DVD's on that one.  

Dave Kekish |

1/16/2006 9:00:24 AM Permalink

Yeah, that will probably be my reaction to the Bob Newhart Show if it ever pops the queue.  SG1, you betcha!  Netflix is great for going through years of something like SG1 or ST:TNG without having to buy the DVDs.  I might have to buy them myself though, if just for the commentaries.


daveburke |

1/16/2006 1:56:40 PM Permalink

Unfortunatly for me, I'll have to wait until they release source for CS 2.0 before I implement.  Just have to add it to my ToDo list.

Dave Kekish |

1/16/2006 1:58:27 PM Permalink

That's probably the smart thing to do, Dave.  I don't know why I'm doing all of these mods with CS 2.0 almost out.

daveburke |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke