mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-04-25 00:11:21 +02:00
Allow Anonymous author for quotev.com.
This commit is contained in:
parent
4ac6c3dfdd
commit
1553bd2fac
1 changed files with 5 additions and 0 deletions
|
|
@ -77,6 +77,11 @@ class QuotevComAdapter(BaseSiteAdapter):
|
|||
self.story.addToList('author', author)
|
||||
self.story.addToList('authorId', get_url_path_segments(a['href'])[0])
|
||||
self.story.addToList('authorUrl', urlparse.urljoin(self.url, a['href']))
|
||||
else:
|
||||
self.story.setMetadata('author','Anonymous')
|
||||
self.story.setMetadata('authorUrl','http://www.quotev.com')
|
||||
self.story.setMetadata('authorId','0')
|
||||
|
||||
|
||||
self.setDescription(self.url, soup.find('div', id='qdesct'))
|
||||
self.setCoverImage(self.url, urlparse.urljoin(self.url, soup.find('img', {'class': 'logo'})['src']))
|
||||
|
|
|
|||
Loading…
Reference in a new issue