Made imdb handle people properly.

This commit is contained in:
Jeremy Fincher 2003-08-23 08:52:42 +00:00
parent f35da83b1b
commit 320f1d26b7

View File

@ -66,6 +66,11 @@ class IMDB(callbacks.Privmsg):
irc.reply(msg, 'No movies matched that title.') irc.reply(msg, 'No movies matched that title.')
elif len(movies) == 1: elif len(movies) == 1:
movie = movies[0] movie = movies[0]
if 'Name?' in movie.url:
s = '"%s" is apparently a person. ' \
'More information is available at <%s>' % \
(movie.title(), movie.url)
else:
title = utils.unCommaThe(movie.title()) title = utils.unCommaThe(movie.title())
genres = utils.commaAndify(map(str.lower, movie.genres())) genres = utils.commaAndify(map(str.lower, movie.genres()))
s = '"%s" (%s) belongs to the %s genres. ' \ s = '"%s" (%s) belongs to the %s genres. ' \