mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Merge pull request #71 from jroyal/include-show-title-in-rec-add
Recently added TV Shows display title of the show
This commit is contained in:
commit
697d107952
2 changed files with 6 additions and 1 deletions
|
@ -15,6 +15,7 @@ type Returns the type of media. Either 'movie' or 'season'.
|
||||||
thumb Returns the location of the item's thumbnail. Use with pms_image_proxy.
|
thumb Returns the location of the item's thumbnail. Use with pms_image_proxy.
|
||||||
added_at Returns the time when the media was added to the library.
|
added_at Returns the time when the media was added to the library.
|
||||||
title Returns the name of the movie or season.
|
title Returns the name of the movie or season.
|
||||||
|
parent_title Returns the name of the TV Show a season belongs too.
|
||||||
|
|
||||||
== Only if 'type' is 'movie' ==
|
== Only if 'type' is 'movie' ==
|
||||||
year Returns the movie release year.
|
year Returns the movie release year.
|
||||||
|
@ -42,7 +43,9 @@ DOCUMENTATION :: END
|
||||||
% endif
|
% endif
|
||||||
</div>
|
</div>
|
||||||
<div class="dashboard-recent-media-metacontainer">
|
<div class="dashboard-recent-media-metacontainer">
|
||||||
% if item['type'] == 'season' or item['type'] == 'album':
|
% if item['type'] == 'season':
|
||||||
|
<h3>${item['parent_title']} - ${item['title']}</h3>
|
||||||
|
% elif item['type'] == 'album':
|
||||||
<h3>${item['title']}</h3>
|
<h3>${item['title']}</h3>
|
||||||
% elif item['type'] == 'movie':
|
% elif item['type'] == 'movie':
|
||||||
<h3>${item['title']} (${item['year']})</h3>
|
<h3>${item['title']} (${item['year']})</h3>
|
||||||
|
|
|
@ -218,6 +218,7 @@ class PmsConnect(object):
|
||||||
recent_items = {'type': recent_type,
|
recent_items = {'type': recent_type,
|
||||||
'rating_key': helpers.get_xml_attr(item, 'ratingKey'),
|
'rating_key': helpers.get_xml_attr(item, 'ratingKey'),
|
||||||
'title': helpers.get_xml_attr(item, 'title'),
|
'title': helpers.get_xml_attr(item, 'title'),
|
||||||
|
'parent_title': helpers.get_xml_attr(item, 'parentTitle'),
|
||||||
'thumb': helpers.get_xml_attr(item, 'thumb'),
|
'thumb': helpers.get_xml_attr(item, 'thumb'),
|
||||||
'added_at': helpers.get_xml_attr(item, 'addedAt')
|
'added_at': helpers.get_xml_attr(item, 'addedAt')
|
||||||
}
|
}
|
||||||
|
@ -232,6 +233,7 @@ class PmsConnect(object):
|
||||||
recent_items = {'type': recent_type,
|
recent_items = {'type': recent_type,
|
||||||
'rating_key': helpers.get_xml_attr(item, 'ratingKey'),
|
'rating_key': helpers.get_xml_attr(item, 'ratingKey'),
|
||||||
'title': helpers.get_xml_attr(item, 'title'),
|
'title': helpers.get_xml_attr(item, 'title'),
|
||||||
|
'parent_title': helpers.get_xml_attr(item, 'parentTitle'),
|
||||||
'year': helpers.get_xml_attr(item, 'year'),
|
'year': helpers.get_xml_attr(item, 'year'),
|
||||||
'thumb': helpers.get_xml_attr(item, 'thumb'),
|
'thumb': helpers.get_xml_attr(item, 'thumb'),
|
||||||
'added_at': helpers.get_xml_attr(item, 'addedAt')
|
'added_at': helpers.get_xml_attr(item, 'addedAt')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue