add and apply util method is_interesting_file

This commit is contained in:
Leeingnyo
2021-01-26 04:14:17 +09:00
parent c51cb28df2
commit 2b0cf41336
3 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class Title
@title_ids << title.id
next
end
if [".zip", ".cbz", ".rar", ".cbr"].includes? (File.extname path).downcase
if is_interesting_file path
entry = Entry.new path, self
@entries << entry if entry.pages > 0 || entry.err_msg
end