def METHOD_NAME(self, identifier, **kwargs):
    """
    :param identifier: imdb_id or title (without year)
    """
    identifier = identifier.lstrip("tt")
    query = identifier
    if kwargs.get("season") and kwargs.get("episode"):
        query = f"{identifier} S{kwargs['season']:02}E{kwargs['episode']:02}"
    logger.debug("Searching ID for %s", query)
    r = self.session.get(f"{API_URL}/search", params={"q": query}, timeout=10)
    r.raise_for_status()
    try:
        results = r.json()
    except JSONDecodeError:
        return []
    if not results.get("results"):
        return []
    match_ids = [result["id"] for result in results["results"]]
    logger.debug("Found matching IDs: %s", match_ids)
    return match_ids