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