only return pages where imdb id is actually found
This commit is contained in:
parent
e4005f5810
commit
f1718e4af1
1 changed files with 3 additions and 1 deletions
|
@ -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 ""
|
||||
|
||||
|
|
Loading…
Reference in a new issue