diff --git a/dashboard-ui/css/images/items/list/collection.png b/dashboard-ui/css/images/items/list/collection.png
index d1e862a694..afcebcf64f 100644
Binary files a/dashboard-ui/css/images/items/list/collection.png and b/dashboard-ui/css/images/items/list/collection.png differ
diff --git a/dashboard-ui/livetvrecordings.html b/dashboard-ui/livetvrecordings.html
index 5e61d0ebec..dc1cf1545e 100644
--- a/dashboard-ui/livetvrecordings.html
+++ b/dashboard-ui/livetvrecordings.html
@@ -13,9 +13,17 @@
Series
";
- html += item.SeriesName || item.Album || item.AlbumArtist || " ";
+ html += item.EpisodeTitle ? item.Name : (item.SeriesName || item.Album || item.AlbumArtist || " ");
html += "
";
}
@@ -965,7 +986,7 @@
var day = weekday[date.getDay()];
date = date.toLocaleDateString();
-
+
if (date.toLowerCase().indexOf(day.toLowerCase()) == -1) {
return day + " " + date;
}
@@ -1010,7 +1031,7 @@
getPosterViewDisplayName: function (item, displayAsSpecial) {
- var name = item.Name;
+ var name = item.EpisodeTitle || item.Name;
if (displayAsSpecial && item.Type == "Episode" && item.ParentIndexNumber == 0) {
@@ -1066,7 +1087,7 @@
}
return '';
+ html += '
';
html += '
' + group.Name + '
';
@@ -53,6 +53,12 @@
function renderRecordingGroups(page, groups) {
+ if (groups.length) {
+ $('#recordingGroups', page).show();
+ } else {
+ $('#recordingGroups', page).hide();
+ }
+
var html = '';
for (var i = 0, length = groups.length; i < length; i++) {
@@ -60,7 +66,7 @@
html += getRecordingGroupHtml(groups[i]);
}
- var elem = $('#items', page).html(html).trigger('create');
+ var elem = $('#recordingGroupItems', page).html(html).trigger('create');
$('.recordingGroupCollapsible', elem).on('collapsibleexpand.lazyload', function () {
@@ -133,6 +139,25 @@
Dashboard.hideLoadingMsg();
}
+
+ function renderLatestRecordings(page, recordings) {
+
+ if (recordings.length) {
+ $('#latestRecordings', page).show();
+ } else {
+ $('#latestRecordings', page).hide();
+ }
+
+ $('#latestRecordingItems', page).html(LibraryBrowser.getPosterViewHtml({
+ items: recordings,
+ useAverageAspectRatio: true,
+ shape: "smallBackdrop",
+ showTitle: true,
+ showParentTitle: true,
+ overlayText: true
+
+ }));
+ }
function reload(page) {
@@ -147,6 +172,17 @@
renderRecordingGroups(page, result.Items);
});
+
+ apiClient.getLiveTvRecordings({
+
+ userId: Dashboard.getCurrentUserId(),
+ limit: 6
+
+ }).done(function (result) {
+
+ renderLatestRecordings(page, result.Items);
+
+ });
}
$(document).on('pagebeforeshow', "#liveTvRecordingsPage", function () {