public void ScrapeAndSaveAllLyrics() { totalSongsRetrieved = Directory.GetFiles(SAVE_LOCATION).Count(); startTime = DateTime.Now; SongMeaningsNavigator navigator = new SongMeaningsNavigator(); foreach (SongMeaningsSong song in navigator.GetAllSongs(tryResumeSearch:true)) { if (song != null) { SerializeSong(song); songsRetrievedThisSession++; totalSongsRetrieved++; currentArtistName = song.artist.name; } UpdateDisplay(); Thread.Sleep(300); } }
public void ScrapeAndSaveAllLyrics() { totalSongsRetrieved = Directory.GetFiles(SAVE_LOCATION).Count(); startTime = DateTime.Now; SongMeaningsNavigator navigator = new SongMeaningsNavigator(); foreach (SongMeaningsSong song in navigator.GetAllSongs(tryResumeSearch:true)) { if (song != null) { SerializeSong(song); songsRetrievedThisSession++; totalSongsRetrieved++; currentArtistName = song.artist.name; } UpdateDisplay(); Thread.Sleep(300); } }