speedup imdb parser
This commit is contained in:
parent
03dbc4d045
commit
f38c7c4ea2
2 changed files with 7 additions and 2 deletions
|
|
@ -264,7 +264,9 @@ class Imdb(SiteParser):
|
|||
}
|
||||
|
||||
def read_url(self, url, timeout):
|
||||
return read_url(url, timeout=timeout, unicode=True)
|
||||
if not url in self._cache:
|
||||
self._cache[url] = read_url(url, timeout=timeout, unicode=True)
|
||||
return self._cache[url]
|
||||
|
||||
def __init__(self, id, timeout=-1):
|
||||
#use akas.imdb.com to always get original title:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue