From af57ab323302ad295dbda51febf14746923c1f2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 22 Mar 2025 11:42:50 +0100 Subject: [PATCH] [subscribestar] detect redirects to '/age_confirmation_warning' pages --- gallery_dl/extractor/subscribestar.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/subscribestar.py b/gallery_dl/extractor/subscribestar.py index b8025180..5d0ec46e 100644 --- a/gallery_dl/extractor/subscribestar.py +++ b/gallery_dl/extractor/subscribestar.py @@ -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)