imdb can include things like id=
This commit is contained in:
parent
a9cec7dd33
commit
efa43f8437
1 changed files with 4 additions and 2 deletions
|
@ -55,11 +55,13 @@ def getMovieData(wikipediaUrl):
|
||||||
value = d[1].strip()
|
value = d[1].strip()
|
||||||
filmbox[key] = value
|
filmbox[key] = value
|
||||||
if 'imdb title' in data:
|
if 'imdb title' in data:
|
||||||
filmbox['imdb_id'] = findRe(data, 'imdb title\|(\d*?)\|')
|
filmbox['imdb_id'] = findRe(data, 'imdb title\|.*?(\d*?)\|')
|
||||||
if 'Amg movie' in data:
|
if 'Amg movie' in data:
|
||||||
filmbox['amg_id'] = findRe(data, 'Amg movie\|(\d*?)\|')
|
filmbox['amg_id'] = findRe(data, 'Amg movie\|.*?(\d*?)\|')
|
||||||
if 'rotten-tomatoes' in data:
|
if 'rotten-tomatoes' in data:
|
||||||
filmbox['rottentomatoes_id'] = findRe(data, 'rotten-tomatoes\|id\=(.*?)\|')
|
filmbox['rottentomatoes_id'] = findRe(data, 'rotten-tomatoes\|id\=(.*?)\|')
|
||||||
|
if not filmbox['rottentomatoes_id']:
|
||||||
|
filmbox['rottentomatoes_id'] = findRe(data, 'rotten-tomatoes\|(.*?)\|')
|
||||||
return filmbox
|
return filmbox
|
||||||
|
|
||||||
def getImageUrl(name):
|
def getImageUrl(name):
|
||||||
|
|
Loading…
Reference in a new issue