Avoid converting string to bytes in search audio functions

This commit is contained in:
Manuel Cortez 2019-01-15 11:52:06 -06:00
parent a0aa04e036
commit dce50b226f

View File

@ -256,7 +256,7 @@ class Controller(object):
def search_audios(self, *args, **kwargs):
dlg = searchDialogs.searchAudioDialog()
if dlg.get_response() == widgetUtils.OK:
q = dlg.get("term").encode("utf-8")
q = dlg.get("term")
newbuff = buffers.audioBuffer(parent=self.window.tb, name="{0}_audiosearch".format(q,), session=self.session, composefunc="render_audio", parent_endpoint="audio", endpoint="search", q=q)
self.buffers.append(newbuff)
call_threaded(newbuff.get_items)