only return movie data if page is a movie page

This commit is contained in:
j 2012-07-07 18:51:19 +02:00
parent b12e6f1b5c
commit 9c7b985295

View file

@ -69,7 +69,8 @@ def getMovieData(wikipediaUrl):
if '<br>' in value:
value = value.split('<br>')
filmbox[key.strip()] = value
if not filmbox:
return filmbox
if 'amg_id' in filmbox and not filmbox['amg_id'].isdigit():
del filmbox['amg_id']
if 'Allmovie movie' in data: