mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-23 01:04:44 +01:00
Add status to webnovelcom (#306)
This commit is contained in:
parent
8ca3490c47
commit
b58ca0f4f2
1 changed files with 6 additions and 0 deletions
|
|
@ -127,6 +127,12 @@ class WWWWebNovelComAdapter(BaseSiteAdapter):
|
|||
tag.extract()
|
||||
self.story.setMetadata('title', stripHTML(title))
|
||||
|
||||
detail_txt = stripHTML(bookdetails.find('p', {'class': '_detail'}))
|
||||
if "Completed" in detail_txt:
|
||||
self.story.setMetadata('status', 'Completed')
|
||||
else:
|
||||
self.story.setMetadata('status', 'In-Progress')
|
||||
|
||||
meta_tag = bookdetails.find('address').p
|
||||
meta_txt = stripHTML(meta_tag)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue