1

Closed

Catalog searches from RSS feeds

description

Can you add a method to you Api to let me create a CatalogMovie from the
data provided in the RSS feeds? I would like to be able to do the code
below and get back a List of Catalog Movies. This will let me merge the
results from Api calls with RSS feeds.
 
           List<CatalogTitle> results = new List<CatalogTitle>();
 
           System.Net.WebClient webclient = new
System.Net.WebClient();
 
           //Get RSS feed xml
           string feeddata = webclient.DownloadString(new
Uri(@"http://www.netflix.com/TopWatchInstantlyPastThreeMonthsRSS"));
 
           //Turn string into XElement
           System.Xml.Linq.XElement xmlFeed =
System.Xml.Linq.XElement.Parse(feeddata);
 
           //Create linq query that will create set of
CatalogMovies
           var movies = from t in xmlFeed.Descendants("item")
select new CatalogMovie(this.connection,t) ;
 
           results= movies.ToList();
Closed Dec 18, 2008 at 4:55 AM by Grauenwolf
Duplicate

comments