Fix styling on collection info pages

This commit is contained in:
JonnyWong16 2023-02-25 16:35:48 -08:00
parent ebe570d42f
commit e6d1712afd
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
4 changed files with 60 additions and 9 deletions

View file

@ -2545,7 +2545,7 @@ class PmsConnect(object):
children_list.append(children_output)
output = {'children_count': helpers.cast_to_int(helpers.get_xml_attr(xml_head[0], 'size')),
'children_type': helpers.get_xml_attr(xml_head[0], 'viewGroup'),
'children_type': helpers.get_xml_attr(xml_head[0], 'viewGroup') or (children_list[0]['media_type'] if children_list else ''),
'title': helpers.get_xml_attr(xml_head[0], 'title2'),
'children_list': children_list
}