diff --git a/ox/web/wikipedia.py b/ox/web/wikipedia.py index 9bf8c62..e7a5530 100644 --- a/ox/web/wikipedia.py +++ b/ox/web/wikipedia.py @@ -69,7 +69,8 @@ def getMovieData(wikipediaUrl): if '
' in value: value = value.split('
') 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: