diff --git a/ComicRack.Engine/ComicBook.cs b/ComicRack.Engine/ComicBook.cs index 8615460..1d7ae2b 100644 --- a/ComicRack.Engine/ComicBook.cs +++ b/ComicRack.Engine/ComicBook.cs @@ -1062,12 +1062,12 @@ public string ArtistInfo { HashSet uniqueNames = new HashSet(); StringBuilder stringBuilder = new StringBuilder(); - AppendUniqueArtist(stringBuilder, "/", base.Writer, uniqueNames); - AppendUniqueArtist(stringBuilder, "/", base.Penciller, uniqueNames); - AppendUniqueArtist(stringBuilder, "/", base.Inker, uniqueNames); - AppendUniqueArtist(stringBuilder, "/", base.Colorist, uniqueNames); - AppendUniqueArtist(stringBuilder, "/", base.Letterer, uniqueNames); - AppendUniqueArtist(stringBuilder, "/", base.CoverArtist, uniqueNames); + AppendUniqueName(stringBuilder, "/", base.Writer, uniqueNames); + AppendUniqueName(stringBuilder, "/", base.Penciller, uniqueNames); + AppendUniqueName(stringBuilder, "/", base.Inker, uniqueNames); + AppendUniqueName(stringBuilder, "/", base.Colorist, uniqueNames); + AppendUniqueName(stringBuilder, "/", base.Letterer, uniqueNames); + AppendUniqueName(stringBuilder, "/", base.CoverArtist, uniqueNames); return stringBuilder.ToString(); } @@ -2651,15 +2651,23 @@ public static string FormatTitle(string textFormat, string series, string title return fileName ?? string.Empty; } - private static void AppendUniqueArtist(StringBuilder s, string delimiter, string text, HashSet uniqueNames) + private static void AppendUniqueName(StringBuilder s, string delimiter, string text, HashSet uniqueNames) { - if (!string.IsNullOrEmpty(text) && uniqueNames.Add(text)) + if (!string.IsNullOrEmpty(text)) { - if (s.Length != 0) + var names = text.Split(',', StringSplitOptions.RemoveEmptyEntries); + foreach (var name in names) { - s.Append(delimiter); + var trimmedName = name.Trim(); + if (!string.IsNullOrEmpty(trimmedName) && uniqueNames.Add(trimmedName)) + { + if (s.Length != 0) + { + s.Append(delimiter); + } + s.Append(trimmedName); + } } - s.Append(text); } } diff --git a/ComicRack/Changes.txt b/ComicRack/Changes.txt index 1870010..86c7091 100644 --- a/ComicRack/Changes.txt +++ b/ComicRack/Changes.txt @@ -48,6 +48,7 @@ Community Edition Build 0.9.180: * CHANGE: Updated Publishers.zip * CHANGE: Series: Gaps will try to determine Number range of type "# - #". * CHANGE: The default method for resizing thumbnails was changed from FastBilinear (Bilinear) to FastAndUgly (Nearest Neighbor). For more speed but more importantly to prevent a crash that has been happening and is hard to prevent. This should at the very least reduce the incidence of that crash happening or having bad thumnails created (with a big red X). You can change back the method manually by changing the ThumbnailResampling entry in the ComicRack.ini. +* CHANGE: When in the Tiles view mode, artists will not appear multiple time anymore. * BUGFIX: Fixed crash when the clipboard contains some objects while the program is idle. The check should now only happen on a right-click and not in the background. It should at least lessen the frequency of the crash, maybe remove it completely. * BUGFIX: Fixed smartlist "in range" for dates, the second field wasn't taken into account.