Fix byte-compile warnings

This commit is contained in:
Shohei YOSHIDA 2021-08-13 09:44:20 +09:00
parent 08efc1e75b
commit 943be32204
2 changed files with 5 additions and 2 deletions

View file

@ -151,7 +151,7 @@ contains `info-albumartist' or `info-artist' and `info-title'"
If ASK is non-nil, prompt the user for a choice, otherwise select the
first song."
(when (not (= (cdr (assoc 'status (assoc 'meta data))) 200))
(error "Error: %" (cdr (assoc 'message (assoc 'meta data)))))
(error "Error: %s" (cdr (assoc 'message (assoc 'meta data)))))
(let* ((results (cdr (assoc 'hits (assoc 'response data))))
(results-songs (seq-filter
(lambda (entry)
@ -260,7 +260,7 @@ to FOLDER and will be name \"cover_full.<extension>\".
CALLBACK will be called with the path to the resulting file."
(when (not (= (cdr (assoc 'status (assoc 'meta data))) 200))
(error "Error: %" (cdr (assoc 'message (assoc 'meta data)))))
(error "Error: %s" (cdr (assoc 'message (assoc 'meta data)))))
(let ((url (cdr
(assoc 'cover_art_url
(assoc 'album

View file

@ -32,6 +32,7 @@
(require 'lyrics-fetcher-genius)
(require 'f)
(require 'emms)
(require 'emms-browser)
(defgroup lyrics-fetcher ()
"Fetch song and album covers."
@ -114,6 +115,8 @@ As of now, genius.com is the only one available."
(defvar lyrics-fetcher-current-track-method
"Current track in the lyrics view buffer")
(defvar lyrics-fetcher-current-track)
;;; Actual lyrics fetching
(defun lyrics-fetcher-format-song-name (track)
"Format TRACK to a human-readable form.