From 7c63e0bed9c605f0ce35eef4b05d68676bb0ed29 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Fri, 15 Nov 2024 12:15:46 +0100 Subject: backend/plugins: Have exhentai assume no censorship for non-h Non-H usually has nothing to censor, so this should be a safe default. We have not come across anything where this would have been a false positive. --- src/hircine/plugins/scrapers/handlers/exhentai.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/hircine/plugins/scrapers/handlers/exhentai.py b/src/hircine/plugins/scrapers/handlers/exhentai.py index 33733be..7bffc4f 100644 --- a/src/hircine/plugins/scrapers/handlers/exhentai.py +++ b/src/hircine/plugins/scrapers/handlers/exhentai.py @@ -59,6 +59,9 @@ class ExHentaiHandler: yield Censorship(enums.Censorship.NONE) else: yield Censorship(enums.Censorship.BAR) + else: + if not self.has_censorship_tag: + yield Censorship(enums.Censorship.NONE) if self.is_likely_rtl: yield Direction(enums.Direction.RIGHT_TO_LEFT) -- cgit v1.2.3-2-gb3c3