Avoid converting string to bytes in search audio functions
This commit is contained in:
parent
a0aa04e036
commit
dce50b226f
@ -256,7 +256,7 @@ class Controller(object):
|
|||||||
def search_audios(self, *args, **kwargs):
|
def search_audios(self, *args, **kwargs):
|
||||||
dlg = searchDialogs.searchAudioDialog()
|
dlg = searchDialogs.searchAudioDialog()
|
||||||
if dlg.get_response() == widgetUtils.OK:
|
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)
|
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)
|
self.buffers.append(newbuff)
|
||||||
call_threaded(newbuff.get_items)
|
call_threaded(newbuff.get_items)
|
||||||
|
Loading…
Reference in New Issue
Block a user