예제 #1
0
파일: tmdb_api.py 프로젝트: Machyne/pal
def compare_titles(reference, query):
    """ Compares strings after stripping, lowering, and removing punctuation.
    """
    return normalize_string(reference).startswith(normalize_string(query))
예제 #2
0
파일: tmdb_api.py 프로젝트: Machyne/pal
def compare_names(reference, query):
    """ Compares strings after stripping, lowering, and removing punctuation.
    """
    return normalize_string(reference).contains(normalize_string(query))