From 0b159ebba7dd4715306321355df3e005ceea2b1a Mon Sep 17 00:00:00 2001 From: xenofem Date: Sat, 4 May 2024 17:33:20 -0400 Subject: [PATCH] more regex --- dlibrary/dlibrary.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index 3e8b429..ae7b0c1 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -38,7 +38,7 @@ DLSITE_ID_REGEX = re.compile('^[BR]J[0-9]+$') FANZA_ID_REGEX = re.compile('^d_[0-9]+$') FAKKU_ID_REGEX = re.compile('.*_FAKKU$') -HI_RES_REGEX = re.compile('高解像度|原寸|大サイズ', re.I) +HI_RES_REGEX = re.compile('高解像度|原寸|実寸|大サイズ', re.I) NO_TONE_REGEX = re.compile('トーン(効果)?[な無]し|グレー?スケ', re.I) TONE_REGEX = re.compile('トーン($|版|(効果)?[有あ]り)', re.I) COLOR_REGEX = re.compile('カラー', re.I) @@ -47,6 +47,7 @@ MOSAIC_REGEX = re.compile('モザイク', re.I) BLACKBAR_REGEX = re.compile('墨消し', re.I) IMAGE_QUALITY_REGEXES = [ { 'better': HI_RES_REGEX }, + { 'better': re.compile('^大|L|L$'), 'worse': re.compile('^小|S|S$') }, { 'better': NO_TONE_REGEX, 'worse': TONE_REGEX }, { 'better': COLOR_REGEX, 'worse': MONOCHROME_REGEX }, { 'better': BLACKBAR_REGEX, 'worse': MOSAIC_REGEX }, @@ -66,7 +67,7 @@ FXLESS_REGEX = re.compile('効果音(な|無)し', re.I) FRONT_COVER_REGEX = re.compile('(?