mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Add collections to get_children_metadata API data
This commit is contained in:
parent
e6829310ad
commit
08bc365a7c
2 changed files with 8 additions and 1 deletions
|
@ -2442,6 +2442,7 @@ class PmsConnect(object):
|
||||||
actors = []
|
actors = []
|
||||||
genres = []
|
genres = []
|
||||||
labels = []
|
labels = []
|
||||||
|
collections = []
|
||||||
|
|
||||||
if m.getElementsByTagName('Director'):
|
if m.getElementsByTagName('Director'):
|
||||||
for director in m.getElementsByTagName('Director'):
|
for director in m.getElementsByTagName('Director'):
|
||||||
|
@ -2463,6 +2464,10 @@ class PmsConnect(object):
|
||||||
for label in m.getElementsByTagName('Label'):
|
for label in m.getElementsByTagName('Label'):
|
||||||
labels.append(helpers.get_xml_attr(label, 'tag'))
|
labels.append(helpers.get_xml_attr(label, 'tag'))
|
||||||
|
|
||||||
|
if m.getElementsByTagName('Collection'):
|
||||||
|
for collection in m.getElementsByTagName('Collection'):
|
||||||
|
collections.append(helpers.get_xml_attr(collection, 'tag'))
|
||||||
|
|
||||||
media_type = helpers.get_xml_attr(m, 'type')
|
media_type = helpers.get_xml_attr(m, 'type')
|
||||||
if m.nodeName == 'Directory' and media_type == 'photo':
|
if m.nodeName == 'Directory' and media_type == 'photo':
|
||||||
media_type = 'photo_album'
|
media_type = 'photo_album'
|
||||||
|
@ -2506,6 +2511,7 @@ class PmsConnect(object):
|
||||||
'actors': actors,
|
'actors': actors,
|
||||||
'genres': genres,
|
'genres': genres,
|
||||||
'labels': labels,
|
'labels': labels,
|
||||||
|
'collections': collections,
|
||||||
'full_title': helpers.get_xml_attr(m, 'title')
|
'full_title': helpers.get_xml_attr(m, 'title')
|
||||||
}
|
}
|
||||||
children_list.append(children_output)
|
children_list.append(children_output)
|
||||||
|
|
|
@ -4591,6 +4591,7 @@ class WebInterface(object):
|
||||||
"audience_rating": "",
|
"audience_rating": "",
|
||||||
"audience_rating_image": "",
|
"audience_rating_image": "",
|
||||||
"banner": "",
|
"banner": "",
|
||||||
|
"collections": [],
|
||||||
"content_rating": "",
|
"content_rating": "",
|
||||||
"directors": [],
|
"directors": [],
|
||||||
"duration": "",
|
"duration": "",
|
||||||
|
@ -5442,8 +5443,8 @@ class WebInterface(object):
|
||||||
"tagline": "",
|
"tagline": "",
|
||||||
"thumb": "/library/metadata/153037/thumb/1462175060",
|
"thumb": "/library/metadata/153037/thumb/1462175060",
|
||||||
"title": "The Red Woman",
|
"title": "The Red Woman",
|
||||||
"user_rating": "9.0",
|
|
||||||
"updated_at": "1462175060",
|
"updated_at": "1462175060",
|
||||||
|
"user_rating": "9.0",
|
||||||
"writers": [
|
"writers": [
|
||||||
"David Benioff",
|
"David Benioff",
|
||||||
"D. B. Weiss"
|
"D. B. Weiss"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue