From dce50b226f61f6d1821fd15f985deda4c38e7c6c Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 15 Jan 2019 11:52:06 -0600 Subject: [PATCH] Avoid converting string to bytes in search audio functions --- src/controller/mainController.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/mainController.py b/src/controller/mainController.py index ffbbb6b..c0e0495 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -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)