Thanks again Davide,
Thats actually not the data that I am looking for. I need the date AND TIME
that the episode is airing, not the original air date.
on the page that I linked to you can see that 13x07 is airing at 10PM on
wednesday. but when I do this:
i.update(ep, 'airing')
ep['airing']
I get a KeyError, there is no 'airing' info for that episode.
On Sun, Apr 19, 2009 at 2:29 PM, Davide Alberani
<davide.alber...@gmail.com>wrote:
> 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/ <http://erlug.linux.it/%7Eda/>
>
------------------------------------------------------------------------------
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