diff --git a/fanficfare/adapters/adapter_novelupdatescc.py b/fanficfare/adapters/adapter_novelupdatescc.py index 5ee0c871..8958d16d 100644 --- a/fanficfare/adapters/adapter_novelupdatescc.py +++ b/fanficfare/adapters/adapter_novelupdatescc.py @@ -83,11 +83,11 @@ class NovelUpdatesCcSiteAdapter(BaseSiteAdapter): self.setCoverImage(self.url, soup.select_one('.book-img > img')['src']) book_info = soup.select_one('.book-info') - author = book_info.select_one('.author > .name') + author = book_info.select_one('.author > .name').get_text() self.story.setMetadata('title', book_info.select_one('.book-name').get_text()) - self.story.setMetadata('author', author.get_text()) - self.story.setMetadata('authorId', author.get_text()) - self.story.setMetadata('authorUrl', author['href']) + self.story.setMetadata('author', author) + self.story.setMetadata('authorId', author) + ## site doesn't have authorUrl links. chapter_info = soup.select_one('.chapter-wrapper') date = makeDate(chapter_info.select_one('.update-time').get_text(), self.DATE_FORMAT) diff --git a/fanficfare/adapters/adapter_wuxiaworldco.py b/fanficfare/adapters/adapter_wuxiaworldco.py index dd7aa6b8..a5309e1f 100644 --- a/fanficfare/adapters/adapter_wuxiaworldco.py +++ b/fanficfare/adapters/adapter_wuxiaworldco.py @@ -83,11 +83,11 @@ class WuxiaWorldCoSiteAdapter(BaseSiteAdapter): self.setCoverImage(self.url, soup.select_one('.book-img > img')['src']) book_info = soup.select_one('.book-info') - author = book_info.select_one('.author > .name') + author = book_info.select_one('.author > .name').get_text() self.story.setMetadata('title', book_info.select_one('.book-name').get_text()) - self.story.setMetadata('author', author.get_text()) - self.story.setMetadata('authorId', author.get_text()) - self.story.setMetadata('authorUrl', author['href']) + self.story.setMetadata('author', author) + self.story.setMetadata('authorId', author) + ## site doesn't have authorUrl links. chapter_info = soup.select_one('.chapter-wrapper') date = makeDate(chapter_info.select_one('.update-time').get_text(), self.DATE_FORMAT)