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,7 +26,9 @@ def getUrlByImdbId(imdbId):
result = find(query)
if result:
url = result[0][1]
return url
data = getMovieData(url)
if 'imdb_id' in data:
return url
return ""
def getUrlByImdb(imdbId):