From 770c9fa16702a59822b0270ae21acbf047a251c6 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 9 Sep 2022 10:24:06 -0500 Subject: [PATCH] AO3: Detect 'This work is part of an ongoing challenge and will be revealed soon!' --- fanficfare/adapters/adapter_archiveofourownorg.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fanficfare/adapters/adapter_archiveofourownorg.py b/fanficfare/adapters/adapter_archiveofourownorg.py index 98d7625e..bdb8dfbc 100644 --- a/fanficfare/adapters/adapter_archiveofourownorg.py +++ b/fanficfare/adapters/adapter_archiveofourownorg.py @@ -166,6 +166,9 @@ class ArchiveOfOurOwnOrgAdapter(BaseSiteAdapter): data = self.get_request(url) meta = self.get_request(metaurl) + if 'This work is part of an ongoing challenge and will be revealed soon!' in meta: + raise exceptions.FailedToDownload('Site says: "This work is part of an ongoing challenge and will be revealed soon!"') + if "This work could have adult content. If you proceed you have agreed that you are willing to see such content." in meta: if self.addurl: ## "?view_adult=true" doesn't work on base story