From d16e7dfb0d5574d1b5c27e93c15a3bc6cc3e2fc5 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sun, 25 Sep 2011 19:13:41 +0100 Subject: [PATCH] add debug output to verify scoring system --- server/djrandom/fingerprint/dedup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/djrandom/fingerprint/dedup.py b/server/djrandom/fingerprint/dedup.py index 9675df0..826276b 100644 --- a/server/djrandom/fingerprint/dedup.py +++ b/server/djrandom/fingerprint/dedup.py @@ -185,6 +185,11 @@ class DeDuper(object): scores.sort(cmp=_compare_score, reverse=True) best_song = scores[0][1] log.debug('remove_dupes: best song is %s' % best_song) + log.debug('remove_dupes: score dump:') + for score, sha1 in scores: + bitrate, duration, nmeta = score + log.debug(' * (bitrate=%s, duration=%s, nmeta=%s) %s' % ( + bitrate, duration, nmeta, sha1)) # Remove all the other songs. songs_to_remove = [x for x in hashes if x != best_song] -- GitLab