From cd8d98256e7d8cdcdd1f69d4ed9856571274df10 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 13 Apr 2010 13:17:48 +0200 Subject: modules.anidb: Correctly deal with episode count. --- modules/anidb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/anidb.py b/modules/anidb.py index 9a4ba47..0a8d1c3 100644 --- a/modules/anidb.py +++ b/modules/anidb.py @@ -68,7 +68,7 @@ class Module: rating = float(rating) / 100 temprating = float(temprating) / 100 catl = ', '.join(catlist[:catn] + (['+%d more' % (len(catlist)-catn)] if len(catlist) > catn else [])) - return '%s%s is: %s, year %s, %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, year, normalep, '+%s' % specialep if int(specialep) > 0 else '', ' (ongoing)' if int(epcount) == 0 else '', catl or '(None)', rating, ratingcount, temprating, tempcount, aid) + return '%s%s is: %s, year %s, %s%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, year, normalep, '/%s' % epcount if epcount > 0 else '', '+%s' % specialep if int(specialep) > 0 else '', ' (ongoing)' if (int(epcount) == 0 or normalep < epcount) else '', catl or '(None)', rating, ratingcount, temprating, tempcount, aid) def get_anime(self, msg): short = msg.startswith('-s ') -- cgit v1.2.3