From 7bc57e287a18abcdcdd53eb6d0084c59b774fe32 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 9 Sep 2016 03:02:36 -0400 Subject: [PATCH] fix dupe titles --- .../emby-webcomponents/listview/listview.js | 7 +++++-- .../emby-webcomponents/mediainfo/mediainfo.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dashboard-ui/bower_components/emby-webcomponents/listview/listview.js b/dashboard-ui/bower_components/emby-webcomponents/listview/listview.js index 12ceb510a3..b5888e1266 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/listview/listview.js +++ b/dashboard-ui/bower_components/emby-webcomponents/listview/listview.js @@ -306,7 +306,9 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan var mediaInfoClass = 'secondary listItemMediaInfo listItemBodyText'; - html += '
' + mediaInfo.getPrimaryMediaInfoHtml(item) + '
'; + html += '
' + mediaInfo.getPrimaryMediaInfoHtml(item, { + episodeTitle: false + }) + '
'; } if (enableOverview && item.Overview) { @@ -321,7 +323,8 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan html += '
' + mediaInfo.getPrimaryMediaInfoHtml(item, { year: false, - container: false + container: false, + episodeTitle: false }) + '
'; } diff --git a/dashboard-ui/bower_components/emby-webcomponents/mediainfo/mediainfo.js b/dashboard-ui/bower_components/emby-webcomponents/mediainfo/mediainfo.js index c7a87e3070..0bccf16917 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/mediainfo/mediainfo.js +++ b/dashboard-ui/bower_components/emby-webcomponents/mediainfo/mediainfo.js @@ -178,7 +178,7 @@ define(['datetime', 'globalize', 'embyRouter', 'itemHelper', 'material-icons', ' }); } - if (item.IsSeries && item.EpisodeTitle) { + if (item.IsSeries && item.EpisodeTitle && options.episodeTitle !== false) { miscInfo.push(itemHelper.getDisplayName(item)); }