add more textless regex, fix bug in alphabetized uniqueness checker
This commit is contained in:
parent
7ab32041c8
commit
51243aca6e
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue