fix dupe titles

This commit is contained in:
Luke Pulverenti 2016-09-09 03:02:36 -04:00
parent 95e99a6716
commit 7bc57e287a
2 changed files with 6 additions and 3 deletions

View File

@ -306,7 +306,9 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan
var mediaInfoClass = 'secondary listItemMediaInfo listItemBodyText';
html += '<div class="' + mediaInfoClass + '">' + mediaInfo.getPrimaryMediaInfoHtml(item) + '</div>';
html += '<div class="' + mediaInfoClass + '">' + mediaInfo.getPrimaryMediaInfoHtml(item, {
episodeTitle: false
}) + '</div>';
}
if (enableOverview && item.Overview) {
@ -321,7 +323,8 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan
html += '<div class="secondary listItemMediaInfo">' + mediaInfo.getPrimaryMediaInfoHtml(item, {
year: false,
container: false
container: false,
episodeTitle: false
}) + '</div>';
}

View File

@ -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));
}