From 0dceb1518718a1f4c694c9c8b00379a418fa5cb2 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 25 Feb 2011 19:22:36 +0100 Subject: anidb: Handle "incomplete" year value. --- modules/anidb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/anidb.py b/modules/anidb.py index d9f75d6..bae2191 100644 --- a/modules/anidb.py +++ b/modules/anidb.py @@ -69,7 +69,7 @@ class Module: return 'Failed to get data from anidb' year, type, catlist, catweight, romaji, english, epcount, normalep, rating, ratingcount, temprating, tempcount, specialep = data if '-' in year: - syear, eyear = [int(x) for x in year.split('-')] + syear, eyear = [int(x) if x.isdigit() else '' for x in year.split('-')] if syear == eyear: year = syear catlist = catlist.split(',') -- cgit v1.2.3