[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emms-help] [PATCH 1/2] Fixed the emms-lastfm-submit-now-playing functio

From: Chris Gray
Subject: [emms-help] [PATCH 1/2] Fixed the emms-lastfm-submit-now-playing function.
Date: Mon, 10 Aug 2009 16:12:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

The API at http://www.last.fm/api/submissions#np does not include an
index for the now-playing song.  Using an index causes an error with

Signed-off-by: Chris Gray <address@hidden>
 lisp/emms-lastfm.el |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/lisp/emms-lastfm.el b/lisp/emms-lastfm.el
index a58e13a..028a221 100644
--- a/lisp/emms-lastfm.el
+++ b/lisp/emms-lastfm.el
@@ -218,12 +218,12 @@ These will be displayed on the user's last.fm page."
       (emms-lastfm-http-POST emms-lastfm-now-playing-url
                              (concat "&s="    emms-lastfm-session-id
-                                     "&a[0]=" (emms-url-quote artist)
-                                     "&t[0]=" (emms-url-quote title)
-                                     "&b[0]=" (emms-url-quote album)
-                                     "&l[0]=" track-length
-                                     "&n[0]=" track-number
-                                     "&m[0]=" musicbrainz-id)
+                                     "&a=" (emms-url-quote artist)
+                                     "&t=" (emms-url-quote title)
+                                     "&b=" (emms-url-quote album)
+                                     "&l=" track-length
+                                     "&n=" track-number
+                                     "&m=" musicbrainz-id)
 (defun emms-lastfm-submit-now-playing-sentinel (&rest args)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]