mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-05 15:44:14 +01:00
For lierotica.com, throw a StoryDoesNotExist exception for 'This submission is awaiting moderator's approval'
This commit is contained in:
parent
bda62aab9f
commit
6d423e586f
1 changed files with 3 additions and 0 deletions
|
|
@ -144,6 +144,9 @@ class LiteroticaSiteAdapter(BaseSiteAdapter):
|
|||
else:
|
||||
raise e
|
||||
|
||||
if "This submission is awaiting moderator's approval" in data1:
|
||||
raise exceptions.StoryDoesNotExist("This submission is awaiting moderator's approval. %s"%self.url)
|
||||
|
||||
# author
|
||||
a = soup1.find("span", "b-story-user-y")
|
||||
self.story.setMetadata('authorId', urlparse.parse_qs(a.a['href'].split('?')[1])['uid'][0])
|
||||
|
|
|
|||
Loading…
Reference in a new issue