From dd5835a310f869bd1ed6ece2c6cc6e5be317e2b1 Mon Sep 17 00:00:00 2001 From: Aaron Cohen Date: Fri, 5 Oct 2012 09:02:44 -0700 Subject: [PATCH] Fixed unassigned variable --- headphones/searcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index d690629e..a4eaef8f 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -820,13 +820,13 @@ def searchTorrent(albumid=None, new=False, losslessOnly=False): providerurl = "http://what.cd/" bitrate = None + bitrate_string = bitrate if headphones.PREFERRED_QUALITY == 3 or losslessOnly: format = gazelleformat.FLAC maxsize = 10000000000 elif headphones.PREFERRED_QUALITY: format=None bitrate = headphones.PREFERRED_BITRATE - bitrate_string = bitrate for encoding_string in gazelleencoding.ALL_ENCODINGS: if re.search(bitrate, encoding_string, flags=re.I): bitrate_string = encoding_string