Add browsing photo info pages

This commit is contained in:
JonnyWong16 2020-10-01 11:46:11 -07:00
commit 478c4540b1
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
4 changed files with 84 additions and 22 deletions

View file

@ -2350,7 +2350,11 @@ class PmsConnect(object):
for label in m.getElementsByTagName('Label'):
labels.append(helpers.get_xml_attr(label, 'tag'))
children_output = {'media_type': helpers.get_xml_attr(m, 'type'),
media_type = helpers.get_xml_attr(m, 'type')
if m.nodeName == 'Directory' and media_type == 'photo':
media_type = 'photo_album'
children_output = {'media_type': media_type,
'section_id': helpers.get_xml_attr(m, 'librarySectionID'),
'library_name': helpers.get_xml_attr(m, 'librarySectionTitle'),
'rating_key': helpers.get_xml_attr(m, 'ratingKey'),