Open patatetom opened 6 years ago
I guess this is a Python 3 issue and if you pass the fingerprint to decode_fingerprint
as bytes
instead of str
, it will work.
But do you know that you can get the decoded fingerprint from fpcalc
? Just add the -raw
option and then you don't need to use the chromaprint library at all.
yes, it works better with this :
a = b'AQAAH5ukTWESCRcDJqFToetxRQlKCe7hX8JfpNORrEftTPAfUJRmVJJT9EiYI2SFuwq-HVvMB98adBpzeDzSPMoFzXbwZNagJ8R95CPSaZwAiAAARjkgETAUKQEQU4AoRwAB'
thanks and sorry for the inconvenience !
Thanks, @lalinsky!
I'm going to reopen this issue as a reminder that we should add an earlier type check to make it clear what's gone wrong when this happens.
hello,
I'm trying to play with pyacoustid but I'm encountering a mistake I can't get past.
I have the same audio recording in mp3 and ogg format on which I run the program fpcalc with the -plain option :
in python3, I'm trying this piece of code inspired by https://gist.github.com/lalinsky/1132166 :
a
does not appear to be base64 encoded :what's the mistake I'm making ?
regards, lacsaP.