comparison libervia/backend/plugins/plugin_adhoc_dbus.py @ 4184:50c919dfe61b

plugin XEP-0050: small code quality improvements + add `C.ENTITY_ADMINS` magic key to allow administrators profiles
author Goffi <goffi@goffi.org>
date Sun, 10 Dec 2023 15:08:08 +0100
parents 319a0e47dc8b
children 0d7bb4df2343
comparison
equal deleted inserted replaced
4183:6784d07b99c8 4184:50c919dfe61b
338 remotes = [] 338 remotes = []
339 339
340 for found in found_data: 340 for found in found_data:
341 for device_jid_s in found: 341 for device_jid_s in found:
342 device_jid = jid.JID(device_jid_s) 342 device_jid = jid.JID(device_jid_s)
343 cmd_list = await self._c.list(client, device_jid) 343 cmd_list = await self._c.list_commands(client, device_jid)
344 for cmd in cmd_list: 344 for cmd in cmd_list:
345 if cmd.nodeIdentifier == NS_MEDIA_PLAYER: 345 if cmd.nodeIdentifier == NS_MEDIA_PLAYER:
346 try: 346 try:
347 result_elt = await self._c.do(client, device_jid, 347 result_elt = await self._c.do(client, device_jid,
348 NS_MEDIA_PLAYER, timeout=5) 348 NS_MEDIA_PLAYER, timeout=5)