コード例 #1
0
ファイル: search.py プロジェクト: achuprin/Flexget
def clean_title(title):
    """Removes common codec, sound keywords, and special characters info from titles to facilitate
    loose title comparison.
    """
    result = TitleParser.remove_words(title, TitleParser.sounds + TitleParser.codecs)
    result = clean_symbols(result)
    return result
コード例 #2
0
ファイル: search.py プロジェクト: offbyone/Flexget
def clean_title(title):
    """Removes common codec, sound keywords, and special characters info from titles to facilitate
    loose title comparison.
    """
    result = TitleParser.remove_words(title, TitleParser.sounds + TitleParser.codecs)
    result = clean_symbols(result)
    return result
コード例 #3
0
def clean_title(title):
    """Removes common codec, sound keywords, and special characters info from titles to facilitate
    loose title comparison.
    """
    result = title.lower()
    result = TitleParser.remove_words(result, TitleParser.sounds + TitleParser.codecs)
    result = re.sub('[ \(\)\-_\[\]\.]+', ' ', result)
    return result