summaryrefslogtreecommitdiffhomepage
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/espotify.org5
1 files changed, 4 insertions, 1 deletions
diff --git a/media/espotify.org b/media/espotify.org
index 6f001fd..99168a8 100644
--- a/media/espotify.org
+++ b/media/espotify.org
@@ -124,7 +124,10 @@ Let's start with an umbrella customization group:
(goto-char url-http-end-of-headers)
(funcall callback
(let ((json-array-type 'list))
- (json-read)))))))
+ (thread-first
+ (buffer-substring (point) (point-max))
+ (decode-coding-string 'utf-8)
+ (json-read-from-string))))))))
#+end_src
So we can combine this macro with ~espotify--with-auth-token~ in a