From 305999cc145deb4019a4ed74fecac44453e28e10 Mon Sep 17 00:00:00 2001 From: Krateng Date: Mon, 24 Jun 2019 17:23:27 +0200 Subject: [PATCH] Fixed encoding for proxy scrobbling --- external.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external.py b/external.py index 04915a6..5f90197 100644 --- a/external.py +++ b/external.py @@ -151,7 +151,7 @@ def lfmbuild(parameters): m.update(utf("".join(str(k) + str(parameters[k]) for k in keys))) m.update(utf(get_settings("LASTFM_API_SECRET"))) sig = m.hexdigest() - return "&".join(str(k) + "=" + str(parameters[k]) for k in parameters) + "&api_sig=" + sig + return urllib.parse.urlencode(parameters) + "&api_sig=" + sig def utf(st): return st.encode(encoding="UTF-8")