|
@@ -62,7 +62,7 @@ namespace SongBrowser
|
|
|
InstallHandlers();
|
|
|
|
|
|
// Initialize Downloader Scrapped Data
|
|
|
- StartCoroutine(ScrappedData.Instance.DownloadScrappedData((List<ScrappedSong> songs) => { }));
|
|
|
+ StartCoroutine(ScrappedData.Instance.DownloadScrappedData(OnDownloaderScrappedDataDownloaded));
|
|
|
|
|
|
if (SongCore.Loader.AreSongsLoaded)
|
|
|
{
|
|
@@ -128,6 +128,22 @@ namespace SongBrowser
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
+ /// Update mapping of scrapped song data.
|
|
|
+ /// </summary>
|
|
|
+ private void OnDownloaderScrappedDataDownloaded(List<ScrappedSong> songs)
|
|
|
+ {
|
|
|
+ Logger.Trace("OnDownloaderScrappedDataDownloaded");
|
|
|
+ try
|
|
|
+ {
|
|
|
+ PlaylistsCollection.MatchSongsForAllPlaylists(true);
|
|
|
+ }
|
|
|
+ catch (Exception e)
|
|
|
+ {
|
|
|
+ Logger.Exception("Exception during OnScoreSaberDataDownloaded: ", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
/// Install Our Handlers so we can react to ingame events.
|
|
|
/// </summary>
|
|
|
private void InstallHandlers()
|