diff --git a/src/com/bolsinga/site/Main.java b/src/com/bolsinga/site/Main.java index 2ec7b50..81ccdf4 100644 --- a/src/com/bolsinga/site/Main.java +++ b/src/com/bolsinga/site/Main.java @@ -106,18 +106,23 @@ private void dumpSimilarArtists(final com.bolsinga.music.data.Music music) { } private boolean dumpMissingArtistIDs(final com.bolsinga.music.data.Music music) { - boolean displayed = false; List artists = music.getArtists(); + List artistsMissingIDs = new ArrayList(); for (com.bolsinga.music.data.Artist artist : artists) { if (artist.getID() == null) { - if (!displayed) { - System.out.println("--Artist Missing IDs--"); - displayed = true; - } - System.out.println(artist.getName()); + artistsMissingIDs.add(artist.getName()); + } + } + boolean hasMissingArtistIDs = artistsMissingIDs.size() != 0; + if (hasMissingArtistIDs) { + int nextID = artists.size() - artistsMissingIDs.size(); + System.out.println("--Artist Missing IDs--"); + for (String artistName : artistsMissingIDs) { + System.out.println("ar" + nextID + "^" + artistName); + nextID++; } } - return displayed; + return hasMissingArtistIDs; } private void generateSite(final com.bolsinga.music.data.Music music, final com.bolsinga.diary.data.Diary diary, final String output) throws Exception {