[eporner] detect 'Age Verification' pages (#9064)

This commit is contained in:
Mike Fährmann
2026-02-14 22:13:36 +01:00
parent 5548cff730
commit a51cd7d77c

View File

@@ -23,6 +23,8 @@ class EpornerGalleryExtractor(GalleryExtractor):
GalleryExtractor.__init__(self, match, url)
def metadata(self, page):
if page.find("Age Verification<", 0, 240) >= 0:
raise self.exc.AuthRequired("Age Verification", "gallery")
title = text.extr(page, "<title>", " - EPORNER</title>")
if title.endswith(" Photo Gallery"):
title = title[:-14]