Files
cuetools.net/CUETools.ARCUE/Program.cs
chudov 64ddb2cf31 * CUERipper: was still sometimes locking drives it didn't need to
* ArCueDotNet: don't search for cover art
* 'Silent track' diagnostics in AR log
* LAME.dll: settings were not used
* libwavpack: settings were not used (MD5Sum & extra mode)
* workarounds for various Mono bugs
* Path formatting: %discnumber% produces two-digit numbers if %totaldiscs% > 9
* Overwrite dialog: list files, 'remember the choice' option
* Doesn't abort on broken Artwork files
* Better locates files in some complicated cases, e.g. when only some tracks have tracknumber tags
* Folder browser now sorts contents, because OS didn't do it when browsing external drives etc
2010-06-11 17:54:37 +00:00

51 lines
1.2 KiB
C#

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;
config.extractAlbumArt = false;
config.embedAlbumArt = false;
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());
}
}
}