mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Made imdb handle people properly.
This commit is contained in:
parent
f35da83b1b
commit
320f1d26b7
@ -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. ' \
|
||||||
|
Loading…
Reference in New Issue
Block a user