From d2fecc47ec69748f6ea72a07da7ce0a6319f2e2c Mon Sep 17 00:00:00 2001 From: rembo10 Date: Thu, 17 Apr 2014 13:50:27 -0700 Subject: [PATCH] Possible fix for #1560, what.cd choking when preferred bitrate is not one of the what.cd categories --- headphones/searcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index d9b74dc9..9bf7bbfc 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -1051,7 +1051,7 @@ def searchTorrent(album, new=False, losslessOnly=False): if re.search(bitrate, encoding_string, flags=re.I): bitrate_string = encoding_string if bitrate_string not in gazelleencoding.ALL_ENCODINGS: - raise Exception("Preferred bitrate %s not recognized by %s" % (bitrate_string, provider)) + logger.info(u"Your preferred bitrate is not one of the available What.cd filters, so not using it as a search parameter.") maxsize = 10000000000 elif headphones.PREFERRED_QUALITY == 1: # Highest quality including lossless search_formats = [gazelleformat.FLAC, gazelleformat.MP3]