Skip to content
Snippets Groups Projects
Commit d16e7dfb authored by ale's avatar ale
Browse files

add debug output to verify scoring system

parent 9c5e8b65
Branches
No related tags found
No related merge requests found
...@@ -185,6 +185,11 @@ class DeDuper(object): ...@@ -185,6 +185,11 @@ class DeDuper(object):
scores.sort(cmp=_compare_score, reverse=True) scores.sort(cmp=_compare_score, reverse=True)
best_song = scores[0][1] best_song = scores[0][1]
log.debug('remove_dupes: best song is %s' % best_song) 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. # Remove all the other songs.
songs_to_remove = [x for x in hashes if x != best_song] songs_to_remove = [x for x in hashes if x != best_song]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment