From 193bb3ed617fdae7db2eedaf65d7e22387efde98 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 20 Dec 2025 19:40:54 -0600 Subject: [PATCH] AO3: Site changed 'don't have permission' string --- fanficfare/adapters/base_otw_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficfare/adapters/base_otw_adapter.py b/fanficfare/adapters/base_otw_adapter.py index e561ff20..068f0d01 100644 --- a/fanficfare/adapters/base_otw_adapter.py +++ b/fanficfare/adapters/base_otw_adapter.py @@ -237,7 +237,7 @@ class BaseOTWAdapter(BaseSiteAdapter): 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 '
Sorry, you don't have permission to access the page you were trying to reach.
' in data: + if re.search(r'
Sorry, you don(\'|')t have permission to access the page you were trying to reach.
', data): # note that it's not *actually* a 503 code... raise exceptions.FailedToDownload('Site says: "Sorry, you don\'t have permission to access the page you were trying to reach."')