This commit is contained in:
j 2010-07-19 12:05:58 +02:00
parent d82353a186
commit 0d2bd1b962

View file

@ -32,7 +32,7 @@ def getData(id):
try:
html = readUrlUnicode(data["url"])
except:
html = ox.cache.getUrl(data["url"])
html = ox.cache.readUrl(data["url"])
data["number"] = findRe(html, "<p class=\"spinenumber\">(.*?)</p>")
data["title"] = findRe(html, "<meta property=['\"]og:title['\"] content=['\"](.*?)['\"]")
data["director"] = findRe(html, "<h2 class=\"director\">(.*?)</h2>")