summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-05-03 14:45:27 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-05-03 14:45:27 +0200
commit8b5ad903dbce73faecd9682b3d1d14f876627853 (patch)
treee45d91af347989de78a96138ed450a030e450116 /modules
parentb3b77c9341bf6433ba301f39841757d31055ffdb (diff)
anidb: Fixed display of epcount and made the output code more readable.
Diffstat (limited to 'modules')
-rw-r--r--modules/anidb.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/modules/anidb.py b/modules/anidb.py
index 0a8d1c3..7a5a761 100644
--- a/modules/anidb.py
+++ b/modules/anidb.py
@@ -68,7 +68,21 @@ 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%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)
+ 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 int(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 ')