fixed bug

Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
Matt Bruce 2017-04-12 12:05:52 -05:00
parent f9dea85a1d
commit 8a51dd0336

View File

@ -86,7 +86,8 @@ namespace SongCrawler
FireSharp.FirebaseClient client = new FireSharp.FirebaseClient(config);
string firepath = string.Format("controllers/{0}/songs", controller);
Console.WriteLine("Loading current library");
List<Song> songs = client.Get(firepath).ResultAs<List<Song>>();
Dictionary<string, Song> dict = client.Get(firepath).ResultAs<Dictionary<string,Song>>();
List<Song> songs = dict.Values.ToList();
if (songs != null)
Console.WriteLine(string.Format("{0} songs loaded", songs.Count));
else