From b30b472e58529b3ede8470a9ac3d6f743ed65812 Mon Sep 17 00:00:00 2001 From: cohena Date: Sun, 1 Dec 2013 20:11:01 -0800 Subject: [PATCH] Fix what.cd lossless searching --- headphones/searcher.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index 478de86d..31690dc2 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -1011,11 +1011,11 @@ def searchTorrent(albumid=None, new=False, losslessOnly=False): bitrate = None bitrate_string = bitrate - if headphones.PREFERRED_QUALITY == 2 or losslessOnly: # Lossless Only mode + if headphones.PREFERRED_QUALITY == 3 or losslessOnly: # Lossless Only mode search_formats = [gazelleformat.FLAC] maxsize = 10000000000 - elif headphones.PREFERRED_QUALITY == 3: # Preferred quality mode - search_formats=[None] # should return all + elif headphones.PREFERRED_QUALITY == 2: # Preferred quality mode + search_formats = [None] # should return all bitrate = headphones.PREFERRED_BITRATE if bitrate: for encoding_string in gazelleencoding.ALL_ENCODINGS: