fixing fingerprinted column of songs table not getting updated to 1.

This commit is contained in:
Bhuvanesh Kumar 2014-02-21 01:13:42 +05:30
parent eefcf0991c
commit 3fe99ac5c3

View file

@ -79,6 +79,8 @@ class Dejavu(object):
sid = self.db.insert_song(song_name) sid = self.db.insert_song(song_name)
self.db.insert_hashes(sid, hashes) self.db.insert_hashes(sid, hashes)
self.db.set_song_fingerprinted(sid)
pool.close() pool.close()
pool.join() pool.join()
@ -91,6 +93,8 @@ class Dejavu(object):
sid = self.db.insert_song(song_name) sid = self.db.insert_song(song_name)
self.db.insert_hashes(sid, hashes) self.db.insert_hashes(sid, hashes)
self.db.set_song_fingerprinted(sid)
def find_matches(self, samples, Fs=fingerprint.DEFAULT_FS): def find_matches(self, samples, Fs=fingerprint.DEFAULT_FS):
hashes = fingerprint.fingerprint(samples, Fs=Fs) hashes = fingerprint.fingerprint(samples, Fs=Fs)