Strip whitespace in search term

This commit is contained in:
rembo10
2013-01-02 09:52:07 -05:00
parent 86e2177e68
commit 342d85d1f2

View File

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