Fix for syosetu author names, closes #8
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -25,11 +25,10 @@ public class NovelRepository : BaseRepository<Novel>, INovelRepository
|
|||||||
{
|
{
|
||||||
entity.Author = await _authorRepository.Upsert(entity.Author, false);
|
entity.Author = await _authorRepository.Upsert(entity.Author, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Tags
|
//Tags
|
||||||
var newTags = await _tagRepository.UpsertMany(entity.Tags, false);
|
var newTags = await _tagRepository.UpsertMany(entity.Tags, false);
|
||||||
|
|
||||||
//chapters are getting deleted now that their required...
|
//chapters
|
||||||
var newChapters = await _chapterRepository.UpsertMany(entity.Chapters, false);
|
var newChapters = await _chapterRepository.UpsertMany(entity.Chapters, false);
|
||||||
|
|
||||||
// update in db
|
// update in db
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ public class SyosetuScraper : AbstractScraper
|
|||||||
|
|
||||||
protected override string? WorkTitlePattern => @"//p[@class='novel_title']";
|
protected override string? WorkTitlePattern => @"//p[@class='novel_title']";
|
||||||
|
|
||||||
protected override string? AuthorNamePattern => @"//div[@class='novel_writername']/a | //div[@class='novel_writername']";
|
protected override string? AuthorNamePattern => @"//div[@class='novel_writername']/a";
|
||||||
|
|
||||||
protected override string? AuthorLinkPattern => @"//div[@class='novel_writername']/a";
|
protected override string? AuthorLinkPattern => @"//div[@class='novel_writername']/a";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user