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,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):
|
||||
|
|
Loading…
Reference in a new issue