From 3fe99ac5c3ce2019857b98b6186e7dd79f890fea Mon Sep 17 00:00:00 2001 From: Bhuvanesh Kumar Date: Fri, 21 Feb 2014 01:13:42 +0530 Subject: [PATCH] fixing fingerprinted column of songs table not getting updated to 1. --- dejavu/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dejavu/__init__.py b/dejavu/__init__.py index bbd5b0b..b6be601 100755 --- a/dejavu/__init__.py +++ b/dejavu/__init__.py @@ -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)