diff --git a/data/interfaces/default/info_children_list.html b/data/interfaces/default/info_children_list.html index f6af0c37..26b82f98 100644 --- a/data/interfaces/default/info_children_list.html +++ b/data/interfaces/default/info_children_list.html @@ -125,7 +125,7 @@ DOCUMENTATION :: END % elif data['children_type'] == 'track': <% e = 'even' if loop.index % 2 == 0 else 'odd' %>
-  ${child['media_index']} + ${child['media_index']} ${child['title']} % if child['original_title']: @@ -140,16 +140,16 @@ DOCUMENTATION :: END % elif media_type == 'playlist': <% e = 'even' if loop.index % 2 == 0 else 'odd' %>
-  ${loop.index + 1} + ${loop.index + 1} % if child['media_type'] == 'movie': -   + ${child['title']} (${child['year']}) % elif child['media_type'] == 'episode': -   + ${child['grandparent_title']} - @@ -158,7 +158,7 @@ DOCUMENTATION :: END (S${child['parent_media_index']} · E${child['media_index']}) % elif child['media_type'] == 'track': -   + ${child['title']} - @@ -166,12 +166,31 @@ DOCUMENTATION :: END ${child['grandparent_title']} (${child['parent_title']}) + % elif child['media_type'] == 'photo': + + + ${child['title']} + + % if child['grandparent_title']: + - + ${child['grandparent_title']} + + % endif + (${child['parent_title']}) + % elif child['media_type'] == 'clip': + + + ${child['title']} + + (${child['parent_title']}) % endif + % if child['duration']: <% f = 'h:mm:ss' if cast_to_int(child['duration']) >= 3600000 else 'm:ss' %> + % endif
% endif diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index 2030fb80..f346cd1d 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -24,6 +24,7 @@ import json import os import time from future.moves.urllib.parse import quote, quote_plus, urlencode +from xml.dom.minidom import Node import plexpy if plexpy.PYTHON2: @@ -2317,12 +2318,9 @@ class PmsConnect(object): result_data = [] - if a.getElementsByTagName('Directory'): - result_data = a.getElementsByTagName('Directory') - if a.getElementsByTagName('Video'): - result_data = a.getElementsByTagName('Video') - if a.getElementsByTagName('Track'): - result_data = a.getElementsByTagName('Track') + for x in a.childNodes: + if x.nodeType == Node.ELEMENT_NODE and x.tagName in ('Directory', 'Video', 'Track', 'Photo'): + result_data.append(x) if result_data: for m in result_data: