Re: Want different players for radio streams and local music respectively
Yoni Rabkin <[email protected]> Wed, 04 Feb 2026 15:59:29 -0500
| Newsgroups | gmane.emacs.emms.user |
|---|---|
| Message-ID | <[email protected]> |
Yoni Rabkin <[email protected]> writes: >> Hello, I was having trouble getting EMMS to use different players for different audio sources. Namely, I would like to play internet radio streams using mpv and local music using mpd. >> I tried adding lines like this: >> (emms-player-set emms-player-mpv 'regex "https?:\/\/") >> While having the player list as such: >> (setopt emms-player-list '(emms-player-mpv emms-player-mpd)) > >> This resulted in mpv playing all audio, including local tracks. Is there a way to limit mpv to only internet radio and keep emms-player-mpd handling the local files? > >> Thank you for any help > > I'll have a look at this as soon as I can (unless someone beats me to > it), sorry for the delay. Apologies for taking forever to get to this; travelling. At first glance it looks like the culprit would be that the function `emms-player-mpv-playable-p' in `emms-player-mpv.el' matches the track type to '(file url streamlist playlist). This precedes the regexp matching. What would happen if you redefined it to this (of course you'd have to do this after `emms-player-mpv.el' has been evaluated.): (defun emms-player-mpv-playable-p (track) (memq (emms-track-type track) '(streamlist))) -- "Cut your own wood and it will warm you twice"