On further investigation, it looks like those 2 pages are identical but the
title and season/ep# are just and imdbpy is ignoring them because it
can't find a title. (parsers/http/movieParser around line 1700 seems to be
doing that, though I can't be sure, you know the code better than I :P )
On Sun, Apr 19, 2009 at 3:13 PM, Andre LeBlanc <andreplebl...@gmail.com>wrote:
> That certainly is strange, I am actually in canada, but it would make sense
> that they serve us the US listings since we mostly get US television
> stations.
>
> the exact info that I want is here on the Episode's airing page.
> http://akas.imdb.com/title/tt1397945/tvschedule
> is this not where imdbpy pulls its listings from?
> here is the page for the previous episode (which has already aired)
> http://akas.imdb.com/title/tt1397944/tvschedule
> the only difference is that the newer episode doesn't list the title or
> season/episode numbers. (because it hasn't aired yet?)
>
>
>
>
> On Sun, Apr 19, 2009 at 3:00 PM, Davide Alberani <
> davide.alber...@gmail.com> wrote:
>
>> On Apr 19, Andre LeBlanc <andreplebl...@gmail.com> wrote:
>>
>> > 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.
>>
>> Hmmm... no: no sign of it in my page. :-)
>> You can see what I got here:
>> http://imdbpy.sourceforge.net/tt0121955_episodes.html
>>
>> Are you from the United States? I suppose IMDb customize the
>> pages based on the country of the viewer.
>>
>> By the way, remember that IMDbPY accesses the IMDb server using its own
>> "user" (it sends its own cookies) and uses the 'akas' web server; i.e.:
>> http://akas.imdb.com/title/tt0121955/tvschedule
>>
>> > but when I do this:
>> >
>> > i.update(ep, 'airing') ep['airing']
>> > I get a KeyError, there is no 'airing' info for that episode.
>>
>> I see... this is due to the fact that, for episodes, the table
>> containing the 'tv schedule' is different. :-/
>> You can look at:
>> http://akas.imdb.com/title/tt0121955/tvschedule
>> http://akas.imdb.com/title/tt1397945/tvschedule
>>
>> respectively for the series and the episode.
>>
>> So you are right; using the previous example, this won't work:
>> import imdb
>> i = imdb.IMDb('http') # or 'mobile'
>> m = i.get_movie('0121955')
>> i.update(m, 'episodes')
>> episode = m['episodes'][13][7]
>> i.update(episode, 'airing')
>> print episode['airing']
>>
>>
>> I'll see if it's possible to support both formats, but it could
>> take some time.
>> In the meantime, maybe you can parse the list of aired episodes
>> (taking it from the series) and look specifically at the episode
>> you're interested in.
>>
>>
>> Thanks for the bug report, I'll add your name to the credits. :-)
>>
>> --
>> 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