OTW/AO3 - change to 'need to login' text, accept both old and new and another string. #1229

This commit is contained in:
Jim Miller 2025-07-09 08:11:20 -05:00
parent e2ea97e99a
commit a97af94f8a

View file

@ -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 '<h4 class="heading">With an AO3 account, you can:</h4>' in data:
return True
else:
return False