def METHOD_NAME(self, video, languages):
    season = episode = None
    if isinstance(video, Episode):
        titles = [video.series] + video.alternative_series
        season = video.season
        episode = video.episode
    else:
        titles = [video.title] + video.alternative_titles
    for title in titles:
        subtitles = [s for l in languages for s in
                     self.query(l, title, season=season, episode=episode, year=video.year)]
        if subtitles:
            return subtitles
    return []