fix imdb poster
This commit is contained in:
parent
5488920d07
commit
5e2b3cf448
1 changed files with 2 additions and 2 deletions
|
@ -774,9 +774,9 @@ def get_movie_poster(imdbId):
|
||||||
'''
|
'''
|
||||||
info = ImdbCombined(imdbId)
|
info = ImdbCombined(imdbId)
|
||||||
if 'posterId' in info:
|
if 'posterId' in info:
|
||||||
url = "http://www.imdb.com/rg/action-box-title/primary-photo/media/rm%s/tt%s" % (info['posterId'], imdbId)
|
url = "http://www.imdb.com/media/rm%s/tt%s" % (info['posterId'], imdbId)
|
||||||
data = read_url(url)
|
data = read_url(url)
|
||||||
poster = find_re(data, 'img id="primary-img".*?src="(.*?)"')
|
poster = find_re(data, 'img.*?id="primary-img".*?src="(.*?)"')
|
||||||
return poster
|
return poster
|
||||||
elif 'series' in info:
|
elif 'series' in info:
|
||||||
return get_movie_poster(info['series'])
|
return get_movie_poster(info['series'])
|
||||||
|
|
Loading…
Reference in a new issue