[subscribestar] detect redirects to '/age_confirmation_warning' pages

This commit is contained in:
Mike Fährmann
2025-03-22 11:42:50 +01:00
parent 4807bc215c
commit af57ab3233

View File

@@ -57,7 +57,9 @@ class SubscribestarExtractor(Extractor):
while True:
response = Extractor.request(self, url, **kwargs)
if response.history and "/verify_subscriber" in response.url:
if response.history and (
"/verify_subscriber" in response.url or
"/age_confirmation_warning" in response.url):
raise exception.StopExtraction(
"HTTP redirect to %s", response.url)