From 19e74ba90f96466fd7d708452b48dca292ec73d2 Mon Sep 17 00:00:00 2001 From: xenofem Date: Sun, 14 Apr 2024 22:06:43 -0400 Subject: [PATCH] i think it looks better --- dlibrary/dlibrary.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index 0f73a8e..b4da5cd 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -40,10 +40,13 @@ NO_TONE_REGEX = re.compile('トーン(効果)?[な無]し|グレースケール' TONE_REGEX = re.compile('トーン(版|(効果)?[有あ]り)', re.I) COLOR_REGEX = re.compile('カラー', re.I) MONOCHROME_REGEX = re.compile('モノクロ', re.I) +MOSAIC_REGEX = re.compile('モザイク', re.I) +BLACKBAR_REGEX = re.compile('墨消し', re.I) IMAGE_QUALITY_REGEXES = [ { 'better': HI_RES_REGEX }, { 'better': NO_TONE_REGEX, 'worse': TONE_REGEX }, { 'better': COLOR_REGEX, 'worse': MONOCHROME_REGEX }, + { 'better': BLACKBAR_REGEX, 'worse': MOSAIC_REGEX }, ] IMAGE_RESOLUTION_REGEX = re.compile('^(?P[0-9]+)x(?P[0-9]+)$')