summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-12-29 16:23:48 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-12-29 16:23:48 +0100
commitc093ba45378a1981a8b40a50531f1fb83f9c22a7 (patch)
tree34984bcae53badee14ed98c6a25a0731b3843308
parentaa06588ee2bfffd38107a80181b14ca1c4a17694 (diff)
anidb: Convert result to str.
-rw-r--r--modules/anidb.py3
1 files changed, 2 insertions, 1 deletions
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')