mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-14 21:14:00 +01:00
Possible post-processor fix for albums with special characters under Windows 7
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user