Skip to content

Commit

Permalink
decode_fingerprint needs fingerprint as param
Browse files Browse the repository at this point in the history
  • Loading branch information
albertopasqualetto committed Aug 28, 2023
1 parent 5fdce4e commit bf66d7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acoustid.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ def compare_fingerprints(a, b) -> float:
raise ModuleNotFoundError("function needs chromaprint")

# decompress fingerprints
a = [int(x) for x in chromaprint.decode_fingerprint(a)[0]]
b = [int(x) for x in chromaprint.decode_fingerprint(b)[0]]
a = [int(x) for x in chromaprint.decode_fingerprint(a[1])[0]]
b = [int(x) for x in chromaprint.decode_fingerprint(b[1])[0]]
return _match_fingerprints(a, b)


Expand Down

0 comments on commit bf66d7d

Please sign in to comment.