mirror of
https://github.com/correl/dejavu.git
synced 2024-11-23 19:19:53 +00:00
fixing fingerprinted column of songs table not getting updated to 1.
This commit is contained in:
parent
eefcf0991c
commit
3fe99ac5c3
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,8 @@ class Dejavu(object):
|
|||
|
||||
self.db.insert_hashes(sid, hashes)
|
||||
|
||||
self.db.set_song_fingerprinted(sid)
|
||||
|
||||
pool.close()
|
||||
pool.join()
|
||||
|
||||
|
@ -92,6 +94,8 @@ class Dejavu(object):
|
|||
|
||||
self.db.insert_hashes(sid, hashes)
|
||||
|
||||
self.db.set_song_fingerprinted(sid)
|
||||
|
||||
def find_matches(self, samples, Fs=fingerprint.DEFAULT_FS):
|
||||
hashes = fingerprint.fingerprint(samples, Fs=Fs)
|
||||
return self.db.return_matches(hashes)
|
||||
|
|
Loading…
Reference in a new issue