diff --git a/oxweb/allmovie.py b/oxweb/allmovie.py
index 5e5dce2..8be4e2a 100644
--- a/oxweb/allmovie.py
+++ b/oxweb/allmovie.py
@@ -10,7 +10,6 @@ def getMovieData(allmovieId):
html = getUrlUnicode("http://www.allmovie.com/cg/avg.dll?p=avg&sql=1:%s~T0" % allmovieId)
data = {}
data['poster'] = findRe(html, '
.*?
(.*?) | '))
data['year'] = findRe(html, '(\d{4})')
data['rating'] = findRe(html, '" alt="(\d+?) Stars"')
data['country'] = findRe(html, '(.*?)')
@@ -18,6 +17,11 @@ def getMovieData(allmovieId):
data['genre'] = parseList(html, 'Genre / Type')
data['keywords'] = parseList(html, 'Keywords')
data['themes'] = parseList(html, 'Themes')
+ data['boxoffice'] = parseEntry(html, 'Box office')[1:].replace(',', '')
+ data['produced'] = parseEntry(html, 'Produced by')
+ data['releasedate'] = parseEntry(html, 'Release')[0:10].replace(' ', '-')
+ data['released'] = parseEntry(html, 'Released by')
+ data['synopsis'] = stripTags(findRe(html, 'Plot Synopsis.*?(.*?) | '))
html = getUrlUnicode("http://www.allmovie.com/cg/avg.dll?p=avg&sql=1:%s~T1" % allmovieId)
data['review'] = stripTags(findRe(html, 'Review.*?(.*?) | '))
html = getUrlUnicode("http://www.allmovie.com/cg/avg.dll?p=avg&sql=1:%s~T2" % allmovieId)
@@ -44,6 +48,9 @@ def getMoviePoster(allmovieId):
return data['poster']
return ''
+def parseEntry(html, title):
+ return stripTags(findRe(html, '%s(.*?)' % title))
+
def parseList(html, title):
return map(lambda x: stripTags(x), findRe(html, '%s(.*?)' % title).split(''))