mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Added rating to imdb output.
This commit is contained in:
parent
5d554a5c3b
commit
f35da83b1b
@ -69,8 +69,9 @@ class IMDB(callbacks.Privmsg):
|
|||||||
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. ' \
|
||||||
'More information at <%s>' % \
|
'It\'s been rated %s out of 10. ' \
|
||||||
(title, movie.year(), genres, movie.url)
|
'More information is available at <%s>' % \
|
||||||
|
(title, movie.year(), genres, movie.rating(), movie.url)
|
||||||
irc.reply(msg, s)
|
irc.reply(msg, s)
|
||||||
elif len(movies) > 20:
|
elif len(movies) > 20:
|
||||||
s = 'More than 20 movies matched, please narrow your search.'
|
s = 'More than 20 movies matched, please narrow your search.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user