mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 18:43:38 +01:00
Comment about workaround in #1073
This commit is contained in:
parent
208aedfa87
commit
a9981c1dc7
1 changed files with 3 additions and 0 deletions
|
|
@ -149,6 +149,9 @@ class DiscogsPlugin(BeetsPlugin):
|
|||
# cause a query to return no results, even if they match the artist or
|
||||
# album title. Use `re.UNICODE` flag to avoid stripping non-english
|
||||
# word characters.
|
||||
# TEMPORARY: Encode as ASCII to work around a bug:
|
||||
# https://github.com/sampsyo/beets/issues/1051
|
||||
# When the library is fixed, we should encode as UTF-8.
|
||||
query = re.sub(r'(?u)\W+', ' ', query).encode('ascii', "replace")
|
||||
# Strip medium information from query, Things like "CD1" and "disk 1"
|
||||
# can also negate an otherwise positive result.
|
||||
|
|
|
|||
Loading…
Reference in a new issue