From 484529dadd2bd48b7b1c1016eee43df4dbb08255 Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Fri, 25 Apr 2025 15:25:55 -0500 Subject: [PATCH] Handle imprints from CBR --- API/Services/Plus/ExternalMetadataService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/API/Services/Plus/ExternalMetadataService.cs b/API/Services/Plus/ExternalMetadataService.cs index 424331e09..eb7151047 100644 --- a/API/Services/Plus/ExternalMetadataService.cs +++ b/API/Services/Plus/ExternalMetadataService.cs @@ -1171,6 +1171,14 @@ public class ExternalMetadataService : IExternalMetadataService return false; } + // Some publishers (CBR) can be represented as Boom! Studios/Boom! Town imprint, so let's handle that appropriately + if (publisher.Contains('/') || publisher.Contains("imprint", StringComparison.InvariantCultureIgnoreCase)) + { + var imprint = publisher.Split('/')[1].Replace("imprint", string.Empty); + return await UpdateChapterPeople(chapter, settings, PersonRole.Publisher, [publisher]) || + await UpdateChapterPeople(chapter, settings, PersonRole.Imprint, [imprint]); + } + return await UpdateChapterPeople(chapter, settings, PersonRole.Publisher, [publisher]); }