mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-27 08:13:14 +00:00
21 lines
423 B
Python
21 lines
423 B
Python
|
from plex.objects.core.base import Descriptor, Property
|
||
|
|
||
|
|
||
|
class Role(Descriptor):
|
||
|
id = Property(type=int)
|
||
|
tag = Property
|
||
|
|
||
|
role = Property
|
||
|
thumb = Property
|
||
|
|
||
|
@classmethod
|
||
|
def from_node(cls, client, node):
|
||
|
items = []
|
||
|
|
||
|
for genre in cls.helpers.findall(node, 'Role'):
|
||
|
_, obj = Role.construct(client, genre, child=True)
|
||
|
|
||
|
items.append(obj)
|
||
|
|
||
|
return [], items
|