diff --git a/Songify Slim/Util/Spotify/SpotifyAPI.Web/SpotifyWebClient.cs b/Songify Slim/Util/Spotify/SpotifyAPI.Web/SpotifyWebClient.cs index 2c2d7881..a584691c 100644 --- a/Songify Slim/Util/Spotify/SpotifyAPI.Web/SpotifyWebClient.cs +++ b/Songify Slim/Util/Spotify/SpotifyAPI.Web/SpotifyWebClient.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; +using System.IO; using System.Net; using System.Net.Http; using System.Net.Http.Headers; @@ -81,6 +82,9 @@ public Tuple DownloadJson(string url, Dictionary(response.Item1, JsonConvert.DeserializeObject(string.Format(UnknownErrorJson, error.Message), JsonSettings)); @@ -99,8 +103,8 @@ public async Task> DownloadJsonAsync(string url, Dicti { Logger.LogStr("SPOTIFY API:" + url); Logger.LogExc(error); - IOManager.WriteOutput($"{GlobalObjects.RootDirectory}/json.txt", response.Item2); - + IOManager.WriteOutput($"{GlobalObjects.RootDirectory}/json.txt", response.Item2); + return new Tuple(response.Item1, JsonConvert.DeserializeObject(string.Format(UnknownErrorJson, error.Message), JsonSettings)); } } diff --git a/Songify Slim/Views/HistoryWindow.xaml b/Songify Slim/Views/HistoryWindow.xaml index d9e9e56b..cb42576e 100644 --- a/Songify Slim/Views/HistoryWindow.xaml +++ b/Songify Slim/Views/HistoryWindow.xaml @@ -1,58 +1,106 @@ - + - - - - + - + - - + + - + - + - - \ No newline at end of file