Jake Coble <[email protected]> writes:

> ---
>  emms-listenbrainz-scrobbler.el | 34 ++++++++++++++++++++--------------
>  1 file changed, 20 insertions(+), 14 deletions(-)
>
> diff --git a/emms-listenbrainz-scrobbler.el b/emms-listenbrainz-scrobbler.el
> index 2262d4e..34edb29 100644
> --- a/emms-listenbrainz-scrobbler.el
> +++ b/emms-listenbrainz-scrobbler.el
> @@ -55,6 +55,10 @@ ;; To enable scrobbling call 
> (emms-listenbrainz-scrobbler-enable).
>    (concat "https://"; emms-listenbrainz-scrobbler-host "/1/submit-listens")
>    "URL for submissions.")

[snip]

Apologies for the delay in getting back to you; holiday travels.

Would this modification of `emms-browser-add-tracks-and-play' fix the
issue for you?

(defun emms-browser-add-tracks-and-play ()
  "Add all tracks at point, and play the first added track."
  (interactive)
  (let ((old-pos (emms-browser-add-tracks)))
    (with-current-emms-playlist
      (goto-char old-pos)
      ;; Stop what we are currently playing to allow `emms-stop'
      ;; related hooks to run.
      (when emms-player-playing-p
        (emms-stop))
      ;; if we're sitting on a group name, move forward
      (unless (emms-playlist-track-at (point))
        (emms-playlist-next))
      (emms-playlist-select (point)))
    (emms-start)))

-- 
   "Cut your own wood and it will warm you twice"

Reply via email to