mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-08 17:12:51 +01:00
Include status 'Hiatus' for adapter_royalroadcom.
This commit is contained in:
parent
e0d83ce545
commit
10fa02be11
1 changed files with 3 additions and 1 deletions
|
|
@ -207,8 +207,10 @@ class RoyalRoadAdapter(BaseSiteAdapter):
|
|||
for label in [stripHTML(a) for a in soup.find_all('span', {'class':'label'})]:
|
||||
if 'COMPLETED' == label:
|
||||
self.story.setMetadata('status', 'Completed')
|
||||
elif ('ONGOING' == label) or ('HIATUS' == label):
|
||||
elif 'ONGOING' == label:
|
||||
self.story.setMetadata('status', 'In-Progress')
|
||||
elif 'HIATUS' == label:
|
||||
self.story.setMetadata('status', 'Hiatus')
|
||||
elif 'Fan Fiction' == label:
|
||||
self.story.addToList('category', 'FanFiction')
|
||||
elif 'Original' == label:
|
||||
|
|
|
|||
Loading…
Reference in a new issue