diff --git a/couchpotato/core/media/show/providers/info/thetvdb.py b/couchpotato/core/media/show/providers/info/thetvdb.py index d221ce5..706fff9 100644 --- a/couchpotato/core/media/show/providers/info/thetvdb.py +++ b/couchpotato/core/media/show/providers/info/thetvdb.py @@ -259,15 +259,16 @@ class TheTVDb(ShowProvider): 'released': get('firstaired'), 'runtime': get('runtime'), 'contentrating': get('contentrating'), - 'rating': { - 'thetvdb': [tryFloat(get('rating')), tryInt(get('ratingcount'))], - }, + 'rating': {}, 'actors': splitString(get('actors'), '|'), 'lastupdated': get('lastupdated'), 'status': get('status'), 'language': get('language'), } + if tryFloat(get('rating')): + show_data['rating']['thetvdb'] = [tryFloat(get('rating')), tryInt(get('ratingcount'))], + show_data = dict((k, v) for k, v in show_data.iteritems() if v) # Parse season and episode data