[Top][All Lists]

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

[emms-help] emms-stream constantly adds metadata to urls

From: Konstantin Reich
Subject: [emms-help] emms-stream constantly adds metadata to urls
Date: Sun, 08 Sep 2019 18:32:54 +0300


Any url added after a stream from the EMMS Streams interface has the stream 
I think it is a bug.

One can reproduce it with the following steps.

1. (emms-streams)
2. Choose any stream
3. The stream has some metadata which is written in emms-stream-last-stream.
4. add url through emms-add-url.
5. The url has the same metadata.

I can suggest the following correction:

diff -u /tmp/emms-streams.el.orig /tmp/emms-streams.el
--- /tmp/emms-streams.el.orig   2019-09-08 18:23:57.153293137 +0300
+++ /tmp/emms-streams.el        2019-09-08 18:18:46.571817962 +0300
@@ -602,7 +602,9 @@
 ; (add-to-list 'emms-info-methods-list 'emms-info-url)
 (defun emms-stream-add-data-to-track (track)
-  (emms-track-set track 'metadata emms-stream-last-stream))
+  (when emms-stream-last-stream
+    (emms-track-set track 'metadata emms-stream-last-stream)
+    (setq emms-stream-last-stream nil)))
 (add-to-list 'emms-track-initialize-functions

reply via email to

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