Add comment that chireads.com and wuxiaworld.com don't seem to have authorUrl links.

This commit is contained in:
Jim Miller 2020-09-16 12:06:33 -05:00
parent d1fb0d0d3c
commit 5bb53b83ae
2 changed files with 3 additions and 1 deletions

View file

@ -88,6 +88,7 @@ class ChireadsComSiteAdapter(BaseSiteAdapter):
# author = stripHTML(info.h6).split('\xa0')[0].replace(u'Auteur : ', '', 1)
self.story.setMetadata('author', author)
self.story.setMetadata('authorId', author)
## site doesn't have authorUrl links.
datestr = stripHTML(soup.select_one('.newestchapitre > div > a')['href'])[-11:-1]
date = makeDate(datestr, '%Y/%m/%d')

View file

@ -94,7 +94,8 @@ class WuxiaWorldComSiteAdapter(BaseSiteAdapter):
self.story.setMetadata('authorId', author_name.lower())
self.story.setMetadata('title', ld['name'])
self.story.setMetadata('datePublished', self._parse_date(ld['datePublished']))
## site doesn't have authorUrl links.
tags = [stripHTML(a) for a in soup.select('.media-body .tags a')]
for tag in tags:
if 'Completed' == tag: