strip 1: from amg id

This commit is contained in:
j 2009-07-14 13:24:33 +02:00
parent 4b567eef55
commit 8f2a2ee5bd
1 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,9 @@ def getMovieData(wikipediaUrl):
filmbox['imdb_id'] = findRe(data, 'imdb episode\|.*?(\d*?)\|')
if 'Amg movie' in data:
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:
filmbox['rottentomatoes_id'] = findRe(data, 'rotten-tomatoes\|id\=(.*?)\|')
if not filmbox['rottentomatoes_id']: