On Sun, Jul 31, 2011 at 09:58, Saravanan <saravanan.thirumuruganat...@mavs.uta.edu> wrote: > > I am trying to write some Ubuntu Unity lens using IMDBPy.
Great! Let me know when it's done! > For this purpose, I need only genre information. I took a look at the code and > did not find any get_movie_genre kinda function. So currently, I am > using ia.update(x,"main") . Is there anyway to just the genre information? There's no way to get only the 'genres' key; you're doing right, asking for only the 'main' info set (after that, you can access the 'genres' key of the Movie object). If you're worried about performances, you can consider using the 'mobile' data access system (i.e.: ia = imdb.IMDb('mobile') ) and leaving the rest of your code untouched. It should be slightly faster, but... I notice right now that it fails to parse the 'genres' key. I have to fix it. :-) -- Davide Alberani <davide.alber...@gmail.com> [PGP KeyID: 0x465BFD47] http://www.mimante.net/ ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Imdbpy-help mailing list Imdbpy-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-help