From 0055978a574efe85cc09c7719864d0f2defc6624 Mon Sep 17 00:00:00 2001 From: ElminsterAU Date: Thu, 17 Sep 2020 03:27:29 +1000 Subject: [PATCH] Fix for adapter_novelupdatescc not setting authorUrl. --- fanficfare/adapters/adapter_novelupdatescc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fanficfare/adapters/adapter_novelupdatescc.py b/fanficfare/adapters/adapter_novelupdatescc.py index 9d2e83f8..5ee0c871 100644 --- a/fanficfare/adapters/adapter_novelupdatescc.py +++ b/fanficfare/adapters/adapter_novelupdatescc.py @@ -83,10 +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').get_text() + author = book_info.select_one('.author > .name') self.story.setMetadata('title', book_info.select_one('.book-name').get_text()) - self.story.setMetadata('author', author) - self.story.setMetadata('authorId', author) + self.story.setMetadata('author', author.get_text()) + self.story.setMetadata('authorId', author.get_text()) + self.story.setMetadata('authorUrl', author['href']) chapter_info = soup.select_one('.chapter-wrapper') date = makeDate(chapter_info.select_one('.update-time').get_text(), self.DATE_FORMAT)