Skip to content

Commit

Permalink
empty season
Browse files Browse the repository at this point in the history
  • Loading branch information
z4r committed Aug 6, 2013
1 parent 5d6d041 commit 2261467
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fanart/__init__.py
@@ -1,5 +1,5 @@
__author__ = 'Andrea De Marco <24erre@gmail.com>'
__version__ = '1.2.1'
__version__ = '1.2.2'
__classifiers__ = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand Down
2 changes: 1 addition & 1 deletion fanart/tests/response/tv_79349.json
Expand Up @@ -238,7 +238,7 @@
"url": "http://assets.fanart.tv/fanart/tv/79349/showbackground/dexter-506bddc9f04cb.jpg",
"lang": "en",
"likes": "1",
"season": "all"
"season": ""
},
{
"id": "21530",
Expand Down
2 changes: 1 addition & 1 deletion fanart/tv.py
Expand Up @@ -24,7 +24,7 @@ class SeasonedTvItem(TvItem):
@Immutable.mutablemethod
def __init__(self, id, url, likes, lang, season):
super(SeasonedTvItem, self).__init__(id, url, likes, lang)
self.season = 0 if season == 'all' else int(season)
self.season = 0 if season == 'all' else int(season or 0)


class CharacterItem(TvItem):
Expand Down

0 comments on commit 2261467

Please sign in to comment.