only return pages where imdb id is actually found

This commit is contained in:
j 2010-07-18 21:16:25 +02:00
parent e4005f5810
commit f1718e4af1

View file

@ -26,6 +26,8 @@ def getUrlByImdbId(imdbId):
result = find(query)
if result:
url = result[0][1]
data = getMovieData(url)
if 'imdb_id' in data:
return url
return ""