Skip to content

Commit

Permalink
Update bookdir2pdf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaid committed Jul 6, 2020
1 parent 6e24b18 commit 7d5ff0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bookdir2pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ def dir_path(string):

# Test if it should be ignored, and if so, fully ignore it
if p_ext in ignored_file_exts:
print("Ignoring file: '{}'".format(p))
if p_ext not in rename_exts:
# Don't print if it's a rename file (not really ignoring per-se)
print("Ignoring file: '{}'".format(p))
continue

page_list.append(p)
Expand Down

0 comments on commit 7d5ff0d

Please sign in to comment.