public static CueSheet.CueSheet ToTitleCase(this CueSheet.CueSheet cueSheet) { cueSheet.Performer = WordUtils.ToTitleCase(cueSheet.Performer); cueSheet.SongWriter = WordUtils.ToTitleCase(cueSheet.SongWriter); cueSheet.Title = WordUtils.ToTitleCase(cueSheet.Title); cueSheet.Files.SelectMany(file => file.Tracks).ToList().ForEach(x => x.ToTitleCase()); return(cueSheet); }
protected Tagger(CueSheet.CueSheet cueSheet, string coverFilePath) { if (cueSheet == null) { throw new ArgumentNullException("cueSheet"); } _cueSheet = cueSheet; _coverFilePath = coverFilePath; }
public Splitter(CueSheet.CueSheet cueSheet, CueSheetSplitter cueSheetSplitter) { if (cueSheet == null) { throw new ArgumentNullException("cueSheet"); } if (cueSheetSplitter == null) { throw new ArgumentNullException("cueSheetSplitter"); } _cueSheet = cueSheet; _cueSheetSplitter = cueSheetSplitter; }
public SplitterFactory(CueSheet.CueSheet cueSheet, string cueFilePath) { if (cueSheet == null) { throw new ArgumentNullException("cueSheet"); } if (string.IsNullOrWhiteSpace(cueFilePath)) { throw new ArgumentNullException("cueFilePath"); } _cueSheet = cueSheet; _cueFilePath = cueFilePath; }
public ApeSplitter(CueSheet.CueSheet cueSheet, string cueFilePath, SplitterFactory factory) { if (cueSheet == null) { throw new ArgumentNullException("cueSheet"); } _cueSheet = cueSheet; _factory = factory; string cueDir = Path.GetDirectoryName(cueFilePath); if (cueDir == null) { throw new Exception("Cue file directory is null."); } _apeFilePath = Path.Combine(cueDir, _cueSheet.Files[0].FileName); }
public CueSheetSplitter(CueSheet.CueSheet cueSheet, string cueFilePath, Func <string, string, Index, Index, string> buildArgsFunc) { if (cueSheet == null) { throw new ArgumentNullException("cueSheet"); } if (string.IsNullOrWhiteSpace(cueFilePath)) { throw new ArgumentNullException("cueFilePath"); } if (buildArgsFunc == null) { throw new ArgumentNullException("buildArgsFunc"); } _cueSheet = cueSheet; _cueFilePath = cueFilePath; _buildArgsFunc = buildArgsFunc; }
public OggVorbisTagger(CueSheet.CueSheet cueSheet, string coverFilePath) : base(cueSheet, coverFilePath) { }
public TaggerFactory(CueSheet.CueSheet cueSheet) : this(cueSheet, null) { }
public TaggerFactory(CueSheet.CueSheet cueSheet, string coverFilePath) { _cueSheet = cueSheet; _coverFilePath = coverFilePath; }
public SimpleTagger(CueSheet.CueSheet cueSheet, string coverFilePath) : base(cueSheet, coverFilePath) { }