mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-11 06:09:29 +01:00
Strip whitespace in search term
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user