'Updates this record from the trakt media object `trakt_episode` returned by the trakt api.'

def update(self, trakt_season, session):

    if (self.id and (self.id != trakt_season[u'ids'][u'trakt'])):
        raise Exception(u'Tried    to    update    db    season    with    different    season    data')
    elif (not self.id):
        self.id = trakt_season[u'ids'][u'trakt']
    self.tmdb_id = trakt_season[u'ids'][u'tmdb']
    self.tvrage_id = trakt_season[u'ids'][u'tvrage']
    self.tvdb_id = trakt_season[u'ids'][u'tvdb']
    self.first_aired = None
    if trakt_season.get(u'first_aired'):
        self.first_aired = dateutil_parse(trakt_season[u'first_aired'], ignoretz=True)
    self.cached_at = datetime.now()
    for col in [u'title', u'number', u'episode_count', u'aired_episodes', u'ratings', u'votes', u'overview']:
        setattr(self, col, trakt_season.get(col))
