[FA-6] Need to test Novelpia import

This commit is contained in:
gamer147
2025-12-29 20:27:04 -05:00
parent d8e3ec7ec9
commit bee805c441
19 changed files with 1160 additions and 92 deletions

View File

@@ -66,7 +66,7 @@ public class NovelpiaAdapter : ISourceAdapter
ExternalId = novelId.ToString(),
SystemTags = new List<string>(),
SourceTags = new List<string>(),
Chapters = new List<ChapterMetadata>(),
Volumes = new List<VolumeMetadata>(),
SourceDescriptor = SourceDescriptor
};
@@ -168,8 +168,18 @@ public class NovelpiaAdapter : ISourceAdapter
}
page++;
}
novel.Chapters = chapters;
// Wrap all chapters in a single "Main Story" volume
novel.Volumes = new List<VolumeMetadata>
{
new VolumeMetadata
{
Order = 1,
Name = "Main Story",
Chapters = chapters
}
};
return novel;
}