This commit is contained in:
j 2009-07-15 17:15:31 +02:00
parent c0d9627e69
commit 22b619e1a5

View file

@ -70,7 +70,7 @@ 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'] and filmbox['amg_id'].startswith('1:'):
if 'amg_id' in filmbox and filmbox['amg_id'].startswith('1:'):
filmbox['amg_id'] = filmbox['amg_id'][2:]
if 'rotten-tomatoes' in data: