From f143cec1f209d8854c5f5edb8a284d1dac44dc1c Mon Sep 17 00:00:00 2001 From: John Andrews Date: Tue, 9 Aug 2022 13:11:40 +1200 Subject: [PATCH] fixing issue with comics after uppercase format change --- ComicNodes/Comics/ComicConverter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ComicNodes/Comics/ComicConverter.cs b/ComicNodes/Comics/ComicConverter.cs index 58e65885..e3b35157 100644 --- a/ComicNodes/Comics/ComicConverter.cs +++ b/ComicNodes/Comics/ComicConverter.cs @@ -101,11 +101,11 @@ public class ComicConverter: Node { string file = Path.Combine(args.TempPath, Guid.NewGuid().ToString() + "." + format); args.Logger?.ILog("Creating comic: " + file); - if (format == "cbz") + if (format == "CBZ") Helpers.ZipHelper.Compress(args, directory, file); - //else if (format == "cb7") + //else if (format == "CB7") // Helpers.SevenZipHelper.Compress(args, directory, file + ".7z"); - else if (format == "pdf") + else if (format == "PDF") Helpers.PdfHelper.Create(args, directory, file); else throw new Exception("Unknown format:" + format);