metadata in new version of server 0.9.17.0

I have problem with new version of server (0.9.17.0) with this code:
if 'actors' in movie_info: metadata.roles.clear() for actor in movie_info['actors']: role = metadata.roles.new() role.actor = actor

File “/volume1/@appstore/Plex Media Server/Resources/Plug-ins-356c3af/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/attributes.py”, line 37, in setattr
raise AttributeError("’%s’ object has no attribute named ‘%s’" % (type(self).name, name))
AttributeError: ‘RecordObject’ object has no attribute named ‘actor’

It was OK in previous versions but now is not working.
I was not able to find what is new metadata model to correct it.
Thanks for suggestions.

Having same issue…

Try using role.name instead of role.actor

working, thanks