diff cagou/plugins/plugin_wid_remote.py @ 306:e2afbec1d178

remote: enforce unicode in bridge methods
author Goffi <goffi@goffi.org>
date Sat, 20 Jul 2019 15:53:50 +0200
parents b2727877bad4
children 772c170b47a9
line wrap: on
line diff
--- 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)