return '' instead of None in imdb.getMovieId

This commit is contained in:
j 2008-05-10 10:07:47 +02:00
parent 2d13e2ba31
commit 543df78415
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ def getMovieId(title, director='', year=''):
for (name, url, desc) in google.find(query, 3):
if url.startswith('http://www.imdb.com/title/tt'):
return url[28:35]
return ''
def getMovieData(imdbId):
return IMDb(imdbId).parse()