minor cleanup
This commit is contained in:
parent
a2b00c795f
commit
218ff56ed7
1 changed files with 1 additions and 1 deletions
|
@ -7,8 +7,8 @@ from oxlib import stripTags, findRe
|
||||||
from oxlib.cache import getUrlUnicode
|
from oxlib.cache import getUrlUnicode
|
||||||
|
|
||||||
def getMovieData(allmovieId):
|
def getMovieData(allmovieId):
|
||||||
html = getUrlUnicode("http://www.allmovie.com/cg/avg.dll?p=avg&sql=1:%s~T0" % allmovieId)
|
|
||||||
data = {}
|
data = {}
|
||||||
|
html = getUrlUnicode("http://www.allmovie.com/cg/avg.dll?p=avg&sql=1:%s~T0" % allmovieId)
|
||||||
data['poster'] = findRe(html, '<img src="(http://image.*?)"')
|
data['poster'] = findRe(html, '<img src="(http://image.*?)"')
|
||||||
data['year'] = findRe(html, '<a href="/cg/avg.dll\?p=avg&sql=24:\d{4}">(\d{4})</a>')
|
data['year'] = findRe(html, '<a href="/cg/avg.dll\?p=avg&sql=24:\d{4}">(\d{4})</a>')
|
||||||
data['runtime'] = findRe(html, 'sql=24:\d{4}">.*?">(.*?)min.</td></tr></table>').strip()
|
data['runtime'] = findRe(html, 'sql=24:\d{4}">.*?">(.*?)min.</td></tr></table>').strip()
|
||||||
|
|
Loading…
Reference in a new issue