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]: