示例#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))