mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-23 22:35:33 +08:00
17 lines
384 B
Python
17 lines
384 B
Python
from plex.objects.core.base import Descriptor, Property
|
|
|
|
|
|
class Genre(Descriptor):
|
|
id = Property(type=int)
|
|
tag = Property
|
|
|
|
@classmethod
|
|
def from_node(cls, client, node):
|
|
items = []
|
|
|
|
for genre in cls.helpers.findall(node, 'Genre'):
|
|
_, obj = Genre.construct(client, genre, child=True)
|
|
|
|
items.append(obj)
|
|
|
|
return [], items
|