add more textless regex, fix bug in alphabetized uniqueness checker

main
xenofem 2024-02-07 17:12:02 -05:00
parent 7ab32041c8
commit 51243aca6e
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ 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')
TEXTLESS_REGEX = re.compile('(台詞|セリフ|テキスト|文字)(な|無)し|notext|textless')
EPILOGUE_REGEX = re.compile('after|後日談')
ALT_VERSIONS = [
'褐色',
@ -310,7 +310,7 @@ def alphabetic_numbering(entries, start_point):
if len(ending) > 1:
return None
index = 0 if ending == '' else ord(ending.lower()) - ord('a')
if index in alphabetized:
if (index,) in alphabetized:
return None
alphabetized[(index,)] = [entry]
indices = list(alphabetized.keys())