From c093ba45378a1981a8b40a50531f1fb83f9c22a7 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 29 Dec 2010 16:23:48 +0100 Subject: anidb: Convert result to str. --- modules/anidb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/anidb.py b/modules/anidb.py index ddd0289..83e48ea 100644 --- a/modules/anidb.py +++ b/modules/anidb.py @@ -75,7 +75,7 @@ class Module: specialep = int(specialep) catl = ', '.join(catlist[:catn] + (['+%d more' % (len(catlist)-catn)] if len(catlist) > catn else [])) - return '%s%s is: %s, year %s, %d%s%s eps%s, cats: %s | rating: %.2f (%s), temp: %.2f (%s) | http://anidb.net/a%d' % ( + s = '%s%s is: %s, year %s, %d%s%s eps%s, cats: %s | rating: %.2f (%s), temp: %.2f (%s) | http://anidb.net/a%d' % ( romaji, ' aka. %s' % english if english else '', type, @@ -90,6 +90,7 @@ class Module: temprating, tempcount, aid) + return s.encode('utf8') def get_anime(self, msg): short = msg.startswith('-s') -- cgit v1.2.3