def get_genres(anilist):
    """
    Get the genres for the search.
    :param anilist: The anilist search result.
    :return: the genres for the search.
    """
    lst = anilist.get('genres', [])
    if not lst:
        return
    return [s for s in lst if s]