예제 #1
0
        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);
        }
예제 #2
0
        protected Tagger(CueSheet.CueSheet cueSheet, string coverFilePath)
        {
            if (cueSheet == null)
            {
                throw new ArgumentNullException("cueSheet");
            }

            _cueSheet      = cueSheet;
            _coverFilePath = coverFilePath;
        }
예제 #3
0
        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;
        }
예제 #5
0
        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);
        }
예제 #6
0
        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;
        }
예제 #7
0
 public OggVorbisTagger(CueSheet.CueSheet cueSheet, string coverFilePath)
     : base(cueSheet, coverFilePath)
 {
 }
예제 #8
0
 public TaggerFactory(CueSheet.CueSheet cueSheet)
     : this(cueSheet, null)
 {
 }
예제 #9
0
 public TaggerFactory(CueSheet.CueSheet cueSheet, string coverFilePath)
 {
     _cueSheet      = cueSheet;
     _coverFilePath = coverFilePath;
 }
예제 #10
0
 public SimpleTagger(CueSheet.CueSheet cueSheet, string coverFilePath)
     : base(cueSheet, coverFilePath)
 {
 }