def __call__(self, *args, **kwargs):
args = [str(a).replace(',', '\,') for a in args]
for k, v in kwargs.items():
args.append('{0}={v}'.format(k, str(v).replace(',', '\,')))
if args:
command = '{0}({1})'.format(self.module, ','.join(args))
else:
command = '{0}'.format(self.module)
xbmc.log(command, xbmc.LOGNOTICE)
xbmc.executebuiltin(command)
评论列表
文章目录