Exemple #1
0
        public void SetOutputFilename(string outFileName)
        {
            outputFileName = PathLib.ReplaceExtension(outFileName, ".m4b");
            outDir         = Path.GetDirectoryName(outputFileName);

            if (File.Exists(outputFileName))
            {
                File.Delete(outputFileName);
            }
        }
 public bool Step4_CreateNfo()
 {
     // not a critical step. its failure should not prevent future steps from running
     try
     {
         File.WriteAllText(PathLib.ReplaceExtension(OutputFileName, ".nfo"), NFO.CreateContents(AppName, aaxFile, downloadLicense.ChapterInfo));
     }
     catch (Exception ex)
     {
         Serilog.Log.Logger.Error(ex, $"{nameof(Step4_CreateNfo)}. FAILED");
     }
     return(!isCanceled);
 }
Exemple #3
0
 private string outputFileWithNewExt(string extension) => PathLib.ReplaceExtension(outputFileName, extension);