From 6985faba91b9d48c48da55d2adf4a54ca332c1cb Mon Sep 17 00:00:00 2001 From: Yoni Rabkin Date: Thu, 5 Nov 2020 16:16:42 -0500 Subject: * emms-info-exiftool.el: read track numbers as strings From: Feng Shu : tracknumber and year should be string. --- THANKGNU | 1 + emms-info-exiftool.el | 4 ++++ emms.el | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/THANKGNU b/THANKGNU index ef2137b..c2d6f6f 100644 --- a/THANKGNU +++ b/THANKGNU @@ -17,3 +17,4 @@ Sascha Wilde Tom Rauchenwald fledermaus at #emacs indio on #emacs +Feng Shu 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"))) diff --git a/emms.el b/emms.el index 19603ab..3a0258c 100644 --- a/emms.el +++ b/emms.el @@ -5,7 +5,7 @@ ;; Author: Jorgen Schäfer , the Emms developers (see AUTHORS file) ;; Maintainer: Yoni Rabkin -;; 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)) -- cgit v1.2.3