From c274b2be0c7cb3ccd26c1c1a0474be4852fb21b3 Mon Sep 17 00:00:00 2001 From: Polochon-street Date: Fri, 7 Oct 2016 16:51:19 +0200 Subject: [PATCH] Fixed bug in the cache computation --- mpd/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpd/client.py b/mpd/client.py index c4957b9..c9e3ef0 100755 --- a/mpd/client.py +++ b/mpd/client.py @@ -172,7 +172,7 @@ def main(queue_length): if cached_distances: closest_song = (cached_distances[0], cached_distances[0]["distance"], - cached_distances[1]["similarity"]) + cached_distances[0]["similarity"]) else: closest_song = None