New api requires client and dict as parameters for Release initialization

This commit is contained in:
Andrii Kohut 2014-08-25 20:22:47 +03:00
parent 659a0862f6
commit 4279ac0b67

View file

@ -76,7 +76,7 @@ class DiscogsPlugin(BeetsPlugin):
album_id)
if not match:
return None
result = Release(match.group(2))
result = Release(self.discogs_client, {'id': int(match.group(2))})
# Try to obtain title to verify that we indeed have a valid Release
try:
getattr(result, 'title')