Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
update merge to support other arcs
Browse files Browse the repository at this point in the history
  • Loading branch information
smallketchup82 committed Nov 4, 2023
1 parent cffb139 commit 4b24cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def format_chapter_range(chapters):
# Merge all of the files into a single file
if args.merge:
print(Fore.YELLOW + "\n[-] " + "Merging files...")
with open(os.path.join(originaloutputdir, f"Arc 7 Chapter(s) {format_chapter_range(chapters)} Summary.txt"), "w", encoding="utf-8") as outfile:
with open(os.path.join(originaloutputdir, f"Arc {arcnumber} Chapter(s) {format_chapter_range(chapters)} Summary.txt"), "w", encoding="utf-8") as outfile:
for chapter in chapters:
with open(os.path.join(outputdir, f"Chapter {chapter} Summary.txt"), "r", encoding="utf-8") as infile:
outfile.write(infile.read())
Expand Down

0 comments on commit 4b24cfc

Please sign in to comment.