add missing b' in discogs query regex

This commit is contained in:
Johnny Robeson 2016-06-10 02:22:11 -04:00
parent 78139e60e8
commit 5485bdb706

View file

@ -200,7 +200,7 @@ class DiscogsPlugin(BeetsPlugin):
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.
query = re.sub(r'(?i)\b(CD|disc)\s*\d+', '', query)
query = re.sub(br'(?i)\b(CD|disc)\s*\d+', '', query)
try:
releases = self.discogs_client.search(query,
type='release').page(1)