Hi,

Any url added after a stream from the EMMS Streams interface has the stream 
metadata. 
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
              'emms-stream-add-data-to-track)




_______________________________________________
Emms-help mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/emms-help

Reply via email to