return '' instead of None in imdb.getMovieId
This commit is contained in:
parent
2d13e2ba31
commit
543df78415
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ def getMovieId(title, director='', year=''):
|
||||||
for (name, url, desc) in google.find(query, 3):
|
for (name, url, desc) in google.find(query, 3):
|
||||||
if url.startswith('http://www.imdb.com/title/tt'):
|
if url.startswith('http://www.imdb.com/title/tt'):
|
||||||
return url[28:35]
|
return url[28:35]
|
||||||
|
return ''
|
||||||
|
|
||||||
def getMovieData(imdbId):
|
def getMovieData(imdbId):
|
||||||
return IMDb(imdbId).parse()
|
return IMDb(imdbId).parse()
|
||||||
|
|
Loading…
Reference in a new issue