Compare commits

..

No commits in common. "b7b989433a9cabf509d1f120363ebd02ff6f4f51" and "7726af7dabdd3c8f844fb45a9a5dd24ebce03d94" have entirely different histories.

View file

@ -47,8 +47,8 @@ LANGUAGE_REGEXES = {
} }
TEXTLESS_REGEX = re.compile('(台詞|セリフ|せりふ|テキスト|文字)((な|無)し|抜き)|notext|textless', re.I) TEXTLESS_REGEX = re.compile('(台詞|セリフ|せりふ|テキスト|文字)((な|無)し|抜き)|notext|textless', re.I)
FRONT_COVER_REGEX = re.compile('(?<!裏)表紙(?!裏)|(?<!back[-_ ])(?<!back)cover|(?<!ura[-_ ])(?<!ura)hyoush?i(?![-_ ]?ura)', re.I) FRONT_COVER_REGEX = re.compile('(^|[^裏])表紙|cover|hyoushi', re.I)
BACK_COVER_REGEX = re.compile('裏表紙|hyoush?i[-_ ]?ura|ura[-_ ]?hyoush?i', re.I) BACK_COVER_REGEX = re.compile('裏表紙', re.I)
BONUS_REGEX = re.compile('設定|キャラ|特典|ポスター', re.I) BONUS_REGEX = re.compile('設定|キャラ|特典|ポスター', re.I)
EPILOGUE_REGEX = re.compile('after|後日談|おまけ', re.I) EPILOGUE_REGEX = re.compile('after|後日談|おまけ', re.I)
SPLITS = [ SPLITS = [
@ -266,8 +266,6 @@ class Collator:
self.index = 0 self.index = 0
def collate_from_paths(self, srcs): def collate_from_paths(self, srcs):
srcs = [src for src in srcs if len(descendant_files_ignore(src, self.exclude)) > 0]
if len(srcs) == 1 and srcs[0].is_dir(): if len(srcs) == 1 and srcs[0].is_dir():
return self.collate_from_paths(ls_ignore(srcs[0], self.exclude)) return self.collate_from_paths(ls_ignore(srcs[0], self.exclude))