mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 17:02:43 +01:00
base_otw_adapter: Detect & report 'This site is in beta' page
This commit is contained in:
parent
d854733ffa
commit
ab7198bb8f
1 changed files with 3 additions and 0 deletions
|
|
@ -147,6 +147,9 @@ class BaseOTWAdapter(BaseSiteAdapter):
|
||||||
# note that it's not *actually* a 503 code...
|
# note that it's not *actually* a 503 code...
|
||||||
raise exceptions.FailedToDownload('Site is currently unavailable.')
|
raise exceptions.FailedToDownload('Site is currently unavailable.')
|
||||||
|
|
||||||
|
if 'This site is in beta. Things may break or crash without notice.' in data:
|
||||||
|
raise exceptions.FailedToDownload('Page failed to load, reported "This site is in beta".')
|
||||||
|
|
||||||
meta = self.get_request(metaurl)
|
meta = self.get_request(metaurl)
|
||||||
|
|
||||||
if 'This work is part of an ongoing challenge and will be revealed soon!' in meta:
|
if 'This work is part of an ongoing challenge and will be revealed soon!' in meta:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue