Skip to content

Commit

Permalink
improve artist og data (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolsinga committed Sep 8, 2023
1 parent 29b5917 commit dd3c466
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/com/bolsinga/music/ArtistRecordDocumentCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ public String getFilePath() {
return fLinks.getIdentifierPath(item);
}
public String getTitle() {
return item.getName();
boolean hasAlbums = item.getAlbums().size() > 0;
Object[] args = { item.getName() };
if (hasAlbums) {
return MessageFormat.format(Util.getResourceString("artistshowsandalbumsdetail"), args);
} else {
return MessageFormat.format(Util.getResourceString("artistshowsonlydetail"), args);
}
}
});
}
Expand Down
2 changes: 2 additions & 0 deletions src/properties/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ archivesoverviewsummary=This table displays statistics about Entries: how many p
artist=Artist
artists=Artists
artiststats=Artist Statistics
artistshowsonlydetail=Shows with {0}
artistshowsandalbumsdetail=Shows and Albums with {0}
artiststatsummary=This table displays statistics about Artists: how many times seen live, and the percentage of all sets.
bands=Bands
builddate=@builddate@
Expand Down

0 comments on commit dd3c466

Please sign in to comment.