mirror of
https://github.com/beetbox/beets.git
synced 2026-01-03 14:32:55 +01:00
Merge pull request #3097 from Holzhaus/fix-acoustid-fingerprint-type
Fix acoustid_fingerprint type confusion
This commit is contained in:
commit
529ef2d82d
1 changed files with 2 additions and 1 deletions
|
|
@ -93,6 +93,7 @@ def acoustid_match(log, path):
|
|||
log.error(u'fingerprinting of {0} failed: {1}',
|
||||
util.displayable_path(repr(path)), exc)
|
||||
return None
|
||||
fp = fp.decode()
|
||||
_fingerprints[path] = fp
|
||||
try:
|
||||
res = acoustid.lookup(API_KEY, fp, duration,
|
||||
|
|
@ -334,7 +335,7 @@ def fingerprint_item(log, item, write=False):
|
|||
util.displayable_path(item.path))
|
||||
try:
|
||||
_, fp = acoustid.fingerprint_file(util.syspath(item.path))
|
||||
item.acoustid_fingerprint = fp
|
||||
item.acoustid_fingerprint = fp.decode()
|
||||
if write:
|
||||
log.info(u'{0}: writing fingerprint',
|
||||
util.displayable_path(item.path))
|
||||
|
|
|
|||
Loading…
Reference in a new issue