From 2d4ea4e49b2028aa467208d98d64fe983aa01bb0 Mon Sep 17 00:00:00 2001 From: Johannes Baiter Date: Wed, 29 May 2013 10:59:04 +0200 Subject: [PATCH] Fix bug in discogs.album_for_id for ID-Strings that end in a bracket --- beetsplug/discogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index f4ef6d79b..d52c5b1fd 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -72,7 +72,7 @@ class DiscogsPlugin(BeetsPlugin): match = re.search(r'(\d+)\]*$', album_id) if not match: return None - result = Release(match.group()) + result = Release(match.group(1)) # Try to obtain title to verify that we indeed have a valid Release try: getattr(result, 'title')