diff options
author | Yoni Rabkin <yoni@rabkins.net> | 2020-11-05 16:16:42 -0500 |
---|---|---|
committer | Yoni Rabkin <yoni@rabkins.net> | 2020-11-05 16:16:42 -0500 |
commit | 6985faba91b9d48c48da55d2adf4a54ca332c1cb (patch) | |
tree | d40ceab77bd7bb979086c4f31e99ebee22d082e3 | |
parent | b3f889dd050fba380e880967c3609ee5744d7224 (diff) |
* emms-info-exiftool.el: read track numbers as strings
From: Feng Shu <tumashu@163.com>: tracknumber and year should be string.
-rw-r--r-- | THANKGNU | 1 | ||||
-rw-r--r-- | emms-info-exiftool.el | 4 | ||||
-rw-r--r-- | emms.el | 2 |
3 files changed, 6 insertions, 1 deletions
@@ -17,3 +17,4 @@ Sascha Wilde <wilde@sha-bang.de> Tom Rauchenwald <its.sec@gmx.net> fledermaus at #emacs indio on #emacs +Feng Shu <tumashu@163.com> diff --git a/emms-info-exiftool.el b/emms-info-exiftool.el index acd5520..90dabf3 100644 --- a/emms-info-exiftool.el +++ b/emms-info-exiftool.el @@ -90,6 +90,10 @@ emms-field (cond ((eq emms-field 'info-playing-time) (emms-info-exiftool-time)) + ((memq emms-field '(info-tracknumber + info-year + info-discnumber)) + (format "%s" (cdr track-field))) (t (cdr track-field)))))))) emms-info-exiftool-field-map)) (error (message "error while reading track info"))) @@ -5,7 +5,7 @@ ;; Author: Jorgen Schäfer <forcer@forcix.cx>, the Emms developers (see AUTHORS file) ;; Maintainer: Yoni Rabkin <yrk@gnu.org> -;; Version: 6.01 +;; Version: 6.02 ;; Keywords: emms, mp3, ogg, flac, music, mpeg, video, multimedia ;; Package-Type: multi ;; Package-Requires: ((cl-lib "0.5") (seq)) |