Subject: | "new" fails for certain TV episodes |
Recently, IMDB started to crash for certain (existing and
innocent-looking) TV episodes. For example:
$imdb = new IMDB::Film(crit => 1795963)
will fail trying to retrieve the non-existant page
http://www.imdb.com/title/tt1795963/episodes
I did not investigate, how exactly this happens (1795963 is just a
single episode, the episode list for the whole serial has a different
number and the page contains the correct URL for this:
http://www.imdb.com/title/tt0460649/episodes). The previous and next
episode(1795962/1795964) look exactly the same but do not cause any problem.
IMHO, it generally would be better in cases when retrieving a single
field like "episodes" fails for any reason to just issue a warning
instead of aborting the whole thing. (I personally "fixed" the issue by
wrapping the call in episodes() to "_get_page_from_internet" with eval
and returning in case of failure)