Ejemplo n.º 1
0
        private void ReadMasters()
        {
            MasterReleaseReader2 masterReader = new MasterReleaseReader2(this.config.MasterReleasesXmlPath);

            foreach (MasterRelease master in masterReader.Enumerate())
            {
                this.progressReporter.Report("Masters", masterReader.EstimatedProgress);
            }
            this.progressReporter.Report("Masters", -1);
        }
Ejemplo n.º 2
0
        private void ImportMasters()
        {
            this.helper.SelectDatabase();

            Console.WriteLine("Creating index on artists...");
            this.helper.TryCreatePreReleasesImportIndexes();

            MasterReleaseReader2  masterReleaseReader = new MasterReleaseReader2(this.config.MasterReleasesXmlPath);
            MasterReleaseInserter masterInserter      = new MasterReleaseInserter(this.config.Conn);

            foreach (MasterRelease master in masterReleaseReader.Enumerate())
            {
                masterInserter.Insert(master);

                this.progressReporter.Report("Masters", masterReleaseReader.EstimatedProgress);
            }
            this.progressReporter.Report("Masters", -1);
        }