mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-09 05:21:13 +02:00
Report site unavailable for AO3. Closes #908
This commit is contained in:
parent
db39aaf4ff
commit
346da2cdee
1 changed files with 4 additions and 0 deletions
|
|
@ -164,6 +164,10 @@ class ArchiveOfOurOwnOrgAdapter(BaseSiteAdapter):
|
|||
logger.info("metaurl: "+metaurl)
|
||||
|
||||
data = self.get_request(url)
|
||||
if '<h2 class="heading">Error 503 - Service unavailable</h2>' in data:
|
||||
# note that it's not *actually* a 503 code...
|
||||
raise exceptions.FailedToDownload('Site is currently unavailable.')
|
||||
|
||||
meta = self.get_request(metaurl)
|
||||
|
||||
if 'This work is part of an ongoing challenge and will be revealed soon!' in meta:
|
||||
|
|
|
|||
Loading…
Reference in a new issue