From f3c78be7207eea071241c4037bce546a6ae2a062 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 20 Apr 2011 23:08:33 +0200 Subject: [PATCH] something went wrong --- ox/web/imdb.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index ff86995..5b2d473 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -236,8 +236,12 @@ class Imdb(SiteParser): super(Imdb, self).__init__(timeout) url = self.baseUrl + 'combined' - if '
We're sorry, something went wrong.
" in self.readUrlUnicode(url, timeout=-1): + time.sleep(1) + self.readUrlUnicode(url, timeout=0) + super(Imdb, self).__init__(timeout) def is_international_title(t): if 'working title' in t[1].lower(): return False