[FA-6] Need to test Novelpia import
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user