Handle imprints from CBR

This commit is contained in:
Joseph Milazzo 2025-04-25 15:25:55 -05:00
parent b6e9cca0a3
commit 484529dadd

View file

@ -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]);
}