diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-02-25 19:22:36 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-02-25 19:22:36 +0100 |
commit | 0dceb1518718a1f4c694c9c8b00379a418fa5cb2 (patch) | |
tree | cc512c642cd7551477d0023c1b45fbf099ec77c3 /modules | |
parent | 04b22f6e94b579db076317777a63a72cf01e9499 (diff) |
anidb: Handle "incomplete" year value.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/anidb.py | 2 |
1 files changed, 1 insertions, 1 deletions
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(',') |