strip 1: from amg id
This commit is contained in:
parent
4b567eef55
commit
8f2a2ee5bd
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,9 @@ def getMovieData(wikipediaUrl):
|
||||||
filmbox['imdb_id'] = findRe(data, 'imdb episode\|.*?(\d*?)\|')
|
filmbox['imdb_id'] = findRe(data, 'imdb episode\|.*?(\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 filmbox['amg_id'].startswith('1:'):
|
||||||
|
filmbox['amg_id'] = filmbox['amg_id'][2:]
|
||||||
|
|
||||||
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']:
|
if not filmbox['rottentomatoes_id']:
|
||||||
|
|
Loading…
Reference in a new issue