aboutsummaryrefslogtreecommitdiff
path: root/emms-cue.el
diff options
context:
space:
mode:
authorYoni Rabkin <yoni@rabkins.net>2021-05-03 12:20:55 -0400
committerYoni Rabkin <yoni@rabkins.net>2021-05-03 12:20:55 -0400
commit4d1c998ec0be227fb038c21c0195e33a9b34457d (patch)
tree9a665dcbad7a2acb0e5cae6449be17d3e90af5fd /emms-cue.el
parentd16d94fab0cbb9eacf909f9a6a82b078e3463513 (diff)
Clean: emms-track-file-p replaces eq file type checks
There were about 10 checks throughout the code checking if a track is a file type. File type tracks are specific enough for a predicate function. Add: EMMS warning if no tagging program for audio file type Warn the user when there is no tag writing program available to EMMS for modifying the actual audio files. Current behavior allows the tags to be edited, saved to the EMMS cache db, and then silently skips past the part where the metadata would be applied to the file itself. The changes here prevent the user from even opening the editor for a file that has no tag writing program configured. This can be overridden with the prefix arg when user wants to edit the tags anyway, knowing they will only be saved in the emms-cache-db and not written to the source audio files. Patch by Grant Shangreaux
Diffstat (limited to 'emms-cue.el')
-rw-r--r--emms-cue.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emms-cue.el b/emms-cue.el
index 3828ee6..880d2d8 100644
--- a/emms-cue.el
+++ b/emms-cue.el
@@ -93,7 +93,7 @@ When PREVIOUS-P is t, get previous track info instead."
(defun emms-info-cueinfo (track)
"Add track information to TRACK.
This is a useful element for `emms-info-functions'."
- (when (and (eq 'file (emms-track-type track))
+ (when (and (emms-track-file-p track)
(string-match "\\.\\(ape\\|flac\\)\\'" (emms-track-name track)))
(let ((cue (concat (file-name-sans-extension (emms-track-name track))
".cue")))