From 5485bdb706327c8e9ba4e7c5b6e4580291610420 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Fri, 10 Jun 2016 02:22:11 -0400 Subject: [PATCH] add missing b' in discogs query regex --- beetsplug/discogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index 62a78a5ff..996155fd9 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -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)