something went wrong
This commit is contained in:
parent
2e2a391ae9
commit
f3c78be720
1 changed files with 5 additions and 1 deletions
|
@ -236,8 +236,12 @@ class Imdb(SiteParser):
|
||||||
super(Imdb, self).__init__(timeout)
|
super(Imdb, self).__init__(timeout)
|
||||||
|
|
||||||
url = self.baseUrl + 'combined'
|
url = self.baseUrl + 'combined'
|
||||||
if '<title>IMDb: Page not found</title>' in self.readUrlUnicode(url, -1):
|
if '<title>IMDb: Page not found</title>' in self.readUrlUnicode(url, timeout=-1):
|
||||||
return
|
return
|
||||||
|
if "<p>We're sorry, something went wrong.</p>" in self.readUrlUnicode(url, timeout=-1):
|
||||||
|
time.sleep(1)
|
||||||
|
self.readUrlUnicode(url, timeout=0)
|
||||||
|
super(Imdb, self).__init__(timeout)
|
||||||
|
|
||||||
def is_international_title(t):
|
def is_international_title(t):
|
||||||
if 'working title' in t[1].lower(): return False
|
if 'working title' in t[1].lower(): return False
|
||||||
|
|
Loading…
Reference in a new issue