From 2ee0c49b3d82b4f1e6a775d641c9bab316ee28a1 Mon Sep 17 00:00:00 2001 From: xenofem Date: Thu, 8 Feb 2024 00:06:30 -0500 Subject: [PATCH] add more cover regex, make all the regexes case-insensitive --- dlibrary/dlibrary.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index 6e65aa6..645e2e4 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -26,10 +26,10 @@ DLSITE_ID_REGEX = re.compile('^[BR]J[0-9]+$') FANZA_ID_REGEX = re.compile('^d_[0-9]+$') FAKKU_ID_REGEX = re.compile('.*_FAKKU$') -TEXTLESS_REGEX = re.compile('(台詞|セリフ|テキスト|文字)((な|無)し|抜き)|notext|textless') -EPILOGUE_REGEX = re.compile('after|後日談') -HI_RES_REGEX = re.compile('高解像度') -COVER_REGEX = re.compile('表紙|cover') +TEXTLESS_REGEX = re.compile('(台詞|セリフ|テキスト|文字)((な|無)し|抜き)|notext|textless', re.IGNORECASE) +EPILOGUE_REGEX = re.compile('after|後日談', re.IGNORECASE) +HI_RES_REGEX = re.compile('高解像度', re.IGNORECASE) +COVER_REGEX = re.compile('表紙|cover|hyoushi', re.IGNORECASE) ALT_VERSIONS = [ '褐色', '日焼け',