def get_type(mal, kitsu_attr):
    """
    Get the type of the weeb media.
    :param mal: The MAL search result.
    :param kitsu_attr: The attributes of kitsu search result.
    :return: the type of the weeb media
    """
    mal_type = mal.get('type')
    if mal_type:
        return mal_type

    show_type = kitsu_attr.get('showType')
    subtype = kitsu_attr.get('subtype')
    if show_type or subtype:
        return show_type or subtype