# HG changeset patch # User Goffi # Date 1563630830 -7200 # Node ID e2afbec1d1784d6418ee3268b683ee06849804e9 # Parent b2727877bad41943d0525a53a4e4eef362dbe070 remote: enforce unicode in bridge methods diff -r b2727877bad4 -r e2afbec1d178 cagou/plugins/plugin_wid_remote.py --- a/cagou/plugins/plugin_wid_remote.py Fri Jul 19 17:13:05 2019 +0200 +++ b/cagou/plugins/plugin_wid_remote.py Sat Jul 20 15:53:50 2019 +0200 @@ -111,7 +111,7 @@ def on_remote_item(self, __, remote): NS_MEDIA_PLAYER = G.host.ns_map[u"mediaplayer"] - G.host.bridge.adHocRun(remote.device_jid, NS_MEDIA_PLAYER, self.profile, + G.host.bridge.adHocRun(unicode(remote.device_jid), NS_MEDIA_PLAYER, self.profile, callback=self.adHocRunCb, errback=self.main_wid.errback) @@ -167,7 +167,7 @@ def do_item_action(self, touch): self.main_wid.layout.clear_widgets() - G.host.bridge.adHocRun(self.entity_jid, u'', self.profile, + G.host.bridge.adHocRun(unicode(self.entity_jid), u'', self.profile, callback=self.adHocRunCb, errback=self.main_wid.errback)