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

@ -80,6 +80,8 @@ class Dejavu(object):
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()
@ -92,6 +94,8 @@ class Dejavu(object):
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)
return self.db.return_matches(hashes) return self.db.return_matches(hashes)