[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/emms 8bf213cc9a 2/3: * emms-player-mpd.el: remove refer
From: |
ELPA Syncer |
Subject: |
[elpa] externals/emms 8bf213cc9a 2/3: * emms-player-mpd.el: remove references to lastfm |
Date: |
Wed, 25 Sep 2024 00:58:04 -0400 (EDT) |
branch: externals/emms
commit 8bf213cc9a7d47a2b895094f2ebc72a6077be5d0
Author: Yoni Rabkin <yrk@gnu.org>
Commit: Yoni Rabkin <yrk@gnu.org>
* emms-player-mpd.el: remove references to lastfm
---
emms-player-mpd.el | 67 ++++++++++++++++++++++++------------------------------
1 file changed, 30 insertions(+), 37 deletions(-)
diff --git a/emms-player-mpd.el b/emms-player-mpd.el
index 29cd2a6fe9..4cafeb9904 100644
--- a/emms-player-mpd.el
+++ b/emms-player-mpd.el
@@ -1118,43 +1118,36 @@ positive or negative."
(name (cdr (assoc "name" info))) ; radio feeds sometimes set this
(file (cdr (assoc "file" info)))
(desc nil))
- ;; if we are playing lastfm radio, use its show function instead
- (if (and (boundp 'emms-lastfm-radio-stream-url)
- (stringp emms-lastfm-radio-stream-url)
- (string= emms-lastfm-radio-stream-url file))
- (with-current-buffer buffer
- (and (fboundp 'emms-lastfm-np)
- (emms-lastfm-np insertp callback)))
- ;; otherwise build and show the description
- (when info
- (when name
- (setq desc name))
- (when file
- (let ((track (emms-dictionary '*track*))
- track-desc)
- (if (emms-player-mpd-remote-filenamep file)
- (emms-track-set track 'type 'url)
- (emms-track-set track 'type 'file))
- (emms-track-set track 'name file)
- (emms-info-mpd track info)
- (run-hook-with-args 'emms-track-info-filters track)
- (setq track-desc (emms-track-description track))
- (when (and (stringp track-desc) (not (string= track-desc "")))
- (setq desc (if desc
- (concat desc ": " track-desc)
- track-desc))))))
- (if (not desc)
- (unless (functionp callback)
- (message "Nothing playing right now"))
- (setq desc (format emms-show-format desc))
- (cond ((functionp callback)
- (funcall callback buffer desc))
- (insertp
- (when (buffer-live-p buffer)
- (with-current-buffer buffer
- (insert desc))))
- (t
- (message "%s" desc)))))))
+ ;; otherwise build and show the description
+ (when info
+ (when name
+ (setq desc name))
+ (when file
+ (let ((track (emms-dictionary '*track*))
+ track-desc)
+ (if (emms-player-mpd-remote-filenamep file)
+ (emms-track-set track 'type 'url)
+ (emms-track-set track 'type 'file))
+ (emms-track-set track 'name file)
+ (emms-info-mpd track info)
+ (run-hook-with-args 'emms-track-info-filters track)
+ (setq track-desc (emms-track-description track))
+ (when (and (stringp track-desc) (not (string= track-desc "")))
+ (setq desc (if desc
+ (concat desc ": " track-desc)
+ track-desc))))))
+ (if (not desc)
+ (unless (functionp callback)
+ (message "Nothing playing right now"))
+ (setq desc (format emms-show-format desc))
+ (cond ((functionp callback)
+ (funcall callback buffer desc))
+ (insertp
+ (when (buffer-live-p buffer)
+ (with-current-buffer buffer
+ (insert desc))))
+ (t
+ (message "%s" desc))))))
;;;###autoload
(defun emms-player-mpd-show (&optional insertp callback)