fixing issue with comics after uppercase format change

This commit is contained in:
John Andrews
2022-08-09 13:11:40 +12:00
parent 6a4a7bdb9d
commit f143cec1f2

View File

@@ -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);