Compare commits
No commits in common. "287686da78be1707b4b43e33a014ee73dc7487f2" and "02671ca2a972fbe23b9252e0377c7be9c3489ce1" have entirely different histories.
287686da78
...
02671ca2a9
|
@ -66,7 +66,7 @@ FXLESS_REGEX = re.compile('効果音(な|無)し', re.I)
|
|||
FRONT_COVER_REGEX = re.compile('(?<!裏)表紙(?!裏)|(?<!back[-_ ])(?<!back)cover|(?<!ura[-_ ])(?<!ura)hyou?sh?i(?![-_ ]?ura)', re.I)
|
||||
BACK_COVER_REGEX = re.compile('裏表紙|hyou?sh?i[-_ ]?ura|ura[-_ ]?hyou?sh?i', re.I)
|
||||
BONUS_REGEX = re.compile('設定|キャラ|特典|ポスター|bonus', re.I)
|
||||
EPILOGUE_REGEX = re.compile('after|後日談|おまけ|omake', re.I)
|
||||
EPILOGUE_REGEX = re.compile('after|後日談|おまけ', re.I)
|
||||
AFTERWORD_REGEX = re.compile('あとがき', re.I)
|
||||
SPLITS = [
|
||||
{ 'later': TEXTLESS_REGEX },
|
||||
|
@ -552,7 +552,7 @@ class Collator:
|
|||
file_path = self.dest / f'{idx:04d}.{image["ext"]}'
|
||||
with open(file_path, 'wb') as f:
|
||||
f.write(image["image"])
|
||||
count_progress(idx - self.index, len(image_extractors), 'pages collated')
|
||||
count_progress(idx, len(image_extractors), 'pages collated')
|
||||
|
||||
self.index += pdf.page_count
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue