def METHOD_NAME(self, video, languages):
    # lookup show_id
    titles = [video.series] + video.alternative_series
    show_id = None
    for title in titles:
        show_id = self.search_show_id(title, video.year)
        if show_id is not None:
            break
    # query for subtitles with the show_id
    if show_id is not None:
        subtitles = [s for s in self.query(show_id, title, video.season, video.episode, video.year)
                     if s.language in languages and s.episode == video.episode]
        if subtitles:
            return subtitles
    else:
        logger.error('No show id found for %r (%r)', video.series, {'year': video.year})
    return []