mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 19:42:42 +01:00
detect missing echonest fingerprints (fix #477)
This commit is contained in:
parent
16a6138f33
commit
6ab0abfa90
1 changed files with 4 additions and 0 deletions
|
|
@ -204,7 +204,11 @@ class EchonestMetadataPlugin(plugins.BeetsPlugin):
|
|||
log.debug(u'echonest: codegen failed: {0}'.format(e))
|
||||
return
|
||||
|
||||
if not res or 'code' not in res[0]:
|
||||
log.debug(u'echonest: no fingerprint returned')
|
||||
return
|
||||
code = res[0]['code']
|
||||
|
||||
log.debug(u'echonest: calculated fingerprint')
|
||||
item[FINGERPRINT_KEY] = code
|
||||
return code
|
||||
|
|
|
|||
Loading…
Reference in a new issue