Try to deal properly with quotes in the stream's song names.
[elisp.git] / media.el
index c193b45..d10e96f 100644 (file)
--- a/media.el
+++ b/media.el
@@ -254,6 +254,7 @@ and the bitrate. Should be nil if no information is available.")
         (time (get-text-property position 'time)))
     (if (not url) (media/remove-highlight)
       (run-hook-with-args 'media/before-play-hook url)
+      (setq media/current-information nil)
       (media/api/play url)
       ;; We keep the information of the url and the title
       (setq media/played-information (cons url (get-text-property position 'title)))
@@ -821,6 +822,7 @@ returns nil if no id3 tags could be found."
 
 (defun media/stop () (interactive)
   (message "Stop")
+  (setq media/current-information nil)
   (media/api/stop))
 
 (defun media/queue-song-at-point ()