mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
reorganizing a bit
This commit is contained in:
48
CUETools.ARCUE/Program.cs
Normal file
48
CUETools.ARCUE/Program.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using CUETools.Processor;
|
||||
|
||||
namespace ArCueDotNet
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
if (args.Length != 1)
|
||||
{
|
||||
Console.WriteLine("Usage: ArCueDotNet <filename>");
|
||||
return;
|
||||
}
|
||||
string pathIn = args[0];
|
||||
if (!File.Exists(pathIn))
|
||||
{
|
||||
Console.WriteLine("Input CUE Sheet not found.");
|
||||
return;
|
||||
}
|
||||
CUEConfig config = new CUEConfig();
|
||||
config.writeArLogOnVerify = false;
|
||||
config.writeArTagsOnVerify = false;
|
||||
config.autoCorrectFilenames = true;
|
||||
StringWriter sw = new StringWriter();
|
||||
try
|
||||
{
|
||||
CUESheet cueSheet = new CUESheet(config);
|
||||
cueSheet.Action = CUEAction.Verify;
|
||||
//cueSheet.OutputStyle = CUEStyle.SingleFile;
|
||||
cueSheet.Open(pathIn);
|
||||
cueSheet.UseAccurateRip();
|
||||
cueSheet.GenerateFilenames(AudioEncoderType.NoAudio, "dummy", pathIn);
|
||||
cueSheet.Go();
|
||||
cueSheet.GenerateAccurateRipLog(sw);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine("Error: " + ex.Message);
|
||||
}
|
||||
sw.Close();
|
||||
Console.Write(sw.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user