From 1adabbe5e66ca25e2c9248d8d7701170eed387cd Mon Sep 17 00:00:00 2001 From: xenofem Date: Tue, 13 Feb 2024 10:29:50 -0500 Subject: [PATCH] handle concept art type bonus stuff --- dlibrary/dlibrary.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index 07a584b..f854eed 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -27,6 +27,7 @@ FANZA_ID_REGEX = re.compile('^d_[0-9]+$') FAKKU_ID_REGEX = re.compile('.*_FAKKU$') TEXTLESS_REGEX = re.compile('(台詞|セリフ|せりふ|テキスト|文字)((な|無)し|抜き)|notext|textless', re.IGNORECASE) +BONUS_REGEX = re.compile('設定', re.IGNORECASE) EPILOGUE_REGEX = re.compile('after|後日談|おまけ', re.IGNORECASE) HI_RES_REGEX = re.compile('高解像度', re.IGNORECASE) FRONT_COVER_REGEX = re.compile('(^|[^裏])表紙|cover|hyoushi', re.IGNORECASE) @@ -533,6 +534,10 @@ def collate_from_paths(srcs, dest, start_index, exclude): if cover_split != False: return cover_split + bonus_split = try_collate_split_regex(srcs, dest, start_index, exclude, later=BONUS_REGEX) + if bonus_split != False: + return bonus_split + epilogue_split = try_collate_split_regex(srcs, dest, start_index, exclude, later=EPILOGUE_REGEX) if epilogue_split != False: return epilogue_split