generally, name methods getPosterUrl(), not getPoster()

This commit is contained in:
Rolux 2008-07-25 14:20:56 +02:00
parent d33455aefb
commit 73aeef5106

View file

@ -60,12 +60,16 @@ def getImageUrl(name):
url = findRe(data, '="(http://upload.wikimedia.org/.*?)"') url = findRe(data, '="(http://upload.wikimedia.org/.*?)"')
return url return url
def getMoviePoster(wikipediaUrl): def getPosterUrl(wikipediaUrl):
data = getMovieData(wikipediaUrl) data = getMovieData(wikipediaUrl)
if 'image' in data: if 'image' in data:
return getImageUrl(data['image']) return getImageUrl(data['image'])
return '' return ''
def getMoviePoster(wikipediaUrl):
# deprecated, use getPosterUrl()
return getPosterUrl(wikipediaUrl)
def getAllmovieId(wikipediaUrl): def getAllmovieId(wikipediaUrl):
data = getMovieData(wikipediaUrl) data = getMovieData(wikipediaUrl)
return data.get('amg_id', '') return data.get('amg_id', '')