diff --git a/data/interfaces/default/recently_added.html b/data/interfaces/default/recently_added.html index fc51c8ab..a06d7b39 100644 --- a/data/interfaces/default/recently_added.html +++ b/data/interfaces/default/recently_added.html @@ -42,7 +42,9 @@ DOCUMENTATION :: END % endif
- % if item['type'] == 'season' or item['type'] == 'album': + % if item['type'] == 'season': +

${item['parent_title']} - ${item['title']}

+ % elif item['type'] == 'album':

${item['title']}

% elif item['type'] == 'movie':

${item['title']} (${item['year']})

diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index 3e360b7f..c7f794f4 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -218,6 +218,7 @@ class PmsConnect(object): recent_items = {'type': recent_type, 'rating_key': helpers.get_xml_attr(item, 'ratingKey'), 'title': helpers.get_xml_attr(item, 'title'), + 'parent_title': helpers.get_xml_attr(item, 'parentTitle'), 'thumb': helpers.get_xml_attr(item, 'thumb'), 'added_at': helpers.get_xml_attr(item, 'addedAt') } @@ -232,6 +233,7 @@ class PmsConnect(object): recent_items = {'type': recent_type, 'rating_key': helpers.get_xml_attr(item, 'ratingKey'), 'title': helpers.get_xml_attr(item, 'title'), + 'parent_title': helpers.get_xml_attr(item, 'parentTitle'), 'year': helpers.get_xml_attr(item, 'year'), 'thumb': helpers.get_xml_attr(item, 'thumb'), 'added_at': helpers.get_xml_attr(item, 'addedAt')