From 9dad795bd43e1efc90d29566a3e6c43855f6ec00 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Sat, 28 Nov 2015 16:36:36 +1300 Subject: [PATCH] Quick patch to the Last.FM integration, need to url encode the method parameters. Fixes #62 Also includes a version bump to 1.9.1 --- Google Play Music/CoreMusicApp.cs | 2 +- Google Play Music/Google Play Music.csproj | 1 + Google Play Music/LastFM.Intergration.cs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Google Play Music/CoreMusicApp.cs b/Google Play Music/CoreMusicApp.cs index 77d81a476..c7edde9f6 100644 --- a/Google Play Music/CoreMusicApp.cs +++ b/Google Play Music/CoreMusicApp.cs @@ -15,7 +15,7 @@ namespace Google_Play_Music public partial class CoreMusicApp : MaterialForm { - private const string CURRENT_VERSION = "1.9.0"; + private const string CURRENT_VERSION = "1.9.1"; private MaterialSkinManager skin; private Size rolling_size; private Size last_size; diff --git a/Google Play Music/Google Play Music.csproj b/Google Play Music/Google Play Music.csproj index bddbf814d..cbcee42e1 100644 --- a/Google Play Music/Google Play Music.csproj +++ b/Google Play Music/Google Play Music.csproj @@ -172,6 +172,7 @@ ..\packages\Microsoft.Bcl.1.1.10\lib\net40\System.Threading.Tasks.dll True + diff --git a/Google Play Music/LastFM.Intergration.cs b/Google Play Music/LastFM.Intergration.cs index 16ac77ea4..1546f3cf6 100644 --- a/Google Play Music/LastFM.Intergration.cs +++ b/Google Play Music/LastFM.Intergration.cs @@ -108,7 +108,7 @@ private string generateMethodParams(Dictionary attributes) keys.Sort(); foreach (string key in keys) { - methodParams += "&" + key + "=" + attributes[key]; + methodParams += "&" + key + "=" + System.Web.HttpUtility.UrlEncode(attributes[key]); } return methodParams; }