Skip to content

Commit

Permalink
fix: overlapping variable name in download function
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMysterius committed Feb 3, 2023
1 parent 1a6a760 commit 4c34884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export async function download(
start: Chapter,
end: Chapter,
current: Chapter | null = null,
archive = true
doArchive = true
) {
const BASE_FOLDER_PATH = join(folder_path, mangaIndexName);
Deno.mkdirSync(BASE_FOLDER_PATH, { recursive: true });
Expand Down Expand Up @@ -129,7 +129,7 @@ export async function download(
Deno.stdout.write(new TextEncoder().encode(`${Color.white(" Done |")} ${Color.yellow("Writing Metadata")}`));
if (!writeComicInfo(CHAPTER_PATH, metadata, current, pages)) return false;
Deno.stdout.write(new TextEncoder().encode(`${Color.white(" Done |")} ${Color.magenta("Archiving")}`));
if (archive && !(await archive(CHAPTER_PATH, `${CHAPTER_PATH}.cb7`))) return false;
if (doArchive && !(await archive(CHAPTER_PATH, `${CHAPTER_PATH}.cb7`))) return false;
Deno.stdout.write(new TextEncoder().encode(`${Color.white(" Done |\n")}`));

if (chapter.raw == end.raw) break;
Expand Down

0 comments on commit 4c34884

Please sign in to comment.