def refresh(self, movie):
        """ Try to refresh metadata of the movie through the datasource.
        """
        if '_tmdbtv_id' in movie:
            refreshed = {'_Datasource': self.name}
            tvseries_id = movie['_tmdbtv_id']
            series = self._tmdb_series(tvseries_id)
            alternatives = self._tmdb_alt_titles(tvseries_id)
            refreshed.update({'title': series['original_name'],
                              'year': datetime.strptime(series['first_air_date'], '%Y-%m-%d').year,
                              'genres': [x['name'] for x in series['genres']],
                              'networks': [x['name'] for x in series['networks']],
                              'countries': series['origin_country'],
                              'tmdb_votes': int(round(series.get('vote_average', 0) * 0.5))})
            for alt in alternatives['results']:
                refreshed['title_%s' % alt['iso_3166_1'].lower()] = alt['title']
            if 'season' in movie:
                season_num = movie['season']
                season = self._tmdb_season(tvseries_id, season_num)
                refreshed.update({'season_title': season['name']})
                if 'episode' in movie:
                    episode_num = movie['episode']
                    episode = self._tmdb_episode(tvseries_id, season_num, episode_num)
                    credits = self._tmdb_credits(tvseries_id, season_num, episode_num)
                    refreshed.update({'episode_title': episode['name'],
                                      'directors': [x['name'] for x in credits['crew'] if x['department'] == 'Directing' and x['job'] == 'Director'],
                                      'writers': [x['name'] for x in credits['crew'] if x['department'] == 'Writing'],
                                      'cast': [x['name'] for x in credits['cast']],
                                      'guests': [x['name'] for x in credits['guest_stars']]})
            return refreshed
Try to refresh metadata of the movie through the datasource.