mirror of
https://github.com/correl/dejavu.git
synced 2024-12-28 19:19:18 +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
|
@ -79,6 +79,8 @@ class Dejavu(object):
|
|||
sid = self.db.insert_song(song_name)
|
||||
|
||||
self.db.insert_hashes(sid, hashes)
|
||||
|
||||
self.db.set_song_fingerprinted(sid)
|
||||
|
||||
pool.close()
|
||||
pool.join()
|
||||
|
@ -91,6 +93,8 @@ class Dejavu(object):
|
|||
sid = self.db.insert_song(song_name)
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue