From 342d85d1f278ee850a5e8017ea000579712414f3 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Wed, 2 Jan 2013 09:52:07 -0500 Subject: [PATCH] Strip whitespace in search term --- headphones/searcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index 9a25371c..5f2f153c 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -153,8 +153,8 @@ def searchNZB(albumid=None, new=False, losslessOnly=False): dic = {'...':'', ' & ':' ', ' = ': ' ', '?':'', '$':'s', ' + ':' ', '"':'', ',':'', '*':'', '.':'', ':':''} - cleanalbum = helpers.latinToAscii(helpers.replace_all(albums[1], dic)) - cleanartist = helpers.latinToAscii(helpers.replace_all(albums[0], dic)) + cleanalbum = helpers.latinToAscii(helpers.replace_all(albums[1], dic)).strip() + cleanartist = helpers.latinToAscii(helpers.replace_all(albums[0], dic)).strip() # Use the provided search term if available, otherwise build a search term if albums[5]: