From dd3c46661315e40b034c5f6266b3fc0cef1d854e Mon Sep 17 00:00:00 2001 From: Greg Bolsinga Date: Fri, 8 Sep 2023 16:39:07 -0700 Subject: [PATCH] improve artist og data (#143) --- src/com/bolsinga/music/ArtistRecordDocumentCreator.java | 8 +++++++- src/properties/config.properties | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/com/bolsinga/music/ArtistRecordDocumentCreator.java b/src/com/bolsinga/music/ArtistRecordDocumentCreator.java index 319a964..b1dfca3 100644 --- a/src/com/bolsinga/music/ArtistRecordDocumentCreator.java +++ b/src/com/bolsinga/music/ArtistRecordDocumentCreator.java @@ -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); + } } }); } diff --git a/src/properties/config.properties b/src/properties/config.properties index d8be27b..aa41402 100644 --- a/src/properties/config.properties +++ b/src/properties/config.properties @@ -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@