Possible post-processor fix for albums with special characters under Windows 7

This commit is contained in:
Remy
2011-07-29 02:31:09 -07:00
parent 38a9c02988
commit 511b59bba8
188 changed files with 48002 additions and 3 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ import logging
from collections import defaultdict
import re
from lib.munkres import Munkres
#from unidecode import unidecode
from lib.unidecode import unidecode
from lib.beets.autotag import mb
from lib.beets import library, mediafile, plugins
@@ -119,8 +119,8 @@ def _string_dist_basic(str1, str2):
transliteration/lowering to ASCII characters. Normalized by string
length.
"""
# str1 = unidecode(str1)
# str2 = unidecode(str2)
str1 = unidecode(str1)
str2 = unidecode(str2)
str1 = re.sub(r'[^a-z0-9]', '', str1.lower())
str2 = re.sub(r'[^a-z0-9]', '', str2.lower())
if not str1 and not str2: