Commit files I missed with the previous commit.

This commit is contained in:
karamanolev
2011-10-25 11:54:20 +00:00
parent c4cdfc58f2
commit a71f86b680
3 changed files with 2658 additions and 2631 deletions

View File

@@ -1,50 +1,51 @@
using System; using System;
using System.Collections.Generic;
using System.Text;
using System.IO; using System.IO;
using CUETools.Processor; using CUETools.Processor;
namespace ArCueDotNet namespace ArCueDotNet
{ {
class Program class Program
{ {
static void Main(string[] args) static void Main(string[] args)
{ {
if (args.Length != 1) if (args.Length != 1)
{ {
Console.WriteLine("Usage: ArCueDotNet <filename>"); Console.WriteLine("Usage: ArCueDotNet <filename>");
return; return;
} }
string pathIn = args[0]; string pathIn = args[0];
if (!File.Exists(pathIn)) if (!File.Exists(pathIn))
{ {
Console.WriteLine("Input CUE Sheet not found."); Console.WriteLine("Input CUE Sheet not found.");
return; return;
} }
CUEConfig config = new CUEConfig(); CUEConfig config = new CUEConfig();
config.writeArLogOnVerify = false; config.writeArLogOnVerify = false;
config.writeArTagsOnVerify = false; config.writeArTagsOnVerify = false;
config.autoCorrectFilenames = true; config.autoCorrectFilenames = true;
config.extractAlbumArt = false; config.extractAlbumArt = false;
config.embedAlbumArt = false; config.embedAlbumArt = false;
StringWriter sw = new StringWriter();
try string accurateRipLog;
{ try
CUESheet cueSheet = new CUESheet(config); {
cueSheet.Action = CUEAction.Verify; CUESheet cueSheet = new CUESheet(config);
//cueSheet.OutputStyle = CUEStyle.SingleFile; cueSheet.Action = CUEAction.Verify;
cueSheet.Open(pathIn); //cueSheet.OutputStyle = CUEStyle.SingleFile;
cueSheet.UseAccurateRip(); cueSheet.Open(pathIn);
cueSheet.GenerateFilenames(AudioEncoderType.NoAudio, "dummy", pathIn); cueSheet.UseAccurateRip();
cueSheet.Go(); cueSheet.GenerateFilenames(AudioEncoderType.NoAudio, "dummy", pathIn);
cueSheet.GenerateAccurateRipLog(sw); cueSheet.Go();
}
catch (Exception ex) accurateRipLog = CUESheetLogWriter.GetAccurateRipLog(cueSheet);
{ }
Console.WriteLine("Error: " + ex.Message); catch (Exception ex)
} {
sw.Close(); Console.WriteLine("Error: " + ex.Message);
Console.Write(sw.ToString()); return;
} }
}
Console.Write(accurateRipLog);
}
}
} }

View File

@@ -165,10 +165,7 @@ namespace JDP
} }
else if (useAR) else if (useAR)
{ {
StringWriter sw = new StringWriter(); textBox1.Text += CUESheetLogWriter.GetAccurateRipLog(cueSheet);
cueSheet.GenerateAccurateRipLog(sw);
textBox1.Text += sw.ToString();
sw.Close();
textBox1.Show(); textBox1.Show();
} }
textBox1.Text += "----------------------------------------------------------\r\n"; textBox1.Text += "----------------------------------------------------------\r\n";

File diff suppressed because it is too large Load Diff