Skip to content

Commit

Permalink
check for releases in acoustid result (fixes beetbox#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Nov 20, 2011
1 parent 25b67d7 commit 99bb4df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion beetsplug/chroma.py
Expand Up @@ -66,7 +66,10 @@ def acoustid_match(path, metadata=None):
return None
recording = result['recordings'][0]
recording_id = recording['id']
release_ids = [rel['id'] for rel in recording['releases']]
if 'releases' in recording:
release_ids = [rel['id'] for rel in recording['releases']]
else:
release_ids = []

return recording_id, release_ids

Expand Down

0 comments on commit 99bb4df

Please sign in to comment.