From a97af94f8a4e52f21459641cda1326413399366d Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 9 Jul 2025 08:11:20 -0500 Subject: [PATCH] OTW/AO3 - change to 'need to login' text, accept both old and new and another string. #1229 --- fanficfare/adapters/base_otw_adapter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fanficfare/adapters/base_otw_adapter.py b/fanficfare/adapters/base_otw_adapter.py index d1917aab..8a2b2dae 100644 --- a/fanficfare/adapters/base_otw_adapter.py +++ b/fanficfare/adapters/base_otw_adapter.py @@ -93,7 +93,8 @@ class BaseOTWAdapter(BaseSiteAdapter): def needToLoginCheck(self, data): if 'This work is only available to registered users of the Archive.' in data \ or "The password or user name you entered doesn't match our records" in data \ - or "Sorry, you don't have permission to access the page you were trying to reach. Please log in." in data: + or "have permission to access the page you were trying to reach. Please log in." in data \ + or '

With an AO3 account, you can:

' in data: return True else: return False