mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUETools.Processor: split classes into separate files.
This commit is contained in:
@@ -4,7 +4,7 @@ using System.ComponentModel;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Xml.Serialization;
|
||||
using CUETools.CDImage;
|
||||
using CUETools.Processor.Settings;
|
||||
|
||||
namespace CUETools.Processor
|
||||
{
|
||||
@@ -330,48 +330,4 @@ namespace CUETools.Processor
|
||||
return isVarious;
|
||||
}
|
||||
}
|
||||
|
||||
public class CUETrackMetadata
|
||||
{
|
||||
public CUETrackMetadata()
|
||||
{
|
||||
Artist = "";
|
||||
Title = "";
|
||||
ISRC = "";
|
||||
}
|
||||
[DefaultValue("")]
|
||||
public string Artist { get; set; }
|
||||
[DefaultValue("")]
|
||||
public string Title { get; set; }
|
||||
[DefaultValue("")]
|
||||
public string ISRC { get; set; }
|
||||
}
|
||||
|
||||
public class CUEMetadataEntry
|
||||
{
|
||||
public CUEMetadata metadata { get; set; }
|
||||
public CDImageLayout TOC { get; set; }
|
||||
public string ImageKey { get; set; }
|
||||
|
||||
public CUEMetadataEntry(CUEMetadata metadata, CDImageLayout TOC, string key)
|
||||
{
|
||||
this.metadata = new CUEMetadata(metadata);
|
||||
this.TOC = TOC;
|
||||
this.ImageKey = key;
|
||||
}
|
||||
|
||||
public CUEMetadataEntry(CDImageLayout TOC, string key)
|
||||
: this(new CUEMetadata(TOC.TOCID, (int)TOC.AudioTracks), TOC, key)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{0}{1} - {2}{3}{4}", metadata.Year != "" ? metadata.Year + ": " : "",
|
||||
metadata.Artist == "" ? "Unknown Artist" : metadata.Artist,
|
||||
metadata.Title == "" ? "Unknown Title" : metadata.Title,
|
||||
metadata.DiscNumberAndName == "" ? "" : " (disc " + metadata.DiscNumberAndName + ")",
|
||||
metadata.ReleaseDateAndLabel == "" ? "" : " (" + metadata.ReleaseDateAndLabel + ")");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user