Fix bug in discogs.album_for_id for ID-Strings that end in a bracket

This commit is contained in:
Johannes Baiter 2013-05-29 10:59:04 +02:00
parent 40a6e03ba6
commit 2d4ea4e49b

View file

@ -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')