'Looks up movie on tvdb and creates a new database model for it.
These instances should only be added to a session via `session.merge`.'

def __init__(self, series_id, ep_id, language=None):

    self.series_id = series_id
    self.id = ep_id
    self.expired = False
    try:
        episode = TVDBRequest().get((u'episodes/%s' % self.id), language=language)
    except requests.RequestException as e:
        raise LookupError((u'Error    updating    data    from    tvdb:    %s' % e))
    self.id = episode[u'id']
    self.last_updated = episode[u'lastUpdated']
    self.season_number = episode[u'airedSeason']
    self.episode_number = episode[u'airedEpisodeNumber']
    self.absolute_number = episode[u'absoluteNumber']
    self.name = episode[u'episodeName']
    self.overview = episode[u'overview']
    self.director = episode[u'director']
    self._image = episode[u'filename']
    self.rating = episode[u'siteRating']
    self.first_aired = episode[u'firstAired']
