generally, name methods getPosterUrl(), not getPoster()
This commit is contained in:
parent
d33455aefb
commit
73aeef5106
1 changed files with 5 additions and 1 deletions
|
@ -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', '')
|
||||||
|
|
Loading…
Reference in a new issue