_
This commit is contained in:
parent
23ea669b7d
commit
f0a7aba8b0
1 changed files with 2 additions and 2 deletions
|
@ -530,8 +530,8 @@ def getMoviePoster(imdbId):
|
||||||
'http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1._SX594_SY755_.jpg'
|
'http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1._SX594_SY755_.jpg'
|
||||||
'''
|
'''
|
||||||
info = ImdbCombined(imdbId)
|
info = ImdbCombined(imdbId)
|
||||||
if 'poster_id' in info:
|
if 'posterId' in info:
|
||||||
url = "http://www.imdb.com/rg/action-box-title/primary-photo/media/rm%s/tt%s" % (info['poster_id'], imdbId)
|
url = "http://www.imdb.com/rg/action-box-title/primary-photo/media/rm%s/tt%s" % (info['posterId'], imdbId)
|
||||||
data = readUrl(url)
|
data = readUrl(url)
|
||||||
poster = findRe(data, 'img id="primary-img".*?src="(.*?)"')
|
poster = findRe(data, 'img id="primary-img".*?src="(.*?)"')
|
||||||
return poster
|
return poster
|
||||||
|
|
Loading…
Reference in a new issue