summaryrefslogtreecommitdiff
path: root/audio/fingerprint.py
blob: afcf53720306977a86fa145352e2e777d1fdaa06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import acoustid

# if two fingerprints are the same, the test pass, otherwise not.
fingerprint_original = acoustid.fingerprint_file("audio/resources/song.mp3")[1]
fingerprint_copy = acoustid.fingerprint_file("song2.mp3")[1]
print(fingerprint_original)
print(fingerprint_copy)

if fingerprint_original == fingerprint_copy:
    print("audio-test: pass")
else:
    print("audio-test: fail")