mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CTDB 2.0
This commit is contained in:
@@ -223,29 +223,10 @@ namespace AudioDataPlugIn
|
||||
form.ShowDialog();
|
||||
sw.WriteLine("[CTDB TOCID: {0}] {1}{2}",
|
||||
TOC.TOCID,
|
||||
ctdb.DBStatus ?? "found",
|
||||
(ctdb.SubStatus == null) ? "" : (", Submit result: " + ctdb.SubStatus));
|
||||
foreach (DBEntry entry in ctdb.Entries)
|
||||
{
|
||||
string confFormat = (ctdb.Total < 10) ? "{0:0}/{1:0}" :
|
||||
(ctdb.Total < 100) ? "{0:00}/{1:00}" : "{0:000}/{1:000}";
|
||||
string conf = string.Format(confFormat, entry.conf, ctdb.Total);
|
||||
string dataTrackInfo = !entry.toc[entry.toc.TrackCount].IsAudio ? string.Format("CD-Extra data track length {0}", entry.toc[entry.toc.TrackCount].LengthMSF) :
|
||||
!entry.toc[1].IsAudio ? string.Format("Playstation type data track length {0}", entry.toc[1].LengthMSF) : "Has no data track";
|
||||
string status =
|
||||
entry.toc.Pregap != TOC.Pregap ? string.Format("Has pregap length {0}", CDImageLayout.TimeToString(entry.toc.Pregap)) :
|
||||
entry.toc.AudioLength != TOC.AudioLength ? string.Format("Has audio length {0}", CDImageLayout.TimeToString(entry.toc.AudioLength)) :
|
||||
((entry.toc.TrackOffsets != TOC.TrackOffsets) ? dataTrackInfo + ", " : "") +
|
||||
((!entry.hasErrors) ? "Accurately ripped" :
|
||||
//((!entry.hasErrors) ? string.Format("Accurately ripped, offset {0}", -entry.offset) :
|
||||
entry.canRecover ? string.Format("Differs in {0} samples @{1}", entry.repair.CorrectableErrors, entry.repair.AffectedSectors) :
|
||||
(entry.httpStatus == 0 || entry.httpStatus == HttpStatusCode.OK) ? "No match" :
|
||||
entry.httpStatus.ToString());
|
||||
sw.WriteLine("[{0:x8}] ({1}) {2}",
|
||||
entry.crc,
|
||||
conf,
|
||||
status);
|
||||
}
|
||||
ctdb.DBStatus ?? "found");
|
||||
if (ctdb.SubStatus != null)
|
||||
sw.WriteLine("Submit result: " + ctdb.SubStatus);
|
||||
ctdb.GenerateLog(sw, false);
|
||||
bool canFix = false;
|
||||
if (ctdb.QueryExceptionStatus == WebExceptionStatus.Success)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user