update imdb parser, ticket #3068

This commit is contained in:
j 2018-01-14 18:24:29 +01:00
commit e480b8dcbf
2 changed files with 119 additions and 184 deletions

View file

@ -33,7 +33,7 @@ class SiteParser(dict):
return "%s%s" % (self.baseUrl, page)
def read_url(self, url, timeout):
if not url in self._cache:
if url not in self._cache:
self._cache[url] = read_url(url, timeout=timeout, unicode=True)
return self._cache[url]