def Play(url, **kwargs):
return IndirectResponse(VideoClipObject, key=HTTPLiveStreamURL(url))
I passed to function m3u8 url, but error is popuped.
2017-02-05 13:23:11,845 (-c06e470) : CRITICAL (runtime:970) - Exception when constructing response (most recent call last):
File “/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py”, line 951, in construct_response
el = result._to_xml()
File “/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/objectkit.py”, line 667, in _to_xml
el = Framework.modelling.objects.ModelInterfaceObjectContainer._to_xml(self)
File “/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py”, line 382, in _to_xml
root = Container._to_xml(self)
File “/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py”, line 139, in _to_xml
self._append_children(root, self._objects)
File “/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py”, line 145, in _append_children
el = obj._to_xml()
File “/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/objectkit.py”, line 545, in _to_xml
raise Framework.exceptions.AttributeException(‘If no URL is provided, the key and rating_key attributes must be set.’)
AttributeException: If no URL is provided, the key and rating_key attributes must be set.
so, i do insert rating_key attributes. like that
def Play(url, **kwargs):
return IndirectResponse(VideoClipObject, key=HTTPLiveStreamURL(url), rating_key=url)
But same error is occured. nothing change.