private string ApplyFormat(Artist artist, Album album, Song song) { StringBuilder s = new StringBuilder(); Dictionary<string, string> sdf = new Dictionary<string, string>(); //sdf.Add("artist", artist.getChoppedInfo[0]); sdf.Add("year", album.Year); //sdf.Add("albumname", joinString(album.relevantInformation)); sdf.Add("cdCount", album.CDcount.ToString()); sdf.Add("tracknum", song.TrackNum.ToString()); //sdf.Add("trackname", joinString(song.relevantInformation)); return s.ToString(); }
static void Main(string[] args) { // jeder künster seine eigene Fabrik // jeder künstler hat 1 oder mehrere alben List<Artist> artistList = new List<Artist>(); string[] artistFolders = Directory.GetDirectories(Algs.badMP3BasicPath); foreach (string artist in artistFolders) { Artist dummy = new Artist(artist); dummy.getSubs(); artistList.Add(dummy); } // jeder artist seinen eigenen executer // foreach (var artist in artistList) { Executor ex = new Executor(artist); ex.GatherAvailableInformation(); ex.MakePersistent(); } //artist.getAllAlbumsOfArtist(); //artist.searchRepatingInformation(); //artist.cleanUpAlbumInformation(); //if (!Algs.compareSourceAndTarget(null,null)) System.Console.WriteLine("ungleich"); // else System.Console.WriteLine("gleich"); System.Console.WriteLine(); System.Console.WriteLine("DONE"); System.Console.ReadKey(); }
public Executor(Artist artist) { // TODO: Complete member initialization this.artist = artist; }