このPythonコードでキーエラーが発生しました
service = self.get_cd_service()
browse_response = service.Browse(ObjectID=str(object_id),
BrowseFlag=browse_flag,
Filter=filter,
StartingIndex=starting_index,
RequestedCount=requested_count,
SortCriteria=sort_criteria)
elt = Element.from_string(browse_response['Result'])
browse_response['Result'] = elt.get_items()
return browse_response
そしてエラーは:
Traceback (most recent call last):
File "CommandlLineControlPointAv.py", line 93, in <module>
main()
File "CommandlLineControlPointAv.py", line 89, in main
cmdline.run()
File "CommandlLineControlPointAv.py", line 68, in run
self.cmd_browse(c.split(' ')[1])
File "CommandlLineControlPointAv.py", line 48, in cmd_browse
result = self.browse(id, 'BrowseDirectChildren', '*', 0, 10)['Result']
File "/usr/local/lib/python2.7/dist-packages/brisa/upnp/control_point/control_point_av.py", line 136, in browse
elt = Element.from_string(browse_response['Result'])
KeyError: 'Result'
あなたの助けのためのThx/よろしく。
レム