mirror of
https://github.com/SqrtMinusOne/lyrics-fetcher.el.git
synced 2025-12-10 08:53:04 +03:00
Merge pull request #2 from syohex/byte-compile-warning
Fix byte-compile warnings
This commit is contained in:
commit
5650202cb5
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue