fixed bug
Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
f9dea85a1d
commit
8a51dd0336
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user