def METHOD_NAME(self, video, languages):
    season = episode = None
    title = video.title
    year = video.year
    filename = video.name
    imdb_id = video.imdb_id
    if isinstance(video, Episode):
        title = video.series
        season = video.season
        episode = video.episode
        imdb_id = video.series_imdb_id
    return [s for s in self.query(title, season, episode, year, filename, imdb_id) if s.language in languages]