Fix for syosetu author names, closes #8
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-08-03 11:14:28 -04:00
parent 050ea7aa80
commit d4c4f521ec
2 changed files with 3 additions and 4 deletions

View File

@@ -25,11 +25,10 @@ public class NovelRepository : BaseRepository<Novel>, INovelRepository
{
entity.Author = await _authorRepository.Upsert(entity.Author, false);
}
//Tags
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);
// update in db

View File

@@ -15,7 +15,7 @@ public class SyosetuScraper : AbstractScraper
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";