On Apr 19, Andre LeBlanc <andreplebl...@gmail.com> wrote: > http://www.imdb.com/title/tt0121955/episodes > season 13 episode 7 hasn't aired yet, but it has a listing coming up in a > few days. > > when I do as you suggested, I get 'airing' data for 13x06, but not for > 13x07, but they both appear to have the data on the website.
Very strange; which version of IMDbPY are you using? With 4.0 and the 4.1 (the SVN version) it works for me; try this: import imdb i = imdb.IMDb('http') # or 'mobile' m = i.get_movie('0121955') i.update(m, 'episodes') print m['episodes'][13][7]['original air date'] I get "22 April 2009" as expected. PS: this example is just an ad-hoc case: keep in mind that every key used to descend information in the 'm' object ('episodes', 13, 7 and 'original air date') can be non-existent, so write your code to deal with this case. :-) -- Davide Alberani <davide.alber...@gmail.com> [PGP KeyID: 0x465BFD47] http://erlug.linux.it/~da/ ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Imdbpy-help mailing list Imdbpy-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-help