_V
This commit is contained in:
parent
4b1fd064f2
commit
6509cfa3e2
1 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ class Imdb(SiteParser):
|
||||||
>>> Imdb('0133093')['title'] == text_type(u'The Matrix')
|
>>> Imdb('0133093')['title'] == text_type(u'The Matrix')
|
||||||
True
|
True
|
||||||
'''
|
'''
|
||||||
regex = {
|
regex = {
|
||||||
'alternativeTitles': {
|
'alternativeTitles': {
|
||||||
'page': 'releaseinfo',
|
'page': 'releaseinfo',
|
||||||
're': [
|
're': [
|
||||||
|
@ -814,8 +814,8 @@ def get_movie_poster(imdbId):
|
||||||
info = ImdbCombined(imdbId)
|
info = ImdbCombined(imdbId)
|
||||||
if 'posterId' in info:
|
if 'posterId' in info:
|
||||||
poster = info['posterId']
|
poster = info['posterId']
|
||||||
if '@' in poster:
|
if '@._V' in poster:
|
||||||
poster = poster.split('@')[0] + '@.jpg'
|
poster = poster.split('@._V')[0] + '@.jpg'
|
||||||
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