Skip to content

Commit

Permalink
Include The Name Of The TV Show while displaying Episodes In Collecti…
Browse files Browse the repository at this point in the history
…ons.
  • Loading branch information
venkat-karasani committed Jul 13, 2024
1 parent ad467c2 commit 97c5126
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/cardbuilder/cardBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ function getCardFooterText(item, apiClient, options, footerClass, progressHtml,

if (showMediaTitle) {
const name = options.showTitle === 'auto' && !item.IsFolder && item.MediaType === 'Photo' ? '' : itemHelper.getDisplayName(item, {
includeParentInfo: options.includeParentInfoInTitle
includeParentInfo: options.includeParentInfoInTitle,
collectionId: options.collectionId
});

lines.push(getTextActionButton({
Expand Down
2 changes: 1 addition & 1 deletion src/components/itemHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function getDisplayName(item, options = {}) {
}

if (number) {
if (item.PlaylistItemId && item.SeriesName){
if ((item.PlaylistItemId || options.collectionId) && item.SeriesName){

Check failure on line 46 in src/components/itemHelper.js

View workflow job for this annotation

GitHub Actions / Run eslint

Missing space before opening brace
name = name ? (item.SeriesName + nameSeparator + number + nameSeparator + name) : number;
} else {
name = name ? (number + nameSeparator + name) : number;
Expand Down

0 comments on commit 97c5126

Please sign in to comment.