diff --git a/KoeBook.Core/Services/ClaudeStoryGeneratorService.cs b/KoeBook.Core/Services/ClaudeStoryGeneratorService.cs index 3abf6de..e9e7c43 100644 --- a/KoeBook.Core/Services/ClaudeStoryGeneratorService.cs +++ b/KoeBook.Core/Services/ClaudeStoryGeneratorService.cs @@ -28,7 +28,8 @@ public async ValueTask CreateStoryAsync(StoryGenre storyGenre, string pr }, cancellationToken: cancellationToken ); - return storyXml.ToString(); + var xml = storyXml.ToString(); + return xml[xml.IndexOf('<')..(xml.LastIndexOf('>') + 1)]; } catch (OperationCanceledException) { throw; } catch (Exception e) diff --git a/KoeBook/Services/CreateCoverFileService.cs b/KoeBook/Services/CreateCoverFileService.cs index 6552e63..e873c8f 100644 --- a/KoeBook/Services/CreateCoverFileService.cs +++ b/KoeBook/Services/CreateCoverFileService.cs @@ -39,7 +39,7 @@ public void Create(string title, string author, string coverFilePath) graphics.DrawString($"著者: {author}", authorFont, brush, new Rectangle(0, 1920, 1600, 640), stringFormat); // png として出力 - bitmap.Save(Path.Combine(coverFilePath, "Cover.png"), ImageFormat.Png); + bitmap.Save(coverFilePath, ImageFormat.Png); } catch (Exception ex) {